Re: [PATCH 5.4] net: sfp: ignore disabled SFP node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 29, 2022 at 05:09:47PM +0100, Marek Behún wrote:
> From: Marek Behún <kabel@xxxxxxxxxx>
> 
> commit 2148927e6ed43a1667baf7c2ae3e0e05a44b51a0 upstream.
> 
> Commit ce0aa27ff3f6 ("sfp: add sfp-bus to bridge between network devices
> and sfp cages") added code which finds SFP bus DT node even if the node
> is disabled with status = "disabled". Because of this, when phylink is
> created, it ends with non-null .sfp_bus member, even though the SFP
> module is not probed (because the node is disabled).
> 
> We need to ignore disabled SFP bus node.
> 
> Fixes: ce0aa27ff3f6 ("sfp: add sfp-bus to bridge between network devices and sfp cages")
> Signed-off-by: Marek Behún <kabel@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx # 2203cbf2c8b5 ("net: sfp: move fwnode parsing into sfp-bus layer")
> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
> [ backport to 5.4 ]
> Signed-off-by: Marek Behún <kabel@xxxxxxxxxx>
> ---
>  drivers/net/phy/phylink.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 

All now queued up, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux