Article View: linux.kernel.netdev
Article #25984Re: [PATCH net v4 09/10] net: au1000: keep the MAC stopped until the PHY link is ready
From: Florian Fainelli
Date: Wed, 02 Dec 2026 22:17
Date: Wed, 02 Dec 2026 22:17
37 lines
12990 bytes
12990 bytes
On 11/24/26 17:28, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 3 potential > issue(s) to consider. > > Critical: 0 ยท High: 1 ยท Medium: 2 ยท Low: 0 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] net: au1000: unattached PHYs on aup->mii_bus lack mac_managed_pm > - [Medium] Setting `phydev->mac_managed_pm = true` in au1000_mii_probe() > turns off phylib's MDIO-bus system-sleep handling. > - [Medium] When au1000_resume() fails, the interface is left in a state > it cannot leave once it is closed. The driver now sets mac_managed_pm on every PHY registered on its MDIO bus, including unattached aliases. This prevents MDIO-bus PM from powering down the physical PHY before the MAC stops or accessing MDIO after the MAC clock is gated. The MAC manages power transitions through the attached PHY only, avoiding duplicate operations through aliases. The resume callback now calls phy_init_hw() and phy_resume() even when the interface is down, then resets and clock-gates the MAC again. It leaves the IRQ and PHY state machine stopped for an inactive interface. For resume failures, close now skips phy_stop() when the PHY is already halted and restores netdev presence after freeing the IRQ. A subsequent ifup requests the IRQ again and retries PHY initialization and resume, allowing recovery without rebinding the driver. pw-bot: cr -- Florian
Technical Details
Message-ID:
<b98af46d-2883-4cd8-896e-dd045e05372e@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376078-linux-kernel-netdev=dewy.ruReferences:
<20261121004809.1690280-10-f.fainelli@gmail.com> <179557011468.3135.5568658065903608607@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376078-linux-kernel-netdev=dewy.ru
From: f.fainelli@gmail.com (Florian Fainelli)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4 09/10] net: au1000: keep the MAC stopped until the
PHY link is ready
Date: Wed, 2 Dec 2026 14:17:18 -0800
Organization: Usenet Network
Message-ID: <b98af46d-2883-4cd8-896e-dd045e05372e@gmail.com>
References: <20261121004809.1690280-10-f.fainelli@gmail.com>
<179557011468.3135.5568658065903608607@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2073730"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eF9OgubjHA6LiFu05C+KjeI+0x0= sha256:1Dy4nQZCDtVv3q6XN8Vgpp07G7SkhPwbLPoLF7uzRC8=
sha1:R1X8TjBWUJMM5CEn+YCw0lMwvpI= sha256:BYiqXqdMapXdtDuBwPXYufpMetqpc+UbH7QbFddxkTA=
Content-Language: en-US, fr-FR
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 1E509117753; Thu, 3 Dec 2026 01:17:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
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]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 bRlHv8PxLFjy;
Thu, 3 Dec 2026 01:17:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376078-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 85E68117751; Thu, 3 Dec 2026 01:17:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 222146023C2; Wed, 2 Dec 2026 22:17:24 +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=1796249843;
b=4OERGAZllh76rPof1ZNgiFPQywrXjzrrN13E2XMywuGen5LkjRmDQp5Lh1w1NR3x4gtH
3szYOH6KUuHqcTqK6oQGyWN+643qiYCxQlBsvd3U2rMemFb32GBCVFaSEdEGLzkh5vQIc
SlPOPyf6c0dg8nFLRmMAN6GUJMOwGHfeBGC6KxjSCE9M0tCV6c7HA5WWsYuBXIdPazfuV
koFzyhLtIc0mYinPkZ+I+mCoIwn4m2vHqSbQRN8uBCDQRKiZNQfu+OEtvHaqhuB2/lZTf
NGbpswrz0UKIdt7SJmxvHOVMaEWVvwagt/etcoZao8CdNvfXCCCzmbm9gOnOKvShHSg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796249843;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
Content-Type:Content-Transfer-Encoding;
bh=p71vxx24xdLLHkVOtSD9W9cTTaahaaXtYGtL+IuvGNs=;
b=P+qWFUvoeRszEzNqS4xRbw/zqXGUV5DmKeZakRQcpXF/yI37qTQyfzhVqBbDzfUXJ2tj
aLIGCInWC3buQ4oEWPZ1SLjL99wYS/FZZ5F/zqmEE+tT0bD++op9NCCPNN6VDP6nKaYUE
sZU/B07mlX90K4QCquDmoT3suisk11bm0B92c588GDaFLMjVqqnl4836ld0WcyRyDg/nF
zp2cNOQWjd4F4l+vWtMyC+dRWnw+MPp1DBAXFj+IL1kpXZBeLk1fMqPbVUFUw6oW1nDzl
jRWoR8YJxAPhidodJniyhLS9uySIFmv+Ir+x4fnsTUkzZd4kCqa4G5wbuTtT6s77IdA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ahi3naE3;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 348F0606A32D;
Wed, 2 Dec 2026 22:17:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ahi3naE3
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.169
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796249842;
b=gIZzwSpm3IkFGd0J3U0E4uQc9A/QzQz7RkJQsEG+76RUeFQkLL6dGN/pIFsdnPh2hy6N
rniTWfsBRsRfTE1wc8N6RQEecDeQPs5dFxdKnG4XKkS2gnt0U7O2kYnwTr9ALAJDcWZeI
rOa2DL96HpUgx0yO2rXwoMYixn0qCKUArWL67KPpcmJtz3w9maJpc1XkC6+AHGP5ovu/6
eBHQDIoLdtgDBzlzbezJ8Ja+6Tn2LxkcjPJjTCGbQ5VU/v0DqJbqxVzn9Ss3I/xpDd5K3
2kHzCnt60Fw5WXApzl1pNbV6lh3amlLYlYwtLr78hbGWE6SKIpEy0fccjh75Tn/2EQg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796249842;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date:
MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language:
From:In-Reply-To:Content-Type:Content-Transfer-Encoding;
bh=p71vxx24xdLLHkVOtSD9W9cTTaahaaXtYGtL+IuvGNs=;
b=ug8+9N77bKYH+55T5JUSOwN9iDnH+2UvrLZdkjQpjLLHuITeTmyi0EinXI/PgBdftx5I
NBwPAP9JXk4RIW3x9MmJui/YLC0s2E5bQA1u+zPezlDL3YFxqg45AZjQn4Q5/Vyy8MlKb
jeIeLlynIbvrN9oTpCcwuBvBkWpi1Es/30KQVIUivf1KjEB5B7JxV9ZMwI35tlsVUCSfJ
0ZMxec6WjyBEGOqkrbkCLYetDa8XyVxVUi7C6f/Np+vr3MGvwEVW+9cMP3uta9uIKGAya
8VJvz1VUsiDuNMKNGoBZYIFdiQuHjMfhZKoXLH8Q61g+XpG4kMURfMORv8/a93t5pDg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ahi3naE3;
arc=none smtp.remote-ip=209.85.215.169
X-Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0996E606A33A
for <netdev@vger.kernel.org>; Wed, 2 Dec 2026 22:17:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0996E606A33A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cd62c570b5dso9125110a12.2
for <netdev@vger.kernel.org>; Wed, 02 Dec 2026 14:17:21 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796249841; x=1796854641; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=p71vxx24xdLLHkVOtSD9W9cTTaahaaXtYGtL+IuvGNs=;
b=ahi3naE3QH5ElNRgLNN9i8tYa8pzfqBmDr4wFyXehyy7WS1W4KruFpDHKE0YS86caZ
bX/6qEKpCISnID9GvMnDyE8oSndCekssUdd3cBMMXxnE1GlOhccagQLniDNfng4W0kby
hf0LFzKQL4Cfh3yyPfhW0Du7Mpg9LfQ6aaiZegljmVZe/M7yrRpCw3xSAWRy0ajtoZ2S
wZlJoStkG52Ee4xGECBEpkDxNFKuBy4eK3F5Fag0tJDNAgruyrAOLhhY+OBfkgmSf1iz
1+8Vkpy9FflgfvYQO99hPS3tg9beTwhdTMZlZcYHf89nFhcYRlTQix4bAlfugJob6AdO
xrMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796249841; x=1796854641;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=p71vxx24xdLLHkVOtSD9W9cTTaahaaXtYGtL+IuvGNs=;
b=chUdXyp+FT3er5Vy/W0lj3cQoJeBUr6ghEUr2EU1epZuqlXNm80+P2J7h5eRs+J6Fb
Z9NhUTULMUM7VJIWTRAkh/zzxPn+fai9/JDS2DUo0cxr/I1rkKHRKhBBziJc4ome5VVj
OBe9qIZ+bf7LdgRhKvxBO3fNViFhCGTorcJUZRLErOjBAOK6FTVV6aiWcbPc6jzVAmQ+
BCU+z5bJXiunJv0X6VbhiTAaHwX6a7DbjCsc141/QGPkAel0oukNrcEAfnymXySIu3RS
Uihuj+kD82e7F6l7XFfvIVuMwqEOPMPWOYtf5NXLkOmpPyxz4jX781lqRgEF+BMlY4Xv
aQag==
X-Gm-Message-State: APuU4Z8ZuiefgRGwl1UiAOG7fdKCdoNsECQmrasg6NbUNLevbpEVE1sr
yasFpqI/fpMQzUj47jSDCIoKNufingKAhst8Nvxf4kRJcy+HAYcyBEg0
X-Gm-Gg: AZFdTZcU8xlBddOZ4mEqPB1e/iPGVxVDJ/Tx7c6iNO4Hci/pLNgzrK3bF/FmRglWRWi
+eekkePYNDoPLFZ2aBgGRZw1Kd7qCyXaGZgkMjFT/4hl0OdiX4WohLwKRrRxVu5MwD+tOiixmJS
7fjhrYX1u63U6WRtZWR2RNkA9FcnlZr+r1mc1krscRPIQxLVZGsd4PFbqiA5q5+g2A3mnR5nMhg
hTo3eKQTBZRRfRxwNOOM2KIPSlH7eQUJL0PhiXB8qDuFBA6HOLkR2Y0O7zvydaGoGLPl3arUhPZ
lf56NfNz5kiTqu2KdCXqW+HjHqbXjC3oa3Vtded+JTUTip+iK6yHtM22RT41x9dVV8RVCnQeJrj
oSWQRAVEe4Owy9EegdMWgWr6vScypAnxOPv0deYmLkrgs5D2lm5T8qqH0aQ58sLAo3bZwcyAKq/
ycx+WOxM6v1iExaV/EMdA7kjuko+DYqDmrwCrnglBxnFfcA6PlvY7HdmXLY+piIU61XXObN7knv
aMqMB2pyMO/GhHtv9KmFN6/mFv6UWplae1KvkzixV3CHcynIvfRoyrp2LLN71YNnU/hnUXjZMKd
TuV7yRJ9+tP3GAUBANiSwNpSkedvMSuGW+VDLl3aDf4jclFTVfEc/Eo=
X-Received: by 2002:a17:90b:384b:b0:3b5:c61e:82f4 with SMTP id 98e67ed59e1d1-3b5c61e8492mr1150363a91.46.1796249841100;
Wed, 02 Dec 2026 14:17:21 -0800 (PST)
X-Received: from [10.67.48.245] ([192.19.223.252])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7843862sm1075653a91.2.2026.12.02.14.17.19
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Wed, 02 Dec 2026 14:17:20 -0800 (PST)
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-User-Agent: Mozilla Thunderbird
X-Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
hkallweit1@gmail.com, linux@armlinux.org.uk, shaojijie@huawei.com,
horms@kernel.org, runyu.xiao@seu.edu.cn, mmyangfl@gmail.com, hvr@gnu.org,
danny.kukawka@bisect.de, mugunthanvnm@ti.com,
sebastian.hesselbarth@gmail.com, linux-kernel@vger.kernel.org,
manuel.lauss@gmail.com
X-In-Reply-To: <179557011468.3135.5568658065903608607@kernel.org>