From nobody Fri Sep 16 17:43:12 2022 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MThHh1DS0z4cg33 for ; Fri, 16 Sep 2022 17:43:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MThHh00Tlz41gQ for ; Fri, 16 Sep 2022 17:43:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MThHg65P2zRGl for ; Fri, 16 Sep 2022 17:43:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28GHhBd3051605 for ; Fri, 16 Sep 2022 17:43:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28GHhBkM051604 for net@FreeBSD.org; Fri, 16 Sep 2022 17:43:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 263820] dwc: dwc driver is not able to receive packets after adding new MAC address Date: Fri, 16 Sep 2022 17:43:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663350192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xn+th7y0adKEozM41kHKabHNirYUp5aKNKF5f40jTcw=; b=l+pslUNbFmxy12xSgbMroQ1ZoUOHD2jt4mQHyxZpac6UJhxaCaNzWD3Zh5q0XkCp2y+K0k KzN6rS9WMMlv5cUOLU17i1+xijW5MJ/Fp4YFxZSyL3KOBVCjzvGJSTfoaULQGVF+LSdWx0 CP7eI9dIJTjP9AwYmLbjmRhHoK2ybqw84o8kwzJU7rT8dg8rakVFjKR2gUU5D0AS4QVwwh N0xiNp3bPLmwShFqQchs21WN2BspoCH4q96T1VNiACoV/12WOM8swdy9yWadnYnOgY6uBA skjogqH2WNxEaVWzFtP0xr4XOih/OEW7rvQfbr631ngle+0aawzOS+E6p/6/mQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663350192; a=rsa-sha256; cv=none; b=M5ft51sa+t+U/yBcYjsgwtYkjRhgkdIH3VxR6XdH1aiEm4xKJziHsjsJ0Da3IzkT8w7Ffv M1V88vWTc3HJgfCtBChymnauAP2WWhwzzWCP3cXxF3R63GRwcZ7Tf4PsFV2TErJFWmGMxy Bmt2hOswQQERENhI5gXyPAfoYm6MpzkvISEQJ3Urgjj2A4J7W8D+DGIdBaAOtMD3hIy64H ZaavEb6QSQyq/jqgjZ/p1bhuBnu3tfQ3m5wE7khZ2EmGIy2OWRCTtNePEWbXarx0jqQz77 4kZJx/xY3yoka42xYtx6L3LVFWd7rKRlPZHsSY0IQkM8Cgi5BznkIX75kJJTsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263820 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc1cec62c0db0cb15d2d09aa5dfc5bd372= 7bbf3f6 commit c1cec62c0db0cb15d2d09aa5dfc5bd3727bbf3f6 Author: Jiahao LI AuthorDate: 2022-09-08 15:50:37 +0000 Commit: Mitchell Horne CommitDate: 2022-09-16 17:41:54 +0000 if_dwc: fix reinitialization with changed MAC It was observed that on RockPro64 hardware, the dwc interface is unable to receive packets after being assigned a new MAC address. The fix is simply to call mii_mediachg() before touching any device registers in dwc_init_locked(). This is consistent with what the OpenBSD driver does. PR: 263820 MFC after: 1 week (cherry picked from commit 6501fcdc0a97faa3c59f6ece314bf7754303db6f) sys/dev/dwc/if_dwc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=