lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ea4f2da3-a91f-f1fa-b70d-e9bd46708454@denx.de>
Date:   Thu, 25 Jul 2019 16:56:37 +0200
From:   Marek Vasut <marex@...x.de>
To:     Andrew Lunn <andrew@...n.ch>
Cc:     netdev@...r.kernel.org, Tristram Ha <Tristram.Ha@...rochip.com>,
        "David S . Miller" <davem@...emloft.net>,
        Florian Fainelli <f.fainelli@...il.com>,
        Vivien Didelot <vivien.didelot@...il.com>,
        Woojung Huh <woojung.huh@...rochip.com>
Subject: Re: [PATCH 3/3] net: dsa: ksz: Add Microchip KSZ8795 DSA driver

On 7/25/19 4:03 PM, Andrew Lunn wrote:
> On Wed, Jul 24, 2019 at 03:40:48PM +0200, Marek Vasut wrote:
>> From: Tristram Ha <Tristram.Ha@...rochip.com>
>> +static void ksz8795_phy_setup(struct ksz_device *dev, int port,
>> +			      struct phy_device *phy)
>> +{
>> +	if (port < dev->phy_port_cnt) {
>> +		/*
>> +		 * SUPPORTED_Asym_Pause and SUPPORTED_Pause can be removed to
>> +		 * disable flow control when rate limiting is used.
>> +		 */
>> +		linkmode_copy(phy->advertising, phy->supported);
>> +	}
>> +}
> 
> Hi Marek
> 
> Do you know why this is needed?

Unfortunately, no.

It seems it copies supported features of the PHY to advertised features
of the PHY for ports which are downstream (i.e. not the CPU port).

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ