From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796122879; b=hJGbUntPvqE2mtLxnp9ubGXe5C7Rri/OwmxxvgoyZTLRkkFwcJqWNmIWbfl5XjpkYIK2 8eEO+kkxk1229yhr1igJ4LTNOa6wOdmI8hyjRuhxKuNVEeIN5zMZFdcheR7AqGY/12Qz8 Z0csbyDAWbNlFmaaH4VhUiKtVRKZ2gkjBCsu14m+dPhnNyD8gIhg3PACw0K4epxd7mJx8 qRVKlAG+KEPtNh4wg3aEv37q+n40glZp9Is9v71WuMXbzxmhyXtGBVL281tJl3/h0xNQq eUBr+txZnFfx/Oqt+vf64JobL/wFQ9tnVcxpL1VMh/ora6i1FDlrm0uKBShiB0IJj8A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796122879; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=sM1FHwKHRlxktqTLSGFiTkJph0C4dtvl3X5p7U/9O5w=; b=Z7adzAHOVO7+KSLq1Nnl64QtyvnUevx1UIA3b/qbLGsygDeyW2l5OXNDzeTKz4O1YqdS zYaOQ9cC1ePVxy4I2TR2oIg1M6px/sT9jaS6woze7IvfpUyXk71AYz7nF4R2dCvmDMKKL 4eqllOO9z2XwhtzVawxF26GgHV+g6WnJsM6+90eZVfVQCYon1Z26QcFVOxKfZczA05qfs Vf3gbqhlMBu3bbEhaWeUckcaIfniZ3hPB3gBZ/Lfq6TPjhKDtYTisV9uF2lZrgYiFF0Zv uNM5pAPd+9ZaBXIDHnrBi68GZ+B3rMFJnbShKhuC8538dBj7o9kTdX4lvkbBBCxE6TA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aZoZ9KAZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C19A1606A31A; Tue, 1 Dec 2026 11:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aZoZ9KAZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4296A1F000C1; Tue, 1 Dec 2026 11:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796122879; bh=sM1FHwKHRlxktqTLSGFiTkJph0C4dtvl3X5p7U/9O5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=aZoZ9KAZ6N2m6hBPblYMzkgo8Xap7SN3i/mdLn2psRx3vb4b/CLOILqA5gX7HRpy7 Eq42ngFFweABKlBvALn5x/0tZdKide3gh1AHur233rWVH5qNtYxU0U3rQ88gbITUw9 ckEnu1N/Q+yFWYq3Ee4wVJaYLbOT8u8odCpU4oHbc4+gV9S0LpA/AwEGaHkQiA/dXm ZVM8o/7Snqhgb785BIrjG3w2589ewshuYwPLqFqfi4z0O6/vKNvKjG2zvAajLkh0l0 BKsNS/kMsRXsN4e49PijZYy3+SScbav6mhYtl5ZGJ14LxyxfadEOfuUKG3vrdUaaZx Jw983WV0mYT5A== Date: Tue, 1 Dec 2026 11:01:14 +0000 From: Simon Horman To: Florian Fainelli Cc: netdev@vger.kernel.org, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Jijie Shao , Runyu Xiao , David Yang , Herbert Valerio Riedel , Danny Kukawka , Mugunthan V N , Sebastian Hesselbarth , open list , Manuel Lauss Subject: Re: [PATCH net v4 06/10] net: au1000: restore receive filtering before enabling RX Message-ID: <20261201110114.GT804035@horms.kernel.org> References: <20261121004809.1690280-1-f.fainelli@gmail.com> <20261121004809.1690280-7-f.fainelli@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261121004809.1690280-7-f.fainelli@gmail.com> On Fri, Nov 20, 2026 at 04:48:05PM -0800, Florian Fainelli wrote: > MAC initialization overwrites the receive mode, dropping promiscuous and > multicast settings after a watchdog reset without notifying the network > stack. Restore the requested filtering before the control write that > enables RX, avoiding a window with the wrong filter. > > Factor receive-mode programming into a helper shared by initialization > and the receive-mode callback. Hold the address-list lock before the > device lock through initialization so the filter snapshot stays current. > Protect callback control-register updates with the device lock as well. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Florian Fainelli Reviewed-by: Simon Horman