Hi Kishon,The variable "tmout" is initialized in the prior code "case USB_CHG_STATE_WAIT_FOR_DCD",
After merging the phy-next tree, today's linux-next build (x86_64
allmodconfig) produced this warning:
drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work':
drivers/phy/phy-rockchip-inno-usb2.c:717:7: warning: 'tmout' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (tmout) {
^
Introduced by commit
0c42fe48fd23 ("phy: rockchip-inno-usb2: support otg-port for rk3399")