• Du, Changbin's avatar
    usb: gadget: s3c-hsotg: fix core reset timeout failure · 2868fea2
    Du, Changbin authored
    The timeout values were 1000 and timeout issue occured many times on my
    s3c6410 Soc based board (mostly when booting whith USB cable not
    connected). This patch increase the values to 10000 to guarantee the
    success of reset.
    
    Having set timeout to 10000, I printed the remained timeout values
    which could cause timeout issue before this change (tested several
    times).
    the first timeout value remained:
    	timeout = 8079
    	timeout = 8079
    	timeout = 8078
    	timeout = 8081
    the second timeout value remained:
    	timeout = 7940
    	timeout = 7945
    	timeout = 7940
    	timeout = 7938
    Seeing from above values, I think the value 10000 is big enough.
    Signed-off-by: default avatarDu, Changbin <changbin.du@gmail.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    2868fea2
s3c-hsotg.c 93.2 KB