Article View: linux.kernel.netdev
Article #23089Re: [PATCH net-next] net: dsa: motorcomm: Unregister the MDIO buses on teardown
From: Andrew Lunn
Date: Thu, 26 Nov 2026 13:53
Date: Thu, 26 Nov 2026 13:53
12 lines
8454 bytes
8454 bytes
> +void yt921x_mbus_int_remove(struct yt921x_priv *priv)
> +{
> + struct mii_bus *mbus = priv->mbus_int;
> +
> + if (!mbus)
> + return;
Can mbus be NULL when this function is called? Either setup was
successful and it exists, or setup failed and it does not.
Andrew
Technical Details
Message-ID:
<897d6fa1-69f6-4f4f-a7d5-88480128174b@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372126-linux-kernel-netdev=dewy.ruReferences:
<20261126034725.64709-1-mmyangfl@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372126-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] net: dsa: motorcomm: Unregister the MDIO buses on teardown Date: Thu, 26 Nov 2026 14:53:23 +0100 Organization: Usenet Network Message-ID: <897d6fa1-69f6-4f4f-a7d5-88480128174b@lunn.ch> References: <20261126034725.64709-1-mmyangfl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="478418"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uy1ylv9C8Xt1N6oVX14doRdY+Ak= sha256:Or6rxNSxIxWmA4MGsH8iDGTOSysSz86R/QFfeZ8Nnwo= sha1:kdnvdsxfqmJpUaPL76hzXYwj1hg= sha256:7Ku8fYAbW3ENp7aq9JH7bVhDTzS3fcao3Lma8iusahA= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 08DFC125EDB; Thu, 26 Nov 2026 16:53:49 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wiw7QmTtSut3; Thu, 26 Nov 2026 16:53:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-372126-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id B48B8125ED5; Thu, 26 Nov 2026 16:53:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 14F7436586; Thu, 26 Nov 2026 13:53:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795701211; b=KZJsjf0fb2Hl7v4iS7Hzte4rKliLdh22pu9mv3q59rxc6hiEpcQsKtVecSxc/f0W7vDV UT+npbk3ce+BYDcEo+zkoGomhmebTocRg2j0dd0Bum4TcovRfnQuDcF3/bJa1NJT5jQ+u V0cZBSQ7GHfXBuCX4i1RnNoEZNJ7HCKGhLt3i7UdnHbnopETahEdaCTw/os+dXVoZVe+U t3iCBholxAVJVionXI/hYnUIkuCt3lVjgfKHXvsKYNmB8CzT2wY4+SUssBO1d9FyMrJja lAKlHGEC566Az8V1Mk2h3j6No7mPPP27prN/i572Nlg/AxEZq0TC3Nb1oWRHPUxvSlA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795701211; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ebV0y2jEvuYrRrJWZSxKZ6e5HO0MkayUBG1tVhWaWqI=; b=fTlT15RI53JQwpwEgsSBT0Jv7kKgPz0m8FACsUpjwbwBXtWri3wXSn4VxACAdNpGrtKw le8oaVXKctJ0LkaQYt1QbmYWyaiRsCVeIjeCw8D1DlBuPPpURodnuOWJKmF3DB1aAStg5 60kCeak5TsikrMQZ0GXPFTvBpoVKLq4cJ10re53pBSNzH8XD0GZIG84OCb+klaZZw0DE4 orpP0TWy3ye2yLag/p/5K9PKvkTvfS4zYqcmU6Yk+Q84yrNvLa7CswfefnTIYfVhrql7l /x/+W+g/+x/lVHzGpf05zOlT+Yi7TUzzz9xImqefmGoKbT1pEK3oGvHnkaiCRbiyE7Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RK6jupH3; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11580606A692; Thu, 26 Nov 2026 13:53:31 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RK6jupH3 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795701210; b=YSJLlPbQ15jSJ+PX1u3Z/h3oiXAt+JhLGse300/WKBbpf7CR1ytP71onlz+FHDZveKDK LOVMOoPAyj1LzXil4kF/JBRrnnimCKrzQ06SDQKYMFfyJPalwitHN0cyBU5d9YP6IAOSx LeOE3ffGDiEybp9UesdsB/d2qddNQ4SYWZwAfJbIPK2Uyb0BSr5UtKVeHxloTStPJWRkA hU+9VOWTue1Uf5Mm90X7CQIjiKq3Imwv69HWId0MKXA4Td5TztdwfpERj/6HkEZAM2nW3 KyC0nD9hH7MwlABjhYPmKjcXSWw2xJyhhyQ7Mk88c/C4EMKnjlSFxIvvBewU9tUsvwg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795701210; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=ebV0y2jEvuYrRrJWZSxKZ6e5HO0MkayUBG1tVhWaWqI=; b=qMcfCTlIUXYxtwLsoWgCbzCsXwBWsEYosVbJ27M1SN3gv28pym9dQz8TxIo6+FLf5beK SRv6XioDM9EsLdonsbrLh/5PmepnZwm8GbhanpSVxxE0OY2a+X81RCHKFk8XFxdOSlHFf sI0vJMZr5kt/+FCmvnXwJ+l59NO7hS6tfyoCQB+UXhN3s6GcTDaXNrqbOWt9rILWsjwvm h6qhUjzcB/7bBLn7FnqcU2VlI80Q1btI4HMWxB4RB9HjacKPO9hdbKadCavlwMwV/xAap nDhydXNgEKO28lpqh8G6YDIPSk8YpuF6UKlHBn0s+KudZsJ2qHZX5Pll7waAS/glopA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RK6jupH3; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B28BF606A69E for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 13:53:29 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B28BF606A69E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-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=ebV0y2jEvuYrRrJWZSxKZ6e5HO0MkayUBG1tVhWaWqI=; b=RK6jupH344+N2xFlW/rgEzvAzN c6withQ/8rbTe+6dgVGjK/mCKU1nKIX8+WRLuH1LFyR4GBOTYdKX1ladVDx4q390RgNiLIQ+Aj+gU dJ7gUHvhQzNLq4M9wW541Y1/ryM1zk+sAVrg4vkyNowEt2kINqx4os3NFdDDdVF4s6FA=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xWZud-001Zo9-V5; Thu, 26 Nov 2026 14:53:23 +0100 X-Cc: netdev@vger.kernel.org, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Russell King <linux@armlinux.org.uk> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261126034725.64709-1-mmyangfl@gmail.com>