Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1923653lqz; Tue, 2 Apr 2024 01:37:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWsg83pwuwLJkO9xd3KugbJkNbgf3Mc6H20Iy+KxlTCkCdkcfXXns7dPHbrv2joGXabj5jhzlKaH/rozKZDQPA1wc19vk/V+T19YocLQ== X-Google-Smtp-Source: AGHT+IH9Hvynh7B7SuGIa1Zo2JaC/TT/c7PdCLnQ5Jq6SUPPWnhu1AEfoujR686Pih9khf7C25ry X-Received: by 2002:a05:6402:3509:b0:56c:d21:d913 with SMTP id b9-20020a056402350900b0056c0d21d913mr9300766edd.0.1712047035141; Tue, 02 Apr 2024 01:37:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712047035; cv=pass; d=google.com; s=arc-20160816; b=ucCLoJIXYi81M5dSUJM0AT0TL8x+8GsD4AGTyZ021Ci7lx+8zyeb3p3PcQSXZGFhTj n9MOFICKkGDphx7nveRfyAM946+OSPH0xmZNHdUAmG7NwsvHw1LY16v/LdHqvu3c27Ou PT0Co5hy/beHkzbKrM562cKsGYRFZlp4xUWHBhxzo0e5kz2xTLKByAjo45qrJL0zIhiW 7sxiRR78z3F75X/uUXD7akzmi9YyPBmoX2SswsFr3idUufdTmecW3Y0AvN9lvVp06UHz QiyBcOa7Vq12i6oiIVZ6KhEMKTz3DOgUqJE6XkTCAUhO4N0yjpkQHMaFQ0uOKjIhTwC0 d4fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Sq4fC/DzJMszvMi8YaTdY9tMkiLj0MRf3Cwj9pWNQQQ=; fh=ICfhCLr6ubtXd5/Mt9TEdcZuMikhwwMeFQzLuHnx69g=; b=xdtwiRtW7psoVaVHTBUNDBTPB2ltYxKC9J11orNmFZcVBrudTwETADJmNaKOivIamf kvnRq3aKLhfflD166QH35zajB7PnGmjzmY36NMwMweZE5OOMmV3AXL/lD2AR4l/Bjffd cfLtXRy77nmpmSVAx6VILn026NlvtGeSMZZwWMpcFMvTI3u32NVjrMmhHGkBTKsnF0+6 xH0/+2DbJw8we1KnaWXWjW3A5NlLNBtpegra/a6aeyXAzLXO8x23gDsocUxlUSBYm9Af TLo1vtNQEb13W8xu71qXgv03LVaoXpRWNU2rkQoGl6o7HqBp13YXvCN+UUi02XznJB72 hv/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uJz3ajES; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a21-20020a05640213d500b0056c2aae214csi5569462edx.193.2024.04.02.01.37.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 01:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uJz3ajES; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D73421F215BF for ; Tue, 2 Apr 2024 08:37:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 970F657888; Tue, 2 Apr 2024 08:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uJz3ajES" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AB3E93E479; Tue, 2 Apr 2024 08:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712046991; cv=none; b=IVlcZZYK39gEznzCud9uQsGd4hGQ1ukNre/vtgNZHm2KDrDhTiskpwGCu6jJdkJ8BL4yxhewpN0S6JlByDsa5odKKAngyEsHYdr0bm4hGrLztgkR0dwbn2j8EEs1/13Tni6ilnFPGE/1AnLrqApknVp1MgqmHp/0j92cFESkfTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712046991; c=relaxed/simple; bh=Tgjd0CDwYwOTXcNopkSwsdl4O9xxv3uVMD5zmI8KlHM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VxX4xBxpf4cfc961MvvjCpeMiol2I2bZOlcIbrxcyOLS1qMiFj81WfD9RGeCIhCbX+qsHu/Jh/8jdprhY9qyY/Jm/B7AKb5t2WKMqeNqFuz7pBtY4M/9vBcAxqZeL4OLvRelBD/yHye8xgFO4ysOoJBMRFFFKNdzXdpLGmYibdI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uJz3ajES; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67BCEC433C7; Tue, 2 Apr 2024 08:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712046990; bh=Tgjd0CDwYwOTXcNopkSwsdl4O9xxv3uVMD5zmI8KlHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uJz3ajESb40xBrf+1zV6Sn4eiV/xZGz/G0W0aOjo4/7hyNzePO/10G/U2oCX2SQvw PkOlI7CXfsHEZko1vOGid16innOTsdNIxFOD7Ua+lauJ/wumnyMTPjIAJQylOogbHb eqtpmdLNUaoJeLBJQIvYuj+ZL7xj6veAL99zTsXQm0Y3BHJ9yocjSrqlsD+dhNsUXm L1yJ2gKMWabQD5OiGL/OV9Ny818LP1ylcIzSH7zYcHChV+4EID8lhnAobTZ3fGOy4h 5ttOCdSs2FVlfIQTB0mB5/edC+iXwXBaW6KwsR7gFJn08+aNxwADYdNSkFiRQba/H8 AvLIcyLBQcYMQ== Date: Tue, 2 Apr 2024 09:36:26 +0100 From: Simon Horman To: Jose Ignacio Tornos Martinez Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dave Stevenson Subject: Re: [PATCH net v3] net: usb: ax88179_178a: avoid the interface always configured as random address Message-ID: <20240402083626.GN26556@kernel.org> References: <20240401082004.7412-1-jtornosm@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240401082004.7412-1-jtornosm@redhat.com> On Mon, Apr 01, 2024 at 10:19:50AM +0200, Jose Ignacio Tornos Martinez wrote: > After the commit d2689b6a86b9 ("net: usb: ax88179_178a: avoid two > consecutive device resets"), reset is not executed from bind operation and > mac address is not read from the device registers or the devicetree at that > moment. Since the check to configure if the assigned mac address is random > or not for the interface, happens after the bind operation from > usbnet_probe, the interface keeps configured as random address, although the > address is correctly read and set during open operation (the only reset > now). > > In order to keep only one reset for the device and to avoid the interface > always configured as random address, after reset, configure correctly the > suitable field from the driver, if the mac address is read successfully from > the device registers or the devicetree. > > cc: stable@vger.kernel.org # 6.6+ > Fixes: d2689b6a86b9 ("net: usb: ax88179_178a: avoid two consecutive device resets") > Reported-by: Dave Stevenson > Signed-off-by: Jose Ignacio Tornos Martinez > --- > v3: > - Send the patch separately to net. > v2: > - Split the fix and the improvement in two patches as Simon Horman > suggests. > v1: https://lore.kernel.org/netdev/20240325173155.671807-1-jtornosm@redhat.com/ Thanks for the updates. Reviewed-by: Simon Horman