All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L
@ 2022-12-05 13:21 Oleksij Rempel
  2022-12-05 13:46 ` Andrew Lunn
  2022-12-08  1:20 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: Oleksij Rempel @ 2022-12-05 13:21 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Oleksij Rempel, kernel, linux-kernel, netdev, Lukas Wunner, Russell King

Add ASIX based USB 10Base-T1L adapter support:
https://linux-automation.com/en/products/usb-t1l.html

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 drivers/net/usb/asix_devices.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c
index 0fe3773c5bca..1a2302dd5ff8 100644
--- a/drivers/net/usb/asix_devices.c
+++ b/drivers/net/usb/asix_devices.c
@@ -1350,6 +1350,20 @@ static const struct driver_info ax88772b_info = {
 	.data = FLAG_EEPROM_MAC,
 };
 
+static const struct driver_info lxausb_t1l_info = {
+	.description = "Linux Automation GmbH USB 10Base-T1L",
+	.bind = ax88772_bind,
+	.unbind = ax88772_unbind,
+	.status = asix_status,
+	.reset = ax88772_reset,
+	.stop = ax88772_stop,
+	.flags = FLAG_ETHER | FLAG_FRAMING_AX | FLAG_LINK_INTR |
+	         FLAG_MULTI_PACKET,
+	.rx_fixup = asix_rx_fixup_common,
+	.tx_fixup = asix_tx_fixup,
+	.data = FLAG_EEPROM_MAC,
+};
+
 static const struct driver_info ax88178_info = {
 	.description = "ASIX AX88178 USB 2.0 Ethernet",
 	.bind = ax88178_bind,
@@ -1538,6 +1552,10 @@ static const struct usb_device_id	products [] = {
 	 */
 	USB_DEVICE(0x066b, 0x20f9),
 	.driver_info = (unsigned long) &hg20f9_info,
+}, {
+	// Linux Automation GmbH USB 10Base-T1L
+	USB_DEVICE(0x33f7, 0x0004),
+	.driver_info = (unsigned long) &lxausb_t1l_info,
 },
 	{ },		// END
 };
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L
  2022-12-05 13:21 [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L Oleksij Rempel
@ 2022-12-05 13:46 ` Andrew Lunn
  2022-12-05 14:57   ` Oleksij Rempel
  2022-12-08  1:20 ` patchwork-bot+netdevbpf
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2022-12-05 13:46 UTC (permalink / raw)
  To: Oleksij Rempel
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	kernel, linux-kernel, netdev, Lukas Wunner, Russell King

On Mon, Dec 05, 2022 at 02:21:02PM +0100, Oleksij Rempel wrote:
> Add ASIX based USB 10Base-T1L adapter support:
> https://linux-automation.com/en/products/usb-t1l.html

Interesting.

I don't know the ASIX driver. Is Linux driving the PHY? So you get the
correct link mode for a T1L PHY?

	Andrew

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L
  2022-12-05 13:46 ` Andrew Lunn
@ 2022-12-05 14:57   ` Oleksij Rempel
  0 siblings, 0 replies; 4+ messages in thread
From: Oleksij Rempel @ 2022-12-05 14:57 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: netdev, linux-kernel, Russell King, Eric Dumazet, Lukas Wunner,
	kernel, Jakub Kicinski, Paolo Abeni, David S. Miller

On Mon, Dec 05, 2022 at 02:46:15PM +0100, Andrew Lunn wrote:
> On Mon, Dec 05, 2022 at 02:21:02PM +0100, Oleksij Rempel wrote:
> > Add ASIX based USB 10Base-T1L adapter support:
> > https://linux-automation.com/en/products/usb-t1l.html
> 
> Interesting.
> 
> I don't know the ASIX driver. Is Linux driving the PHY? So you get the
> correct link mode for a T1L PHY?

Yes. This part of the driver is using PHYlink. It is possible to see and
do what ever thy PHY is capable of :)

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L
  2022-12-05 13:21 [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L Oleksij Rempel
  2022-12-05 13:46 ` Andrew Lunn
@ 2022-12-08  1:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-12-08  1:20 UTC (permalink / raw)
  To: Oleksij Rempel
  Cc: davem, edumazet, kuba, pabeni, kernel, linux-kernel, netdev,
	lukas, linux

Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Mon,  5 Dec 2022 14:21:02 +0100 you wrote:
> Add ASIX based USB 10Base-T1L adapter support:
> https://linux-automation.com/en/products/usb-t1l.html
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  drivers/net/usb/asix_devices.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)

Here is the summary with links:
  - [net-next,v1,1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L
    https://git.kernel.org/netdev/net-next/c/5608e0a817ce

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-08  1:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 13:21 [PATCH net-next v1 1/1] net: asix: add support for the Linux Automation GmbH USB 10Base-T1L Oleksij Rempel
2022-12-05 13:46 ` Andrew Lunn
2022-12-05 14:57   ` Oleksij Rempel
2022-12-08  1:20 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.