Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp397354pxm; Fri, 25 Feb 2022 10:05:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/h3F4A8QrZxSIoRWE/HnMt1kiJ2iCdzSRVqNOmxG4D29K73XJQZW6hqKrR28K8ED/BNZ1 X-Received: by 2002:a05:6402:5189:b0:413:b69:c489 with SMTP id q9-20020a056402518900b004130b69c489mr8212799edd.308.1645812332447; Fri, 25 Feb 2022 10:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645812332; cv=none; d=google.com; s=arc-20160816; b=RuvDafYUR44gpF3WYEoiTfH/6nWb+GeG8t6KV3HS402/vHLs4AaCwgz/lF9WtwNecS LclMTmd5QhYfohxt2sAoLtpxi7PHdG7WZQnNWEyLzRanU0Rfhoy/UntrHqdJZdkcVQuS /mOKfJUio7klt0a+DTLwe6kbbsBkAPJN1oXDtUOzZKhHdAcnEprEcJkorJfqONahO/BT 9l4UHlP6lWeRed3bDcpQWlq/1IzdycVWFWoZ0z7ciVMMb+x/nyx0XWVKRmdBIA9mARdv ax+3xeKqVknNVL1WkexqFJTIArSRhv37cUu4rNJiTA77t75KoWSn0OfSFTX7prCQgGZr jVGw== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=iIw9PqoDeVOxsJELhE8yaayMAn1c9fOjQFs0o0kJah4=; b=v/wYqeVvqmPvS/q0cKdpe+fZ3Wu/CY3d9iPrImImf7t5sFctGqtmVrygdshBSvQA5T 54gk05HRTBhSvnXPIFyy5Ud5n3aC0yKWKib4o90e0nQVVRufn/HsC0iFfYNvJLH85BTm 8uijul8VRrvrF4zFlsMckYuN6x0EnhzPNLkqcpBT2ulTq+gQfEUygYApehihrZ3vnlVT TVEnQ+Cwx7VM+j2ynuXGkhXaS4MtmpI0V5Kmf0pMugwnlb2cHmeHK6PcqIII103SVZ3r cbTZCLmcSy0y17V5OZ6inJKJe7XEOP5LJ/zjx6K7sInwvI5iO5lTKM528EYmXiAODR+B wahQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ILebw+DP; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc26-20020a056402205a00b0041283936104si2177285edb.252.2022.02.25.10.05.09; Fri, 25 Feb 2022 10:05:32 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=ILebw+DP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbiBYRvz (ORCPT + 99 others); Fri, 25 Feb 2022 12:51:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbiBYRvt (ORCPT ); Fri, 25 Feb 2022 12:51:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B21622313B; Fri, 25 Feb 2022 09:51:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D545861DFA; Fri, 25 Feb 2022 17:51:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E26CBC340E7; Fri, 25 Feb 2022 17:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645811473; bh=4OGwXvj6qG40FpaSoNd3Q08HMEjHMoeogTnv4EWa8cg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ILebw+DPu/ytkCQwojobeXNB8JX0usxgEWR0mD61kJ1R+PoCCL1Tw5MULyNKQzLyX g+agQx4t1UaZhZ6KQ2MFvVIVrH9dAzIDGQjdRxdHeAJ+rRFZszmOQeSq9DBlK8aEVq KEin/IhXQe1qwzCSGjeB4eN/2DATuH801k1+LJo0brl5DIUBXQ5Dj/g4b4MLmJTRhH 1Gbf1nE3/YZzIbx83UY01nQbm28MNJK0W+IBYjm6dvtI6K65V4w7cKtJFKufEiJWIu OQNN1V6GIhVbX02eL++cq8SEQoP9D86aH2/9MPqi/8RnGSrEpoqGiSyZ8TzSo65/DU s4pSYD9Ex+hgQ== Date: Fri, 25 Feb 2022 11:51:11 -0600 From: Bjorn Helgaas To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Andrew Lunn , Thomas Petazzoni , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Russell King , Gregory Clement , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] PCI: Add PCI_EXP_SLTCAP_*_SHIFT macros Message-ID: <20220225175111.GA367168@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220225182216.2fcf5455@thinkpad> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, Feb 25, 2022 at 06:22:16PM +0100, Marek Beh?n wrote: > On Fri, 25 Feb 2022 09:37:56 -0600 > Bjorn Helgaas wrote: > > Yes, it's a mix. For some recent additions, I've resisted adding the > > _SHIFT macros on the theory that they clutter the file, they never > > change, and the main point of the #defines is readability and so > > grep/tags/etc can find things. > > > > There are a *few* users of FIELD_PREP() and FIELD_GET(): > > > > git grep -E "FIELD_(GET|PREP)\(PCI_EXP" > > > > and I'm inclined to go that direction in the future. What do you > > think? > > I am also pro that direction. > > Would you also like to convert current usages in the .c driver files? > > We can't remove the existing macros since they are in UAPI, but we can > convert drivers so that they don't use _SHIFT macros. Certainly not a high priority, but it actually looks like there aren't *that* many uses in drivers/pci/, so I'd be OK with converting them. Bjorn