Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp824119lqs; Tue, 5 Mar 2024 19:15:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlL6XWnjVBzeiuGRMieQnoWrZgncSPZlOZrHHShOfyCL72sFBi1oHnDUnnqbAk5918BLXei+ZTDkHqq7A91NVLEMxdwjaVzfwnCII2+Q== X-Google-Smtp-Source: AGHT+IE/5misrLrI32ECdGqklSYbukVDNuOicBkxAOnnPOOcUVCV51eVhb7icI9PIJQ2OhucDdyL X-Received: by 2002:a05:6402:1a25:b0:567:6ae0:7bbe with SMTP id be5-20020a0564021a2500b005676ae07bbemr3861031edb.24.1709694908864; Tue, 05 Mar 2024 19:15:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709694908; cv=pass; d=google.com; s=arc-20160816; b=U/SrhagYfyo4A5GPOSOxhu0s2lxMJ+lwuRX9q0KoGnuLBY22uewmmIkTz6r7DoE2e8 fpijNQfljH0PSjgnAPzMXnwrlPe6iCZzSSVBlItd1LdjL0s/D7Sd05puMMsFKUeMvB+R TVw1gwiYCjhqzBQksO6amfOZym+zUo9L8XL94Wlhby3aPx6HpxaMrYM6JK3iHPfdzq3Y XTjuSDQQnsCudbnoEBJ1o4/WU8zL/4fC3E7hUNsT0JABWTG8/NGKU1rBIr73cZxSema+ IAVRLxrX8mULDawKiKEwU08i4lrafuvl6lDJPwPG//M3agnnAykvwi+iPAsFXLMo9iEi V6Tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=jGhvJRNK9Tlz8ywGr8w993PcXr5quDu53R8P6DihcgQ=; fh=TioZl9opzthmjN7B3LZRxo3MQZ3aQiFvlRaOF1bvngc=; b=XPOI8b9LfiojO8g8m3dj1KzDQ+UVsz6NU/aufMI41X6040PHG877eINtvGp8BIIH9y AAD/S95zRXIoHQq8rMTum3Ohxala9r3bBw1QeZlUztequtZ7c9cci2I/6qmG1YscupCw gCMJXafA9CmpQZxIjPhm5cx6lSDVPDq9yWxwE2ip4vnReO7iILdzpzqcA9jgRfHOFPqX 44pWgORZag/lZNkYu2AKl8rOBp7EAN3J8xilEx+c8CQgD9xx8NrHQ5kloTxK/7hDnCd0 n3AH35ppXnAYP8hLSUfDd/fb/7MHEmHtLZ37NjYyUblT3bonN9ZRywM5d/d1H3yqdNzX ZQTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HaoY3I0S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-93279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93279-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f21-20020a0564021e9500b005642ea075aesi5823797edf.314.2024.03.05.19.15.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 19:15:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HaoY3I0S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-93279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93279-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 8301B1F251E1 for ; Wed, 6 Mar 2024 03:15:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D0DF134B2; Wed, 6 Mar 2024 03:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HaoY3I0S" 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 74038DDA8; Wed, 6 Mar 2024 03:14:59 +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=1709694899; cv=none; b=GTdCdQ78im61o1qT5KtcY/A3OKI2vaUEYEj6Niw4IZP2bhkiAA6MACTsa3HBVxRd3UTYc6vVFjjQvzrr5Cc2PYZpvxARQh7MthjWhNTXGpUSfrL1amqAMaW5KHaM7G2Q5PspP6kAHdr3hTaEJddjOE+rBexqvogQohK1zd1u8KQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709694899; c=relaxed/simple; bh=ADX2aLUl83Ht7eqwNw1wCGw/JUzgdAjweDaoeaKB7Mc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=T6KjvLSCealSrrewMZkbFORl7JfX2oCH/e5QsacHKLJnaV9ayQYrixX/eKHK+CTqb44tM0+m9hgah01MZv8QX0RF/7A1gxbdGOZa33P82wRWqhHbTYQOFKUImOE7ssi7rBBOBbKagzoGyy/pUp54d4BWid0y+7nYX6myVvPYaDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HaoY3I0S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8626AC433C7; Wed, 6 Mar 2024 03:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709694899; bh=ADX2aLUl83Ht7eqwNw1wCGw/JUzgdAjweDaoeaKB7Mc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HaoY3I0S1NwcF2DBr3I9Cxc1FOlamxDp+JDDN8xxcm2o/mDu3zGWJinEZpq/kYoSu x5uXks4LYHCZBbNvMnvTBXpvdPAW5dLYSdQBEhsJ5Fsv7HB3yLOI0zrVS7JqqqKRjM ZXsoAEEPumhDKeMBs9i4vF0Cc3+yBcKYbaDea5kFLAAvK6D35rpzzQruUce1cKe47c DgMeNdh7CA/70d2o2ic7Ql5d9Q5rnfv20qyuGXY4RC3iGuKBwBj19FzwBh7pVl3Jpn ZcL+kl63zKt+3PinT/A9PCulnEqB9xXjnrLopTxUVT7xB0OeJxCAtN4twaoGGHuCwY 4cyeFCzYLo/+A== Date: Tue, 5 Mar 2024 19:14:57 -0800 From: Jakub Kicinski To: Oleksij Rempel , Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Florian Fainelli , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net v2 1/1] net: dsa: microchip: make sure drive strength configuration is not lost by soft reset Message-ID: <20240305191457.37419bd4@kernel.org> In-Reply-To: <20240305064802.2478971-1-o.rempel@pengutronix.de> References: <20240305064802.2478971-1-o.rempel@pengutronix.de> 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-Transfer-Encoding: 7bit On Tue, 5 Mar 2024 07:48:02 +0100 Oleksij Rempel wrote: > This driver has two separate reset sequence in different places: > - gpio/HW reset on start of ksz_switch_register() > - SW reset on start of ksz_setup() > > The second one will overwrite drive strength configuration made in the > ksz_switch_register(). > > To fix it, move ksz_parse_drive_strength() from ksz_switch_register() to > ksz_setup(). > > Fixes: d67d7247f641 ("net: dsa: microchip: Add drive strength configuration") > Signed-off-by: Oleksij Rempel Hm, this is much larger than I anticipated, and also doesn't apply, so there will be conflict with -next. Andrew, should we go back to the v1?