[sky2] Use 32-bit read to read Y2_VAUX_AVAIL
authorMike McCormack <mikem@ring3k.org>
Thu, 23 Mar 2017 15:54:03 +0000 (17:54 +0200)
committerMichael Brown <mcb30@ipxe.org>
Thu, 23 Mar 2017 15:54:03 +0000 (17:54 +0200)
commita317e9a310d6ea5288edd39d9933e6c2fb2358aa
treeac888bda4816860e37e94418044d850f401adac1
parent19d3e966d9ee535fc89e8fa26737cc133882ae1c
[sky2] Use 32-bit 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.

[This patch is copied directly from the Linux kernel tree.]

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/sky2.c
src/drivers/net/sky2.h