summaryrefslogtreecommitdiff
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-12-18 09:17:16 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 11:13:16 -0800
commit1120f8b8169fb2cb51219d326892d963e762edb6 (patch)
tree8ee86fe0b3dffa0ebff4406f1470092c4df84f25 /drivers/pci/pci-sysfs.c
parent904d6a303361a85bfa4c8181ef62a24edb8da0a8 (diff)
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 <shemminger@vyatta.com> Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
0 files changed, 0 insertions, 0 deletions