From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8645B2E8B84 for ; Fri, 21 Nov 2025 20:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763758553; cv=none; b=RxPQAPX+zd9NvWgg4Fn8DfBWJnsybzwV7qTxqvERzb6DF2AEMKxi58lhT3d72hXAY0Q6fUuz3fJ39VKUIbE0MHKN6IxqQVCqHtGuE1jR5941RBnOJAr2U4Zra2ayno8a00UmG9KehwjetM91x0fIFvyWJRmgX/87Xh5hQG9D/O8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763758553; c=relaxed/simple; bh=lYUK59Z9lErXRf5Bg+aGnzF3C82gccjJNbgCi2t10u4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=moBJ7GCAKm17XApsWTYk6g4+3VgE94zsH2Nx1EBRcIqn1PQiQY1QRhifFvJCTZ3I70BuLDwzqjcq3+MujOBHosQOjCgcW+3PKv8P3xHACWbWfIgIcEPgH4u0Y4bKM8/tnkFPb+ghHYL6a8AB+Y4KJMCvm9TBnpBVS7MUvgZMqWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h42BLlMM; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h42BLlMM" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-42b2de74838so206146f8f.2 for ; Fri, 21 Nov 2025 12:55:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763758550; x=1764363350; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SWLVJDOcbRGYcqao1ONr0boRiS6rHHZNiYodJCrm44Y=; b=h42BLlMMyKXqPMLsi4gNQ2+Ng3XSpkwmx0dC8ZAE2SnutTlyVFr9pY8+RilB9q+2d/ HLxqtROSm0f1pebN7bNkNt6mHaYLXCkVEgAa9sL3UurrK4mIXrxbMsOxwEXrafDO9egE 6suiAh9LszwJLTOOQayGxo49dWcQeGWLESyEXmTbhKRCVHW6w16KErywrUhFEY4o+EVs hKo+A+L87Fk5NmIC++Z7ox6IJ21nO/uSZQhYDw2ZEmWAtfWYr0grW/N+cP9ZmirQcPCf FeCJzutmNv/w9cdXxaoSDLwnRMCfQ2g6A4+lXPY3D+kf8LQEGaPk2MrsG1UAQDm0R4s3 +nVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763758550; x=1764363350; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SWLVJDOcbRGYcqao1ONr0boRiS6rHHZNiYodJCrm44Y=; b=HId2gTIvs3RFIE/EOgepxDFjwZ3WYF2WUqtc1dUzHkoKp53MzoKSUtlQeMrhjYKgXP 42Ca64P+ZCiZuYavOP31JIshFrcjFfQtE89DyeCTZjv10K2XZfR6DarGXkZTCkzEMFAf DDOmC923SvAIXeCh0c9VIqwG78M+fGSlEJQ9VHwL05scTrZtISiy10HvbOqC6uas9PdK NpwulJIjkVYzAovBnflAf1PDf+Mq6fRzeQX5ylG5/EMaLQvrW2O3rnyNvjoAtc0vijat tmxL3rIX7Co/PvAgEjNk8OAo/6qTIvUPyQLiv2QgRwVm/0azhepYd5UWw55wOMC2K56t 1q4Q== X-Forwarded-Encrypted: i=1; AJvYcCVYuq7v5KrTTLUF+aFP4+UK6iNgHR3gFmpshrX2oWgvEEDplsUg0lpnkpgM3oMtC3v/uiqvXDtViAcrwsQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzZVVeoDMG10Qs1tmahPgjuOMPp0G8aZuRj/ydToECV41Iwim7H vRmHHbqEP0ZTL+b7wUUU74sLBXtMyuacUJ3ht4z1/HtgkEii6I7TjwzJ X-Gm-Gg: ASbGnct83rQfmO+dwXiWqej0g3Q2n9h4+noqnaLB14VrOZ2n5GHswM39ilsVCptOYQb 5dRUU3yaokMXMJfRxEBDXZBlyFzF4oYam38/WtlKrV8w6SibzMlQIsqLfBp7J4M5tJrB2j22Bk3 ncaCiBuUV1GIUVkEW8OVuMLk5dmlQeQPdA+c2mahj9ORMeSME7m2uRX95j4rIPXJvQ7t2LFSdUQ Psr/aRAajmquHc/1xl/0y0F1sxf5CU71WZ0tINLGldKt8t/oX5He0TOHXkqMj2X84wVeoLsoqdJ z8J4wMNXzwMmuD1TFJ1c2091EgV9up/KJzJvlHqzsAho7IegrdRRUKX/kAYxvd25IwRXo4TEwGk HfA0YXxzCLypGvG81hUR0Nd8xceuQAZ07Mh1GN69rm8iA2PW9MM/3+S0lQpl1vr7nyJYAILTiU1 5gzg8= X-Google-Smtp-Source: AGHT+IEpBti2Vot/ywXlhz/7XNq56k24q9qvbPMpnhnia8lGLDa9AtxVQGq2oXuumoaffzRpt9mvgQ== X-Received: by 2002:a05:6000:1ac9:b0:429:c851:69bb with SMTP id ffacd0b85a97d-42cc3f99224mr1830789f8f.5.1763758549737; Fri, 21 Nov 2025 12:55:49 -0800 (PST) Received: from skbuf ([2a02:2f04:d106:d600:b19f:2efa:e88a:a382]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7f2e556sm12847859f8f.5.2025.11.21.12.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Nov 2025 12:55:48 -0800 (PST) Date: Fri, 21 Nov 2025 22:55:46 +0200 From: Vladimir Oltean To: Prabhakar Cc: =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Simon Horman , Philipp Zabel , Russell King , Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Fabrizio Castro , Lad Prabhakar Subject: Re: [PATCH net-next 08/11] net: dsa: rzn1-a5psw: Make DSA tag protocol configurable via OF data Message-ID: <20251121205546.6bqpo2bn5sp3uxxu@skbuf> References: <20251121113553.2955854-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20251121113553.2955854-9-prabhakar.mahadev-lad.rj@bp.renesas.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: <20251121113553.2955854-9-prabhakar.mahadev-lad.rj@bp.renesas.com> On Fri, Nov 21, 2025 at 11:35:34AM +0000, Prabhakar wrote: > From: Lad Prabhakar > > Update the RZN1 A5PSW driver to obtain the DSA tag protocol from > device-specific data instead of using a hard-coded value. Add a new > `tag_proto` field to `struct a5psw_of_data` and use it in > `a5psw_get_tag_protocol()` to return the appropriate protocol for > each SoC. > > This allows future SoCs such as RZ/T2H and RZ/N2H, which use the > DSA_TAG_PROTO_RZT2H_ETHSW tag format, to share the same driver > infrastructure without code duplication. Again the twitching when reading the commit title. I thought this has something to do with the "dsa-tag-protocol" property from Documentation/devicetree/bindings/net/dsa/dsa-port.yaml. The tagger *is* runtime-configurable if you implement the ds->ops->change_tag_protocol() API, and it's also possible to trigger that API function from OF properties. But this is not what the patch does, so it is confusing. I think it would be more natural to say "choose tagging protocol based on compatible string". > Signed-off-by: Lad Prabhakar > --- Anyway I'm not reviewing this commit until the reason why you added a new name for this tagger becomes completely clear.