]> git.baikalelectronics.ru Git - kernel.git/commit
Input: wm97xx-core - fix race on PHY init
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 27 May 2008 05:37:19 +0000 (01:37 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 27 May 2008 05:37:19 +0000 (01:37 -0400)
commitcc5f062bbd1ca43faf6f4fccad06d743ef2e0626
tree86a4d81c487645e3bdb87c0ee31cf3ba62c9dc7e
parented97ca2b8354beae5497734d5297f1342ac43d0c
Input: wm97xx-core - fix race on PHY init

The chip phy_init() function must be called before the dig_enable() function
but dig_enable() is called when the device is opened and we only call
phy_init() after having reigstered the device, meaning the two can race.
Fix this by doing the phy_init() before we register the input device.

Thanks to Rodolfo Giometti <giometti@enneenne.com> for the report.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/wm97xx-core.c