From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A1FECDB474 for ; Mon, 16 Oct 2023 08:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230209AbjJPI3U (ORCPT ); Mon, 16 Oct 2023 04:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230112AbjJPI3U (ORCPT ); Mon, 16 Oct 2023 04:29:20 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53B5B4 for ; Mon, 16 Oct 2023 01:29:15 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qsIyQ-0004tj-Aq; Mon, 16 Oct 2023 10:29:14 +0200 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsIyP-0022WN-Ru; Mon, 16 Oct 2023 10:29:13 +0200 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qsIyP-00EiFK-Pb; Mon, 16 Oct 2023 10:29:13 +0200 Date: Mon, 16 Oct 2023 10:29:13 +0200 From: Oleksij Rempel To: Maciej =?utf-8?Q?=C5=BBenczykowski?= Cc: stable@vger.kernel.org, Greg Kroah-Hartman , Andrew Lunn , Patrick Rohr Subject: Re: USB_NET_AX8817X dependency on AX88796B_PHY Message-ID: <20231016082913.GB3502392@pengutronix.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: stable@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Sun, Oct 15, 2023 at 03:13:26PM -0700, Maciej Żenczykowski wrote: > On Sun, Oct 15, 2023 at 2:55 PM Maciej Żenczykowski wrote: > And actually looking longer at the logs: > > usb 1-5: new high-speed USB device number 9 using xhci_hcd > usb 1-5: New USB device found, idVendor=0b95, idProduct=772b, bcdDevice= 0.02 > usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 1-5: Product: AX88772C > usb 1-5: Manufacturer: ASIX Elec. Corp. > usb 1-5: SerialNumber: 000002 > asix 1-5:1.0 (unnamed net_device) (uninitialized): PHY > [usb-001:009:10] driver [Asix Electronics AX88772C] (irq=POLL) > Asix Electronics AX88772C usb-001:009:10: attached PHY driver > (mii_bus:phy_addr=usb-001:009:10, irq=POLL) > asix 1-5:1.0 eth0: register 'asix' at usb-0000:00:14.0-5, ASIX > AX88772B USB 2.0 Ethernet, 14:ae:85:70:44:29 > asix 1-5:1.0 enx14ae85704429: renamed from eth0 > asix 1-5:1.0 enx14ae85704429: configuring for phy/internal link mode > usb 1-5: USB disconnect, device number 9 > asix 1-5:1.0 enx14ae85704429: unregister 'asix' usb-0000:00:14.0-5, > ASIX AX88772B USB 2.0 Ethernet > > It looks like the rest of that patch is needed too, since it is a AX88772C phy. > > This means even with the option manually enabled, we'd still need to > cherrypick dde25846925765a88df8964080098174495c1f10 > "net: usb/phy: asix: add support for ax88772A/C PHYs" > since apparently this is simply new(ish) hardware with built-in x88772C PHY. As far as I see, you are not using clean mainline stable kernel. All changes which make your kernel to need an external PHY driver are _not_ in v5.10.198. You will need to cherrypick at least 28 last patches from this stack: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/net/usb/asix_devices.c?h=v6.6-rc6 and some from here too: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/net/usb/usbnet.c?h=v6.6-rc6 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 |