Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp918527rdb; Fri, 9 Feb 2024 05:20:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqymcgEvqPnA8GaPL8OXSiCWq+7A3MbSklRvHf+fP9UnjqfmlD4pw0cdu07uiXkoUmGB8xfjASG49M6fiz9Fs1Uw23duhJYjI6XPo8tA== X-Google-Smtp-Source: AGHT+IE7Jm6Z7lcw4nuQ/6W2DOskct7RTcCpq4RSpxdVGr5dpRjr0S6+DybS0McGRnGZE+2dhAud X-Received: by 2002:a17:906:d287:b0:a38:567a:6576 with SMTP id ay7-20020a170906d28700b00a38567a6576mr1211479ejb.44.1707484805799; Fri, 09 Feb 2024 05:20:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707484805; cv=pass; d=google.com; s=arc-20160816; b=ZF+/BcyJ7ZsGTmtyuhOOq+TqNYjrb34q8QP4zOo+HfrxfyL7S8MzW4FBYP9E2nYfAT m4tA1l9+r2p2YXiuKLYFSFe6sOs46iuWmeGGIdId/JHySYFD3gkcp29DTYFru5pZ1s7X KRMjvh9zbgDbyvuc9vqBnfGLTRyJhr31H873kCqEhkBcS3G2tNN7NKu321s9qd6w6FbU 6ofW0bS6/AiJ4oJZoYu/uPLNkDbQe0SvmUe7B5ujN3O2wIn5UMqPF4p7pxZAiEyjit1o kcUNkke7QURhgXD8jgku4cF93CL0WRavOycdVqvRTx+Zq4eMxO8KPxsVle00UB9FtCMH 47Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=F4LZ8gfETFzZf1TBA891lOohxfg7EKDpdAxY49mJJsU=; fh=TG5VokspF4gXoubxGuf+jkDFZN2UPhXnIiIvEp1oiPU=; b=efChFkHUzDwvtFruv/3S6CSRhTETx7tYkrLmb6cmusyBKmxdsABXFRD54c7yIiFVGa cB6n/G5PBaCkU1OqED8Y2JvOlNdsXWJI3JUerL/6J4Y2DsZLuD9X6hyJOQL1iOsjtLar IYqFeozAfSRnBk0mWAKVZ4eEUg7swnWngFb8b9DrE0+/WGuTIvXUSwcr2FJwVz5mFMGt sbgSkGs3Hum5U3Z0VzbywOZrWc5YrXYDhlI+7rHE4Y234HesUfuAB0HY9i0pfDM5ijXV 0iqrGhFAgTX0tBp4jbvJY5m6JM0OHzLjav06LwQkGkqRbTuU7qs4Cjy91LlLFGhi0uIA YPig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xY5/bG73"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVWEI4MBNc1SAQHHaRQwjYLL7bWeqlt0HDG8ykJ1Y3gF7srRmw5RZlbhX3+gFNeCp2gRIyOshoGyxM2nBgGKPdh2ANkyFTfNPS4AaScnQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w3-20020a1709064a0300b00a3828438db4si859224eju.614.2024.02.09.05.20.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 05:20:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59350-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=@linaro.org header.s=google header.b="xY5/bG73"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 885601F2225F for ; Fri, 9 Feb 2024 13:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9D19381DA; Fri, 9 Feb 2024 13:19:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xY5/bG73" Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (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 686682E630 for ; Fri, 9 Feb 2024 13:19:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707484794; cv=none; b=oYtmoCCU11WRvP2Fbz0Dh2tsVeo6I9t6RcqfpdDw4AnRSj3q18BJJ+/w87gAqoaxDnND2R1Q7EisZMwBM1dl3TOiRwXMXdZHzKnNMoj9PYRtmRTKQyJfGstUdEx5KVPNVK/G+OLefPNrLczRhic+qQaaNjD03jnDhTEbUoCb4WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707484794; c=relaxed/simple; bh=F4LZ8gfETFzZf1TBA891lOohxfg7EKDpdAxY49mJJsU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=COTI6T8fcBMumzEvsMtfubG2AznpoD2z092HLhb41v1i4V1oETXiKAnsHo9YFqENfCWD/AIBnVohVLv3YQRguah/fwrtuR5kfID/GbLoGC48iB7mQF2JmI/T+f6Oyg4lV5l8STlEHdVVDTGIVzowDKP1oN6WdW3gdZ3WYBuYExU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xY5/bG73; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-60491cb9571so10263257b3.0 for ; Fri, 09 Feb 2024 05:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707484792; x=1708089592; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F4LZ8gfETFzZf1TBA891lOohxfg7EKDpdAxY49mJJsU=; b=xY5/bG73SgDoG+PY1vYw5JgAk9YRD52PjXbV2EF3DuBGUTFV+sJq6XFg+F7kre2EyM FqcQhFxrOkCdewhOOZt7HXB5kT683ioqbaZpDB/h/IAw0SYuI1yLelH7s6D8frYvzMNi snpyhBXA+I5UuQRxQm7MEjERyjVVcLrfVM2dGP7LbxCe3yTfilwfXV2IpoZV8D2yB8wp SDsztD6K42hOETD/MQmf7CI1LIaWa11mLJVsoBrcwKfPjOmQkHMTpsedLOEnw0dPCTcG ppo80svcJbxH16hE00iHgx4VZTYqcmpu9r0sXj/VNl0ArQlN5kAINDm5Cg8mM7O+sfpp FEMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707484792; x=1708089592; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F4LZ8gfETFzZf1TBA891lOohxfg7EKDpdAxY49mJJsU=; b=TlSB1W+T4C+nT24vSGM33eC84qca1sgjJMt1r7Jr/NT/CBEjjgDb8Dvw3dsKoQDm2E WNGLTB2HzpDcBIDEGcqC7Fq+HU3biktXRZBcWpfllze3ZG7UxAEcTWeCOzJ1yFc06Mkf DwzRcRZjoHlWNo0Ce5WVcaz7cmYtPKGC1CUFTUtXYUHc6mtkjJDiF3Vrs//Hzl8xhDIT D0CvioM6R8HIxKzPBzyzXwZ7c5SLkxOLBkJUK2ZFo1B2j/3e0yY7fRphaF46wuXBPnGa icWu+gjMWFzHsDHndvMHpRiGReqyPJqNvxd1nhZJkJV2fyRPxeP1qsVK+zvw+iBq07w9 KYXg== X-Forwarded-Encrypted: i=1; AJvYcCV/NCDdnAUH5fnSwCAT8/cV0/iOYOyEJaNrzqKSNMWMFoxIg3oZfpNj504rLa7eNEzfK4HnbutghyZdBERJBhIhJvYEfi2rS4KQ5F8B X-Gm-Message-State: AOJu0YzNvtt9S27dFL/nTrODyvWKVx90HMCdiIXzJJD7z706j7Epz01o RvhwvYQl3K2D/uLcEE5FXhJsF/9CKnkERSrDHCT0DSSUpNwLIchOGysocSjYsKrXAzQR8eQMOgP PAdUby3XDelZUo2a8K4Fp7xc7ZGZ4ZACnjNCr/A== X-Received: by 2002:a05:690c:3405:b0:604:9cad:8c23 with SMTP id fn5-20020a05690c340500b006049cad8c23mr1269490ywb.11.1707484791659; Fri, 09 Feb 2024 05:19:51 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240209-realtek_reverse-v6-0-0662f8cbc7b5@gmail.com> <20240209-realtek_reverse-v6-4-0662f8cbc7b5@gmail.com> In-Reply-To: <20240209-realtek_reverse-v6-4-0662f8cbc7b5@gmail.com> From: Linus Walleij Date: Fri, 9 Feb 2024 14:19:40 +0100 Message-ID: Subject: Re: [PATCH net-next v6 04/11] net: dsa: realtek: keep variant reference in realtek_priv To: Luiz Angelo Daros de Luca Cc: =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Fainelli Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 9, 2024 at 6:04=E2=80=AFAM Luiz Angelo Daros de Luca wrote: > Instead of copying values from the variant, we can keep a reference in > realtek_priv. > > This is a preliminary change for sharing code betwen interfaces. It will > allow to move most of the probe into a common module while still allow > code specific to each interface to read variant fields. > > Signed-off-by: Luiz Angelo Daros de Luca > Reviewed-by: Vladimir Oltean > Reviewed-by: Florian Fainelli Reviewed-by: Linus Walleij Yours, Linus Walleij