From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBEF018FC97; Wed, 1 Jul 2026 15:09:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782918544; cv=none; b=YXuOdHcdB5GI5h2I3uAM7jjGw6/4N6rSNIKW6AV07FucZijcMXSN0Kq6hUV9OSOz8Uk6+h1I7bc62sdy5hP34+lIDen6EaKoKNKgleT0Npr7K2ph9XpEJNBd6Dp/D0zYIr6t6KTwuOIZlubGgx1sE4h5gArPtFX3N0lajm3DbSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782918544; c=relaxed/simple; bh=dVEvulQ72WCVFoqa6gPcVhv7eBp/Ml+x+rS9+5SK+Aw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iAJaQ6KXHutf5VPC3cgbaf9XXuJJz4bfPzaqw74YLWRAidlr6l3ooOBYRVq079Y+q+12GGlsj7delRsqivpVLjS5noJSM8w2ghBSyxISNdopAjBlCp3EEaPechCZMUAe6i4WQSlEqkD1C90xh3tNiDcPbORyIJpDK2ewF1LZnb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=ZX5/2tA6; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="ZX5/2tA6" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=oIMlAFaCIS+fMDslYay9YWXGdoQdS3epU4RzYxH5XmE=; b=ZX5/2tA6zwGCHAZk3T2j6auwA8 Ac4Z08b6ZRhT9g9eI7cq+Cc6d3U4RAkV8cDYqNpy7N+SqRNelHIDaCfW6B/gA5nBDLpqWwyaamyTP HbUk3PUoWd7Cr2NQrL1r7FZwvwOY5cNzjtGBopVqDwNkiVbQGuE/6GMODBWo4GBxwC/o=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1wewYY-00ABg4-Sg; Wed, 01 Jul 2026 17:08:54 +0200 Date: Wed, 1 Jul 2026 17:08:54 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: Birger Koblitz , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/9] ax88179_178a: Add support for ethtool pause parameter configuration Message-ID: <947860cc-de6e-48b8-804b-e27f27b2f82c@lunn.ch> References: <20260701-ax88179a-v1-0-13685df67515@birger-koblitz.de> <20260701-ax88179a-v1-5-13685df67515@birger-koblitz.de> <587499ee-d87e-4056-8d2a-8fda2ef3f0f1@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <587499ee-d87e-4056-8d2a-8fda2ef3f0f1@bootlin.com> > > +static void ax88179a_get_pauseparam(struct net_device *net, struct ethtool_pauseparam *pause) > > +{ > > + struct usbnet *dev = netdev_priv(net); > > + struct ax88179_data *data; > > + u16 bmcr, lcladv, rmtadv; > > + u8 cap; > > + > > + data = dev->driver_priv; > > + > > + if (data->chip_version < AX_VERSION_AX88179A) > > + return; > > + > > + bmcr = ax88179_mdio_read(net, dev->mii.phy_id, MII_BMCR); > > + lcladv = ax88179_mdio_read(net, dev->mii.phy_id, MII_ADVERTISE); > > + rmtadv = ax88179_mdio_read(net, dev->mii.phy_id, MII_LPA); > > + > > + if (!(bmcr & BMCR_ANENABLE)) { > > + pause->autoneg = 0; > > + pause->rx_pause = 0; > > + pause->tx_pause = 0; > The best way to have this correct is to use phylink, but for that you'd need to > have a proper PHY driver instead of using the mii_ API here. I said the some to one of the other patches. Do we know what PHYs are being used? Can register 2 and 3 be read to get the PHY IDs? Andrew