From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from www537.your-server.de (www537.your-server.de [188.40.3.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BB4919D8BC for ; Thu, 16 Apr 2026 06:20:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.3.216 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776320428; cv=none; b=IiRYSkif1hzCyToNXL1lzDxCeqK7vNSrzPqXvdkj4ucYU9a+eq/qwVsqyCplco1CTkX/Xl1spWYCVUxtkgF119F82HRMWhXHuI3uCdFs+XSTu6k/20zoEIYxkpojxfjR4HLFfXgeFxp96L6yYYxmjYm7gCJgNynbqP/PmGLHWcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776320428; c=relaxed/simple; bh=bh8msoz4EI4a/BdUDMFy3bVSmNNJFCpl0CsanK230Ts=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oU6NZ4+nwSXN5QnaxXsZThXVCpFrugmqMMBPMd//6tswwtmJgHtemAy5Ue75PE1oF5qaZNstUV1rr9Fpe7qlHaC+KrbusoCZ4tz37N7inuA75GjixMbbpvM886yjIqq/+EPjUXnamZzoORR2koOwTt3MA42p0B8+xZkbzxeDhLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=R//Cr3VV; arc=none smtp.client-ip=188.40.3.216 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="R//Cr3VV" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ew.tq-group.com; s=default2602; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=QVEWApQ8SGzvLOzKWrNmtTuBW8dEI9SRhim1vQtgHE4=; b=R//Cr3VV3lQasZ26REI5zhDcVn v2b0sJZIvov1K3dg/i6Mbv2ra5hbvuM4Kn7jhhiynrNDyeyUWf2kQArF2zxZo0iMAQahMd3fDQShK XBtyVxMXMzJKXAuDMTeZAw4SRrqDPiGUOXAWCJiQLZVDZ7mwPt7/m0I/967IM177d+hrj9UglRasE hSk525hrA9eRobjS535sMqEu+eyU8VbObLJ5XvgCwbUM6yp/TI8p+rbBF4BAWTm7fAQhymLZFAOPK XABd8Vltp37V3mjgBRNu4UEUvILxywBP8r5AWchJ16yhhzRnZKFwNUx+L40V3E+rkfW1sLb7Ffpbd ZvF4K7Ug==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www537.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1wDG5G-000Fp1-21; Thu, 16 Apr 2026 08:20:14 +0200 Received: from localhost ([127.0.0.1]) by sslproxy06.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wDG4i-000Oj6-2s; Thu, 16 Apr 2026 08:20:14 +0200 From: Alexander Stein To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , Alexandre Torgue , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni Subject: Re: [PATCH net-next 5/6] net: stmmac: move PHY handling out of __stmmac_open()/release() Date: Thu, 16 Apr 2026 08:20:13 +0200 Message-ID: <5987484.DvuYhMxLoT@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <8409022.LvFx2qVVIh@steina-w> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: Clear (ClamAV 1.4.3/27972/Wed Apr 15 08:24:27 2026) Am Mittwoch, 15. April 2026, 14:59:32 CEST schrieb Russell King (Oracle): > On Wed, Apr 15, 2026 at 08:08:40AM +0200, Alexander Stein wrote: > > Hi, > >=20 > > Am Dienstag, 23. September 2025, 13:26:19 CEST schrieb Russell King (Or= acle): > > > Move the PHY attachment/detachment from the network driver out of > > > __stmmac_open() and __stmmac_release() into stmmac_open() and > > > stmmac_release() where these actions will only happen when the > > > interface is administratively brought up or down. It does not make > > > sense to detach and re-attach the PHY during a change of MTU. > >=20 > > Sorry for coming up now. But I recently noticed this commit breaks chan= ging > > the MTU on i.MX8MP. Once I simply change the MTU I run into some DMA er= ror: > > $ ip link set dev end1 mtu 1400 > > imx-dwmac 30bf0000.ethernet end1: Register MEM_TYPE_PAGE_POOL RxQ-0 > > imx-dwmac 30bf0000.ethernet end1: Register MEM_TYPE_PAGE_POOL RxQ-1 > > imx-dwmac 30bf0000.ethernet end1: Register MEM_TYPE_PAGE_POOL RxQ-2 > > imx-dwmac 30bf0000.ethernet end1: Register MEM_TYPE_PAGE_POOL RxQ-3 > > imx-dwmac 30bf0000.ethernet end1: Register MEM_TYPE_PAGE_POOL RxQ-4 > > imx-dwmac 30bf0000.ethernet end1: Link is Down > > imx-dwmac 30bf0000.ethernet end1: Failed to reset the dma > > imx-dwmac 30bf0000.ethernet end1: stmmac_hw_setup: DMA engine initializ= ation failed >=20 > This basically means that a clock is missing. Please provide more > information: >=20 > - what kernel version are you using? Currently I am using v6.18.22. $ ethtool -i end1 driver: st_gmac version: 6.18.22 firmware-version:=20 expansion-rom-version:=20 bus-info: 30bf0000.ethernet supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: yes supports-priv-flags: no > - has EEE been negotiated? No. It is marked as not supported $ ethtool --show-eee end1 EEE settings for end1: EEE status: not supported > - does the problem persist when EEE is disabled? As EEE is not supported the problem occurs even with EEE disabled. > - which PHY is attached to stmmac? It is a TI DP83867. imx-dwmac 30bf0000.ethernet eth1: PHY [stmmac-1:03] driver [TI DP83867] (ir= q=3D136) > - which PHY interface mode is being used to connect the PHY to stmmac? =46or this interface > phy-mode =3D "rgmii-id"; is set. In case it is helpful. My platform is arch/arm64/boot/dts/freescale/imx8mp-= tqma8mpql-mba8mpxl.dts Thanks for assisting. If there a further questions, don't hesitate to ask. Thanks and best regards Alexander =2D-=20 TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/