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  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]
Date:   Sun, 26 Apr 2020 14:22:57 -0700
From:   Florian Fainelli <>
To:     Andrew Lunn <>, David Miller <>
Cc:     netdev <>,
        Heiner Kallweit <>,
        Chris Healy <>,
        Michal Kubecek <>
Subject: Re: [PATCH net-next v1 1/9] net: phy: Add cable test support to state

On 4/25/2020 11:06 AM, Andrew Lunn wrote:
> Running a cable test is desruptive to normal operation of the PHY and
> can take a 5 to 10 seconds to complete. The RTNL lock cannot be held
> for this amount of time, and add a new state to the state machine for
> running a cable test.
> The driver is expected to implement two functions. The first is used
> to start a cable test. Once the test has started, it should return.
> The second function is called once per second, or on interrupt to
> check if the cable test is complete, and to allow the PHY to report
> the status.
> Signed-off-by: Andrew Lunn <>
> ---


> +static void phy_cable_test_abort(struct phy_device *phydev)
> +{
> +	genphy_soft_reset(phydev);

Some drivers implement a soft_reset callback which would not be covered
here, so I believe you need to call phy_init_hw() here. With that fixed

Reviewed-by: Florian Fainelli <>	

Powered by blists - more mailing lists