diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-12-18 20:17:16 +0300 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 22:13:16 +0300 |
commit | 1120f8b8169fb2cb51219d326892d963e762edb6 (patch) | |
tree | 8ee86fe0b3dffa0ebff4406f1470092c4df84f25 /include/linux | |
parent | 904d6a303361a85bfa4c8181ef62a24edb8da0a8 (diff) | |
download | linux-1120f8b8169fb2cb51219d326892d963e762edb6.tar.xz |
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 'include/linux')
0 files changed, 0 insertions, 0 deletions