Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1145758pxb; Sun, 12 Sep 2021 09:15:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+VsMSxM2pRJ4jUtM3nsclpE1qsJpLGiGnc+9t4CS+Fa5TAb+mFr7a9/y64Ob7t+v02qvA X-Received: by 2002:a05:6e02:1044:: with SMTP id p4mr5088589ilj.227.1631463330644; Sun, 12 Sep 2021 09:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631463330; cv=none; d=google.com; s=arc-20160816; b=Kj3N53EaINqChNwrYKwkERFTwWaR/78LJpUQ86pNF0PqY6/DpHmd7OVCL0Jl3jk4C2 CNw0bTK82WLSzDX9sxBQqqdUeS1YclYiobV5h8sAkmN3Hf8iw6ltGrIoQt7vg2kehQOV A8IqjysTFVosjdVb44SFqvEGRMS6kVJOQpJAn7FBXsKa9ROSD7DAbJAJoTbVRRjItdNC qS/Mru5ZTK6aIO2cJ8yjDoRK+sYABfKpkn+tXfoe5XEVyvZS22JE0R0JIsx5KSpEk+hN BgCz06/mMOSruW47FVSXxLiGsTRy5NrROXqiOUWL+ZHxU6wi0l4MaOxOM1JEhs9vgHlD WwcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=P60SQ/CsW1eZndcpQR8AR/xrEVIdL+Rao4L2rbgdhaA=; b=HgH+KIWV1UER4uDn8/YyOiZpOgNhQHlimrTq7+pFwNOUBGMvgMOCBDbguc3KuUZk67 SeoXUDOWxRzJJL8onlAVHddn1OVmwc3Gqpll+EcJE5rBVOSoSKPsFfSUD9reMRFI0WeP KC214xqpVKQuYikipOQVY7zfuWo3hOP1ARwLexdZhC4sW00TnEDMdSQXpkjpbmD/ZueG 47+AcjEX+lzKbZpfdG1dcJXWaE4QX9jdfbYADtSM+L+8h1TJgbW3EyLxRHOAPWqQpvBI tKPuPS4jIGQVIC6ZH0NC3QbnPZReJhrvTVUMRN2weLsCb6VkvafFmOy0TsD0TjtMX5/1 TjbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HUwk6qnr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si4908790iom.82.2021.09.12.09.15.16; Sun, 12 Sep 2021 09:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HUwk6qnr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233030AbhILQPe (ORCPT + 99 others); Sun, 12 Sep 2021 12:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbhILQPe (ORCPT ); Sun, 12 Sep 2021 12:15:34 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3FD9C061574; Sun, 12 Sep 2021 09:14:19 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id 22so7932994qkg.2; Sun, 12 Sep 2021 09:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=P60SQ/CsW1eZndcpQR8AR/xrEVIdL+Rao4L2rbgdhaA=; b=HUwk6qnr0kgyqmTOdj14K7PvRl+vIgLwhfa/Soxserjlx37Q0bl82oHT4huLR3WgeI ulPWtV72/igDuyPZofm4nb4dckNhxmprUg38UWVo82a3Ykx8O2lBRxLO3iNi63n2Tu4f HOf9CaMXpjic2WE20hT1aDR7vdocgvMZDfCkWbq6EmVifM3Z54ZbqLU9GGkNE+Bv41S5 jHaTArKj1jA2hXTnoF+JnyIZOpCvlyn+m9mau3lq0PprQygy/o20YjltGrBjt31GQEJ+ EE7gWGuBUAOOfH/adHuIEKG0qB2zLImFBPmodyG7nJdrHzzSsd3OTUomkJBeeKHlIdR/ 9Q1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=P60SQ/CsW1eZndcpQR8AR/xrEVIdL+Rao4L2rbgdhaA=; b=QgIlnQlgReqoi98Z4L8VWMn33HSJVKyiC51EAEm0JlQQf5wvhmWZ9VR7RXvqf+7QZX xrUMqexk9Zs/mJgrclpq2PkvTadQ53KHwDel1DZ5Jtb+NcrddwIKHsYGNOQ2v2E+f56R 0BIR7CXQ23hlJrSdlapZHnE7u8FYZDNGi1bAxEdKL/tyPMC8v8jKrc0CTDGUrCmgejlw m01TE7AxytNU0mU+Xxm09y0dt8yyXFNmRLrQBxwtAPr+7OIhEJPR6yUNEbn0ntuZv/WW VWwhKX2w9G7OjvyfvFcH8BkMXD9rurbFmI/rFNlO6QIcOuB68RNwZ3y+iFZe7qsr3Su5 JAQw== X-Gm-Message-State: AOAM5314Eosh35vjjD7QIM+24tcnkov0DuJY9I+fTQBUa+xLDIse4Q5X hGORhCWP1nBOpCTVNyxr8mZE/G/Ass0= X-Received: by 2002:ae9:f40b:: with SMTP id y11mr6289972qkl.107.1631463259134; Sun, 12 Sep 2021 09:14:19 -0700 (PDT) Received: from ?IPV6:2600:1700:dfe0:49f0:b198:60c0:9fe:66c9? ([2600:1700:dfe0:49f0:b198:60c0:9fe:66c9]) by smtp.gmail.com with ESMTPSA id y12sm2693999qtj.3.2021.09.12.09.14.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Sep 2021 09:14:18 -0700 (PDT) Message-ID: Date: Sun, 12 Sep 2021 09:14:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [RFC PATCH net 1/5] net: mdio: introduce a shutdown method to mdio device drivers Content-Language: en-US To: Vladimir Oltean , netdev@vger.kernel.org Cc: Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Linus Walleij , George McCollister , Heiner Kallweit , Russell King , Oleksij Rempel , Michael Grzeschik , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Lino Sanfilippo References: <20210912120932.993440-1-vladimir.oltean@nxp.com> <20210912120932.993440-2-vladimir.oltean@nxp.com> From: Florian Fainelli In-Reply-To: <20210912120932.993440-2-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/12/2021 5:09 AM, Vladimir Oltean wrote: > MDIO-attached devices might have interrupts and other things that might > need quiesced when we kexec into a new kernel. Things are even more > creepy when those interrupt lines are shared, and in that case it is > absolutely mandatory to disable all interrupt sources. > > Moreover, MDIO devices might be DSA switches, and DSA needs its own > shutdown method to unlink from the DSA master, which is a new > requirement that appeared after commit 2f1e8ea726e9 ("net: dsa: link > interfaces with the DSA master to get rid of lockdep warnings"). > > So introduce a ->shutdown method in the MDIO device driver structure. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian