diff options
author | Mike McCormack <mikem@ring3k.org> | 2009-09-01 05:54:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-02 02:40:44 +0200 |
commit | 72c60683282a6cd047db47d605eb96e2a6fac72c (patch) | |
tree | 8cf9906142221f6ef80225d7cc29c7f045dcdb48 /drivers/net/sky2.h | |
parent | sky2: Create buffer alloc and free helpers (diff) | |
download | linux-72c60683282a6cd047db47d605eb96e2a6fac72c.tar.xz linux-72c60683282a6cd047db47d605eb96e2a6fac72c.zip |
sky2: Use 32bit read to read Y2_VAUX_AVAIL
B0_CTST is a 24bit register according to the vendor driver (sk98lin).
A 16bit read on B0_CTST will always return 0 for Y2_VAUX_AVAIL (1<<16),
so use a 32bit read when testing Y2_VAUX_AVAIL
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index 34042ff7c121..e0f23a101043 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h @@ -260,7 +260,7 @@ enum csr_regs { Y2_CFG_AER = 0x1d00, /* PCI Advanced Error Report region */ }; -/* B0_CTST 16 bit Control/Status register */ +/* B0_CTST 24 bit Control/Status register */ enum { Y2_VMAIN_AVAIL = 1<<17,/* VMAIN available (YUKON-2 only) */ Y2_VAUX_AVAIL = 1<<16,/* VAUX available (YUKON-2 only) */ |