Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1207027rwl; Fri, 7 Apr 2023 11:37:28 -0700 (PDT) X-Google-Smtp-Source: AKy350ZNF5wr/hpMAPmeQvqQKbgpLDmYnhOB1OS1XhV6Xa8IZgRFNS0JrRVyYsomJq1zJZzOeAgU X-Received: by 2002:a17:906:3116:b0:93b:d1ee:5f41 with SMTP id 22-20020a170906311600b0093bd1ee5f41mr437329ejx.31.1680892648419; Fri, 07 Apr 2023 11:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680892648; cv=none; d=google.com; s=arc-20160816; b=Gn3XUT9El8xdyW2hacGI9stMUn9//74csWG14T7RPX8ui+jHassm5t4JRQONzhqQsZ a+ubR3ktbshmDcqUYK4yUYCe9qF+UvwxQxdn6mNxH1Wk+LXhR64+ljfxdCP88bwyR3yf AlQUicyhK9dHwBNosiOPBk7Jp7aYpFQ2xOnXNv218GKut4qxPg540J+1nxiXmu4jgGRC pFo3dP7UXWOsJTuXrXR0lCoJ90+ToOCHVTqsNFNBENIYN3y37kfE5LtypGl5PzdXe7Ky a0MrvoS+PDugLgPHu0mcAqsOFOckO+oV4JOrVrDgZy/3ueUGA7iUEsBCpV6YoVPUaCkd CB1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a3Y12OpLPkFr5Y01kdUj0Z1lgfj73ew18jkEUMw4oSE=; b=qnje4Pf5Wgo0VPjw11PMOirGBRU4snfClWroogTh7jbqu7rhP+LZDTHMQvtpNo+IJU 9i2ljuNtSF9N9yOwroWJwp0NezDY6usP4sjftGqBdby06Xzd1GHaWaSWUfZ22hKoJWDz MrH1UtVRBS9D0bAfiDJxmk8A9z7NVBnl0y4w3qOXuAH+YXQrLo+rpCw57iOVEeUv7BEI 2GJgxVqw0E0ogVJnwugT66ZHHhcqo4uQOWheEgj7X0LUqQHcAcBQzSBuRCsooQQo2y8D AWKHSBJCvXt6CeVBN8/hDuCGM0Z7sxFt4JDG9Ly4pWK8/BLNhHGDD33qNCyeeeXo4uOO ExwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aNbGZ6Sl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020aa7cacd000000b0050477cb61ecsi2232847edt.82.2023.04.07.11.37.03; Fri, 07 Apr 2023 11:37:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aNbGZ6Sl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbjDGSPU (ORCPT + 99 others); Fri, 7 Apr 2023 14:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjDGSPT (ORCPT ); Fri, 7 Apr 2023 14:15:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E242D6A53; Fri, 7 Apr 2023 11:15:17 -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=a3Y12OpLPkFr5Y01kdUj0Z1lgfj73ew18jkEUMw4oSE=; b=aNbGZ6SljA7nUPH3MwVfsH7SeA Qmmpxs4Lb/OOeqK9pgpKXSEuFnril667PgSqVwsuurDp1zuagAsD7f+LnG9TTPbuFn4qoU1JMBh9J z1OcHf+nuU+0qoXFnjUGwDQeKKeVfoAaRBSB97s8J4rXcPugxZiDkNUlY/+h1UZoHbfc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pkqc0-009kef-Ak; Fri, 07 Apr 2023 20:15:00 +0200 Date: Fri, 7 Apr 2023 20:15:00 +0200 From: Andrew Lunn To: "Radu Pirea (OSS)" Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH net] net: phy: nxp-c45-tja11xx: add remove callback Message-ID: References: <20230406095904.75456-1-radu-nicolae.pirea@oss.nxp.com> <104c1190-cd18-d7c9-7b27-af367ac539bb@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <104c1190-cd18-d7c9-7b27-af367ac539bb@oss.nxp.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Do you need to disable interrupts? I suppose the real question is, is > > it guaranteed phy_disconnect() is called before the driver is removed? > The MAC driver should call phy_disconnect() when it is removed. Also, the > user should not be able to remove the PHY driver if is in uses. That was what i was thinking. But i've never unloaded a PHY driver, so i've no idea what actually happens. Andrew