Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3811838rwp; Sat, 15 Jul 2023 09:50:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlEskswTC4WCKqQ6Id/6DyE2lougLfyX+5IXksXrai6bkpmxq8CQ9GJrKyzElFFacncmZbdD X-Received: by 2002:a05:6a20:3c89:b0:132:ca6d:82f1 with SMTP id b9-20020a056a203c8900b00132ca6d82f1mr3294607pzj.2.1689439837914; Sat, 15 Jul 2023 09:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689439837; cv=none; d=google.com; s=arc-20160816; b=dI4W/vsBTVsJUJiw67b7rehTXJF+r2jMqgk49wjh/nnotMPWkjSUmq7Gzbc4UB2LNx psYx1uDEDKWLQx8tZl3cm+Hat9zozjcumOF0OZCeXhxkIZwMnFdVxnaeZOGMM8oWeQnN ufEGEYuwXOIhiFvKhcKcgyYP5qJlUMlC42dZnjkM6fYS4ftGCWJYx6q9sd9aFQ/BWCFv 801lk0CerrwJvSVBBD5QJPz942ChaCORqPYt99CIPMPsEVORKLZeSJB4iCDG5mePpUq9 wDnwriDzX8ZHUYWCXYpCl8GluixoGDtPxdYUVBNMuSu61YF9Y8bLD8/FBOUSBw0C40ok +M4w== 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=Js70kE6M4tQuHcgETIy8XYzF63AeuA3GvQidoiOZKq8=; fh=294NH/SVesgGdLihI5ni5t8vHiPPc/sn5Q62cpI2O4E=; b=shjlSIsPq9liIW2X4kYCXjjh2ODliUBzmTPQZocmzmyuM4SM9bxmVxZNZUIh1whp76 4NlNqb3W4CMydARwzsOxl0RhW06ugSo/COMwTaiPlLdDd1ahyHM+8XhABrQro+WWdyG1 GOnFSu9ZtkrWQYGVSJ19E9h50JCqCIm1fvnuXYO7IhdSBd/JBX4QOLVGH1SkUvDfQHwQ bGXO5BSzQnnJQ/LoLehALD1yCxc0vk3vXvp4t+u/lhLVzkp1DgvzRuH+2X9DrDLw2KFI wxfIzI/r2U88W/WOkksIAgZ792jlZXZaIXDvdBwKLevJ6dm7GHrHydjUzR+McLgKHL6l LGvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dYYFt6s4; 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 w71-20020a63824a000000b00553bda8042fsi8940054pgd.822.2023.07.15.09.50.25; Sat, 15 Jul 2023 09:50:37 -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=dYYFt6s4; 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 S229708AbjGOQMi (ORCPT + 99 others); Sat, 15 Jul 2023 12:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjGOQMh (ORCPT ); Sat, 15 Jul 2023 12:12:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99361E52 for ; Sat, 15 Jul 2023 09:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689437512; 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=Js70kE6M4tQuHcgETIy8XYzF63AeuA3GvQidoiOZKq8=; b=dYYFt6s4e6CAacR7XyJfvaRROmPd+8UwddJ08I3yMXG3jJerPFNkDPlHYNQqAgbKuXedap UzbZ9IHO+PcWp+M1TK5vhIY5ql2mIP7cMedTAyVVHyvUctGWIsY1Tzwpd3LJVKsz2Pu0u5 yBXb9p+8oCCveEYMj597cXrxn9FbiPw= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-436-SEU_BYxAOPWSoR6Dn0ClLw-1; Sat, 15 Jul 2023 12:11:48 -0400 X-MC-Unique: SEU_BYxAOPWSoR6Dn0ClLw-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3fa8db49267so14994515e9.3 for ; Sat, 15 Jul 2023 09:11:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689437507; x=1692029507; 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=Js70kE6M4tQuHcgETIy8XYzF63AeuA3GvQidoiOZKq8=; b=aiz0C7y5Wf4Of9Lov/g1BCfzumEz+ca79rTTEBzS/BkUXW8caOVcU9KyFAKyx8iIce +0GUtVEOduXGA8088dZKIIdt5t6mj5bpvLklQpi0ZRduq9xdhweHVhIfW3IgkbcezLD7 7+ahiqlYJnfxQ1DG/GaL1zhWG7t+Z1gCTf9g7o4Oy79Js1amUqZC++FLKxLZOF69gX8n yWvRI4/wnSfgBNlCIh9q/zxxIcP7WzOROriFhwrnjoLaPlxpV+tbvDh6Ir4VT5gQF9n9 sSdxgXiVv5q6WxA1t0+lPJ09U2uUvh9gv5jiAj/Pc5UdifD7hC6/Y0AagSoq8TNSIvbO flnQ== X-Gm-Message-State: ABy/qLaWD1l3dFbTobykhTBaA4OqPddWEShE6bCcUoIS5qA/h64JNSoc S3oNu1/CYdOUrOmPubbDAZGCgcumSZVrDUSb+Gh5GWU0eEEVSv62bJkT9JOfosy6x6hBwi3W3E4 5IaqfmhaiCthRO8ucL9X9KVNs X-Received: by 2002:a7b:c40d:0:b0:3fc:1a6:7764 with SMTP id k13-20020a7bc40d000000b003fc01a67764mr6353261wmi.16.1689437507834; Sat, 15 Jul 2023 09:11:47 -0700 (PDT) X-Received: by 2002:a7b:c40d:0:b0:3fc:1a6:7764 with SMTP id k13-20020a7bc40d000000b003fc01a67764mr6353234wmi.16.1689437507258; Sat, 15 Jul 2023 09:11:47 -0700 (PDT) Received: from localhost (net-130-25-106-149.cust.vodafonedsl.it. [130.25.106.149]) by smtp.gmail.com with ESMTPSA id y6-20020a1c4b06000000b003fc3b03e631sm3602905wma.1.2023.07.15.09.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 09:11:46 -0700 (PDT) Date: Sat, 15 Jul 2023 18:11:44 +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 6/9] net: ethernet: mtk_eth_soc: add MTK_NETSYS_V3 capability bit Message-ID: References: <6dc1e0ad7e8138835c959fc83a6c1564e8488c59.1689012506.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Eh7tZsXyDFZVqJbt" 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 --Eh7tZsXyDFZVqJbt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > on thu, jul 13, 2023 at 03:19:49am +0100, daniel golle wrote: > > + > > + if (mtk_has_caps(eth->soc->caps, mtk_netsys_v3)) { >=20 > this is a case in point for one of my previous comments... >=20 > this code started out believing that testing for mtk_netsys_v2 for v2 > features would be sufficient. your first patch ended up having to > change that to !v1. how long until this becomes !v1 && !v2 because > it gets used on v3 and v4 etc? >=20 > this is why i think an integer version field would be a much saner > approach. 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 --Eh7tZsXyDFZVqJbt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZLLFQAAKCRA6cBh0uS2t rGs9AP49MdY//QxPjTry+O5HMEDUJz0xScmT7VFDAbt7wb7HwwEAn0Yz8q6MfSkC djHk8lPoM7OXLyH5gZ4UFWEqt305dgI= =nLva -----END PGP SIGNATURE----- --Eh7tZsXyDFZVqJbt--