From: Stephen Hemminger Date: Thu, 18 Dec 2008 17:17:16 +0000 (-0800) Subject: PCI: handle long delays in VPD access X-Git-Tag: v2.6.29-rc1~181^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1120f8b8169fb2cb51219d326892d963e762edb6;p=pandora-kernel.git PCI: handle long delays in VPD access Accessing the VPD area can take a long time. The existing VPD access code fails consistently on my hardware. There are comments in the SysKonnect vendor driver that it can take up to 13ms per word. Change the access routines to: * use a mutex rather than spinning with IRQ's disabled and lock held * have a much longer timeout * call cond_resched while spinning Signed-off-by: Stephen Hemminger Reviewed-by: Matthew Wilcox Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed