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 E4AA1C433F5 for ; Sat, 7 May 2022 13:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354981AbiEGOB7 (ORCPT ); Sat, 7 May 2022 10:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231375AbiEGOB4 (ORCPT ); Sat, 7 May 2022 10:01:56 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B0E29CA8; Sat, 7 May 2022 06:58:09 -0700 (PDT) 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=jD8TyMuu+bcxOTqwym8lZasuV6dU31UITBMEYcnRFAI=; b=1/ZYjMcXmaJSnoaN1HeHcCGzx7 djzOpbh1ZM+SyjG7CzhJFP7Tzpzc79UWgRfimTck00mJJXEtbkKtj9adeb0hbetowturcbZ6dvpju kRr7UQ+Y/thbkyhvcB1Gv8mUk0dZRzsub15oBBEelgRDXCiuz5fsrrb/L2zOh7wVxGfg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nnKwT-001fFK-18; Sat, 07 May 2022 15:57:53 +0200 Date: Sat, 7 May 2022 15:57:53 +0200 From: Andrew Lunn To: Francesco Dolcini Cc: Heiner Kallweit , Russell King , Joakim Zhang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH net v2] net: phy: Fix race condition on link status change Message-ID: References: <20220506060815.327382-1-francesco.dolcini@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220506060815.327382-1-francesco.dolcini@toradex.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Fri, May 06, 2022 at 08:08:15AM +0200, Francesco Dolcini wrote: > This fixes the following error caused by a race condition between > phydev->adjust_link() and a MDIO transaction in the phy interrupt > handler. The issue was reproduced with the ethernet FEC driver and a > micrel KSZ9031 phy. > > Link: https://lore.kernel.org/all/20220422152612.GA510015@francesco-nb.int.toradex.com/ > Fixes: c974bdbc3e77 ("net: phy: Use threaded IRQ, to allow IRQ from sleeping devices") > cc: > Signed-off-by: Francesco Dolcini Reviewed-by: Andrew Lunn Andrew