Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3792896rwp; Sat, 15 Jul 2023 09:26:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBJFiZXs7gFbryaQznPP0jFxy61Mmz0TbK14gugXBfMDNgG7Y4wH4EtuGY0LTSo1o3pSVz X-Received: by 2002:a05:6a21:7892:b0:11a:dbb3:703b with SMTP id bf18-20020a056a21789200b0011adbb3703bmr3112221pzc.6.1689438372308; Sat, 15 Jul 2023 09:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689438372; cv=none; d=google.com; s=arc-20160816; b=PZpYirRpQadDwdbQYb6F6zpitQwFolkq7wbzjpPU+zrAMlpbbWcjs134xf1udPXMkx r5t01cC5Xhq7TzMG60rZoTuwYf/gjn41Rd8ISV3lGrTGYTENVi+T+HS+755KYQ7TZDIz K+9XBiJRUJF/FBrwFyIBmN5TWw6+2DWdZ9wDh4rNO0ng3DglZqHPVPFl8C4UL6aLGS2j cDzLS+ZDbclqo0QHXzlrHrWKmxGe3Oxa0AM4JO8hXUgKaUkT+LkwLWqXnI3z8daZH3nI K14gX9KrrDmr1KdhvY+X1qFet2uNIFUlah11jVDlxLLoNrzeKD7plGnnS5Xdr8CCC0W9 iJ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dF7OtGXMRje1f7jke9Bs430OqzMpDW752u+Jth/n5k0=; fh=294NH/SVesgGdLihI5ni5t8vHiPPc/sn5Q62cpI2O4E=; b=lmwAkJRewsdd+1wTkwO/+R9bAz3VjY8JqeZP0yqn66/pCsMTwySzvBni0SPsoxa1Z0 5GvThGA4+ur/rnmmlXbdLdt0gqZWlQReysGVBEafsi+o+6frDFyCJqN2MqpQ6yBr/QCn 8ddMRGhNhDOGTL1BffAV//dPhyAvjInvRcpW/CEJ9ZDubrEuTT/5KEtNu9dR+YAsADtu lO8XatSUQAEMukS4zQB9qzfc67PpxRVwLgdlkFH7Z1IuAM8HTAj5gkKtK1eSo/TVCqlq M8F6g/jCj1Fdv4NVMhK47zLyp5IWFVN5FLiG3Ow0xj/aDJxK+15IluEPsHMjDMCDTWNZ gN7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ff2hFNfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w67-20020a636246000000b0053fb7d14255si8849821pgb.0.2023.07.15.09.25.59; Sat, 15 Jul 2023 09:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ff2hFNfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbjGOQNK (ORCPT + 99 others); Sat, 15 Jul 2023 12:13:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjGOQNJ (ORCPT ); Sat, 15 Jul 2023 12:13:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C0B10E9 for ; Sat, 15 Jul 2023 09:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689437537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dF7OtGXMRje1f7jke9Bs430OqzMpDW752u+Jth/n5k0=; b=Ff2hFNfBeB9d3mdbB1FwC/CZ/bceqnlLGmuiTOjZIbG37ZvjxYzTI4gsxTo+Ib9F8yilyx w0BUWtsKmbyMO1IFiKp117jc7QySbmubpTy0PT25bE/T2LL5Dzb/dhk8Lv9Y98ybTd/hmB 8z7UnIPBfOn3+OnFsXmHCijmdXuM5fM= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-495-knj39gZ2Ok-A6Racr_0rUA-1; Sat, 15 Jul 2023 12:12:15 -0400 X-MC-Unique: knj39gZ2Ok-A6Racr_0rUA-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3fbdde92299so15532875e9.3 for ; Sat, 15 Jul 2023 09:12:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689437534; x=1692029534; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dF7OtGXMRje1f7jke9Bs430OqzMpDW752u+Jth/n5k0=; b=iXNRIs6u/jd9yA5d7b2kHmcxQTVQp68ebt3s25C5iNo/hVyxkMuU5CQgoCxnuSBpMQ ijO0vHY5mmxVq4bertyIbsIYRFJ7a7pE3FsSm8IoNg+HKJTZFnVrSdm6zUu978B0FeXX xTZvOpAnzMsv3pgTUySNoCa8CX3R8A+ZxURt0MUDHH2CTDDu2yql6KygWtfVWoilsSvB UWmsvneIEcoIsGrkkCRcgAEJfQxCQqhr4A9su0ASNyV9RLl6DawMFLLcdcuFktnUIbtc xY8fEATPdfhC9MglmXK2+utk9siVPtiLGizNG5Zb6Z2cxhHKtVuiojud3unpJw9eQNWe PaWw== X-Gm-Message-State: ABy/qLbXapnJBYsZid/B26zToZEWMiUdy91sXT+uGpRsKikZoeAViMSk dYNqsSJzMSrXx07QBhIARIQjA30G9LHT5QqiUoOF2sm/j1+oJquPjRXUOM6qLriHNZMsASpxQlN T0qorRDOQ3PHXgEnPG902joOz X-Received: by 2002:a7b:cd96:0:b0:3fc:10:b25b with SMTP id y22-20020a7bcd96000000b003fc0010b25bmr6623437wmj.21.1689437534442; Sat, 15 Jul 2023 09:12:14 -0700 (PDT) X-Received: by 2002:a7b:cd96:0:b0:3fc:10:b25b with SMTP id y22-20020a7bcd96000000b003fc0010b25bmr6623408wmj.21.1689437534192; Sat, 15 Jul 2023 09:12:14 -0700 (PDT) Received: from localhost (net-130-25-106-149.cust.vodafonedsl.it. [130.25.106.149]) by smtp.gmail.com with ESMTPSA id y17-20020a1c4b11000000b003fb739d27aesm3922717wma.35.2023.07.15.09.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 09:12:13 -0700 (PDT) Date: Sat, 15 Jul 2023 18:12:11 +0200 From: Lorenzo Bianconi To: "Russell King (Oracle)" Cc: Daniel Golle , netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , =?iso-8859-1?Q?Bj=F8rn?= Mork , Florian Fainelli , Greg Ungerer Subject: Re: [PATCH v2 net-next 3/9] net: ethernet: mtk_eth_soc: add MTK_NETSYS_V1 capability bit Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yB+7pERcjQZkUudn" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yB+7pERcjQZkUudn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Thu, Jul 13, 2023 at 03:18:23AM +0100, Daniel Golle wrote: > > From: Lorenzo Bianconi > >=20 > > Introduce MTK_NETSYS_V1 bit in the device capabilities for > > MT7621/MT7622/MT7623/MT7628/MT7629 SoCs. > > Use !MTK_NETSYS_V1 instead of MTK_NETSYS_V2 in the driver codebase. > > This is a preliminary patch to introduce support for MT7988 SoC. >=20 > Rather than using capability bits for versions, would it make more > sense to use an integer for this, so you can do: >=20 > if (eth->soc->netsys_version >=3D 2) { > version 2 and later stuff > } else { > previous version stuff > } >=20 > ? >=20 > I'm just thinking ahead to when we end up with stuff that v1 and v2 > need but v3 and later don't. ack, I will fix it. Regards, Lorenzo >=20 > --=20 > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! >=20 --yB+7pERcjQZkUudn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZLLFWwAKCRA6cBh0uS2t rBvlAQDy03bEQ4loaAkQrbJsOLuS7fpBgSkRYBHq+v1STiH+dwEAhaatBwH6Dv5n 6nKwAO3GR06rfY1eFCm7uJkttIs/XwM= =TLpK -----END PGP SIGNATURE----- --yB+7pERcjQZkUudn--