Asix AX88772B support
Subsystems (2)
cover Asix AX88772B support
This patch series picks up some changes from the linux kernel to make Asix AX88772B based USB Ethernet dongles work.
Marek Vasut (2):
net usb asix: Simplify condition in rx_fixup() net usb asix: Use only 11 bits of header for data size
Philipp Zabel (2):
net usb asix: read MAC from EEPROM on AX88772B
net usb asix: add AX88772B USB ID
drivers/net/usb/asix.c | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-)
regards
Philipp
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/4 net usb asix: Simplify condition in rx_fixup()
From: Marek Vasut <[email protected]>
--- drivers/net/usb/asix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/usb/asix.c +1 -1
@@ -408,7 +408,7 @@ static int asix_rx_fixup(struct usbnet *dev, void *buf, int len) len -=4 ;while (len >0 ) { -if ((short )(header &0x0000ffff ) != ~((short )((header &0xffff0000 ) >>16 ))) +if ((header &0xffff ) != ((~header >>16 ) &0xffff ))dev_err (&dev->edev.dev,"asix_rx_fixup() Bad Header Length\n" );/* get the packet length */
Signature · 7 lines
1.8.5.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/4 net usb asix: Use only 11 bits of header for data size
In reply to Philipp ZabelFrom: Marek Vasut <[email protected]>
The AX88772B uses only 11 bits of the header for the actual size. The other bits are used for something else. This causes dmesg full of messages:
asix_rx_fixup() Bad Header Length
This patch trims the check to only 11 bits. I believe on older chips, the remaining 5 top bits are unused.
--- drivers/net/usb/asix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/usb/asix.c +2 -2
@@ -408,11 +408,11 @@ static int asix_rx_fixup(struct usbnet *dev, void *buf, int len) len -=4 ;while (len >0 ) { -if ((header &0xffff ) != ((~header >>16 ) &0xffff )) +if ((header &0x07ff ) != ((~header >>16 ) &0x07ff ))dev_err (&dev->edev.dev,"asix_rx_fixup() Bad Header Length\n" );/* get the packet length */ - size = (unsigned short ) (header &0x0000ffff ); + size = (unsigned short ) (header &0x07ff );if (size >1514 ) {dev_err (&dev->edev.dev,"asix_rx_fixup() Bad RX Length %d\n" , size);
Signature · 7 lines
1.8.5.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 7 lines · Philipp Zabel
This patch series picks up some changes from the linux kernel to make Asix AX88772B based USB Ethernet dongles work.
Marek Vasut (2):
net usb asix: Simplify condition inrx_fixup()net usb asix: Use only 11 bits of header for data size
Quoted 6 lines
Philipp Zabel (2):
net usb asix: read MAC from EEPROM on AX88772B
net usb asix: add AX88772B USB IDdrivers/net/usb/asix.c | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-)
Oh wow, am I now an official barebox contributor ? :-D
Best regards,
Marek Vasut
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Philipp Zabel
This patch series picks up some changes from the linux kernel to make Asix AX88772B based USB Ethernet dongles work.
Marek Vasut (2):
net usb asix: Simplify condition inrx_fixup()net usb asix: Use only 11 bits of header for data size
Quoted 8 lines
Quoted 6 lines
Philipp Zabel (2):
net usb asix: read MAC from EEPROM on AX88772B
net usb asix: add AX88772B USB IDdrivers/net/usb/asix.c | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-)Oh wow, am I now an official barebox contributor ? :-D
gotcha! ;)
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 9 lines · Philipp Zabel
This patch series picks up some changes from the linux kernel to make Asix AX88772B based USB Ethernet dongles work.
Marek Vasut (2):
net usb asix: Simplify condition inrx_fixup()net usb asix: Use only 11 bits of header for data sizePhilipp Zabel (2):
net usb asix: read MAC from EEPROM on AX88772B
Applied three patches. Could you resend this one? It didn't make it to the list.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox