From: Daniel Drake Date: Fri, 24 Sep 2010 17:17:17 +0000 (-0300) Subject: [media] cafe_ccic: Fix hang in command write processing X-Git-Tag: v2.6.37-rc1~64^2~303 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2b9b0f9c02689ce3b3f0b5dbc6c9b272bbe1ab;p=pandora-kernel.git [media] cafe_ccic: Fix hang in command write processing This patch, which basically reverts 6d77444ac, fixes an occasional on-boot or on-capture hang on the XO-1 laptop. It seems like the cafe hardware is flakier than we thought and that in some cases, the commands get executed but are never reported as completed (even if we substantially increase the delays before reading registers). Reintroduce the 1-second CAFE_SMBUS_TIMEOUT to catch and avoid this strange hardware bug. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed