Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4509996rwd; Sun, 4 Jun 2023 06:57:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7deN8HFNDZYwvusWpWN+EbCBJM+veTDjvgmcRxUyVV1H9mIDDDBgr7PgwgkvIBTtaYLP+l X-Received: by 2002:a92:4b08:0:b0:33a:56d6:d9a4 with SMTP id m8-20020a924b08000000b0033a56d6d9a4mr16807928ilg.10.1685887064352; Sun, 04 Jun 2023 06:57:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685887064; cv=pass; d=google.com; s=arc-20160816; b=kb376dHsJ8TbCo+fMVbCcvCXln0b+xR6EBONNeT0qsVWLUzP3kC+HDbifrae7ZMh6c O+AVUX7q+MkfChVcJLYdL8vAsBX4zy6YMOGw06hl4RgTqErWZSPmJxAfonbH0krwyPrL LAGLeTrxMu6n4V/U3p17PBl4mdHnNsMT4f+GStnKyt4CjptRvFYj5PtxYvmqCqwcbo88 nYeGx9lXTxBYEPn+8W2LUVN8/czrn41psnI78kYki6x1Sd/SrPQmtInB2YCbS3PJOibH 111wZvAKC55pz+Vn8k9gSeDEiwWhKdTAah04/W/tta5x/RxXIoYuFVke+D85BKzk88cX LW8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Cb7bonRujnndbvNIQM4LPU8azHbUPLzM2mZY1a0gQGI=; b=iBdEOr8tykH1gNjj1JPRRt5GkiyEqjAEY7KiZAnzPSUyn3bsV2BGbxs401hZU5yEj/ VIq1UUnictyFPSrVCv+8/l8cjpCiEEDp71cFw2ZfHmCHEQ6BCrZmIu53lU5cb6KJPXTH tavhdFQS+mjnI+6Br2cqhZoAYNdfSc5IMt3T1QV6EIAWeB3x1XLnCNMpQBA6HuKKJaJ1 A8T22m+NYkseYFrkwRVRt53bnj7p65CtyozZjBYysVfiBt/N30IBBWlRig4CKoEZjrJC tYbCETbtrdrTW/pPQG/spygIzd0pRadKUFpdoIZY/IwxPMzwl/RVQgyMWZ6BM6D31gfP ON/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b="XU6xkZ/2"; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a6383c8000000b00543a89c95c2si658521pge.207.2023.06.04.06.57.27; Sun, 04 Jun 2023 06:57:44 -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=@arinc9.com header.s=zmail header.b="XU6xkZ/2"; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232115AbjFDN0U (ORCPT + 99 others); Sun, 4 Jun 2023 09:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbjFDN0N (ORCPT ); Sun, 4 Jun 2023 09:26:13 -0400 Received: from sender3-op-o18.zoho.com (sender3-op-o18.zoho.com [136.143.184.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688DFDB; Sun, 4 Jun 2023 06:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685885132; cv=none; d=zohomail.com; s=zohoarc; b=Bywjwr7BNZlcxr5xW8ywb/LUrth01TtuaIEzUscw5rmX06leIr3v9HwiIgRRsBgyEJc4eoyelom1Oino5farHt/6sHZURY6YCUS7RoAba0NmYE0NzKTYPHyrqR8cAtsget3hHm+HU64yCSGgpUg0A8CkA9QoJjdM/59P0AfbRIU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685885132; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Cb7bonRujnndbvNIQM4LPU8azHbUPLzM2mZY1a0gQGI=; b=cdNpsrhhpx7GhnTU3QZHNbQJOHRush/nD8ynZ4Vr6QPb56F4zPvSVpb95CUZIbLXKhjJeAgnH45xVaCFvwynvPVqv3Ul0GSLXInhJNlo45vukbffyz6ZtiwHDB3H98aEEqvq8hbVHCW12fQwG/IFn62cV7cU8bKfKbRkpwDk+kc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1685885132; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=Cb7bonRujnndbvNIQM4LPU8azHbUPLzM2mZY1a0gQGI=; b=XU6xkZ/2tPG385WlIaSzEZYOyvN4SYWSQsDarOdl4aeSruIqKCUFpqJSywK2srCK 5JWJRxHug9M8vooCWhCzIpB3mSv/KE/GxqeSgXih2vjpIpZNEpec6RdDx5PoLxXAdxv FQUYrgPQ8VznvBx8djyvvcHdODAxEBj1A1CNSvRI= Received: from [192.168.99.249] (178-147-169-233.haap.dm.cosmote.net [178.147.169.233]) by mx.zohomail.com with SMTPS id 1685885131523433.411804914748; Sun, 4 Jun 2023 06:25:31 -0700 (PDT) Message-ID: <77906053-62f4-bfbb-6b76-cb22c30bd102@arinc9.com> Date: Sun, 4 Jun 2023 16:25:21 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next 24/30] net: dsa: mt7530: rename MT7530_MFC to MT753X_MFC Content-Language: en-US To: Vladimir Oltean Cc: "Russell King (Oracle)" , Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Richard van Schagen , Richard van Schagen , Frank Wunderlich , Bartel Eerdekens , erkin.bozoglu@xeront.com, mithat.guner@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-25-arinc.unal@arinc9.com> <20230526154258.skbkk4p34ro5uivr@skbuf> <20230604131735.f2clcinq67wspuun@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230604131735.f2clcinq67wspuun@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 4.06.2023 16:17, Vladimir Oltean wrote: > On Sun, Jun 04, 2023 at 11:06:32AM +0300, Arınç ÜNAL wrote: >>> Even better are: >>> #define MT7531_MIRROR_PORT_GET(x) FIELD_GET(MT7531_MIRROR_MASK, x) >>> >>>>> +#define MT7531_MIRROR_PORT_SET(x) (((x) & 0x7) << 16) >>>> >>>> and here: (((x) << 16) & GENMASK(18, 16)) >>> >>> #define MT7531_MIRROR_PORT_SET(x) FIELD_PREP(MT7531_MIRROR_MASK, x) >>> >>> No need to add parens around "x" in either of these uses as we're not >>> doing anything with x other than passing it into another macro. >> >> Thanks. I suppose the GENMASK, FIELD_PREP, and FIELD_GET macros can be >> widely used on mt7530.h? Like GENMASK(2, 0) on MT7530_MIRROR_MASK and >> FIELD_PREP(MT7530_MIRROR_MASK, x) on MT7530_MIRROR_PORT(x)? > > I suppose the answer would be "yes, they can be used", but then, I'm not > really sure what answer you're expecting. I was thinking of replacing all manual definitions with these macros on mt7530.h. For now, I'll just make sure my current changes use them. Arınç