Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1170112rwb; Fri, 13 Jan 2023 08:44:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDcEsWn7WaVYql3hqXBFH/NArBogNjcaIFM5VlcVvxCKERIJUu39KmJRZIgo7N5c043+Dw X-Received: by 2002:a17:907:a643:b0:83c:7308:b2ed with SMTP id vu3-20020a170907a64300b0083c7308b2edmr72139109ejc.17.1673628293370; Fri, 13 Jan 2023 08:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673628293; cv=none; d=google.com; s=arc-20160816; b=YdJfRRgt84QL471KmUrz8f7cAYS0m0YHOM23mpNj4OeYDRA2RC2MUZ7MjZ4FTU8Pws NhPtIMTj0yOlnVpmn2mU1tuA2anHJQMX4f7brdvALxDQzCWOfNdxgBuVnd6Gj6Q3k3Fr kRtdxSP/lBdNTbI5xW3jj+UrGeABICHnuh8zNLwXVkbWMiAiswykL0+XxPJ0cn/lU4WE I85LFVTCUhAleyzNSpXRki3ipVBKRzK6W1LuZc6nplSdz+f0hiyXvYEOHYAHJdR8ELe4 DVqUQWG9mAcMoFCDl+EXpOsFLOrB6CRfFWBGMIFs/o+crHo3Byn4Vtp4MGdXPfHC/8XH nwpA== 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=4nAwzicPu4f9+OP26VAasgfumpylBVPSv2/DMW6vqvc=; b=lPNBPmjHoMJFeA5doq5jnm5QDakeiN5k3f0B4xF1Vxmyq7yE0qjuY+sk7i8R8UD1Tx wXiU+hckBw4NaE676MiJ5sXvAW0ah9KC4avmvu7WqMaIyJheuZlBI31ez0YqyVkXBT+3 MIz+Jqyg67YBLo53UWDKufS2QPY12TRKxoQziL4Fs2zkATNbL7FXfkJ7oGkV5BTwKR6x oJOVo/4k11oweDvliEmQeayr9kggdLHjATdD3yHqmxmn8IdpBmi8lz54j0wMyjJZ3PXr Y/SkbMK1bPr28waxScsJ0/vdCUu/9Y+YF9lfkMIJ6HLSjGfIok4HpfQCdhCR/lRYoFNu y48A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tMxoK32y; 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 sa40-20020a1709076d2800b007306ac0faa0si22830120ejc.615.2023.01.13.08.44.41; Fri, 13 Jan 2023 08:44:53 -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=tMxoK32y; 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 S230481AbjAMQgg (ORCPT + 51 others); Fri, 13 Jan 2023 11:36:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbjAMQgM (ORCPT ); Fri, 13 Jan 2023 11:36:12 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A0EA83E6; Fri, 13 Jan 2023 08:30:33 -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 CB6366226E; Fri, 13 Jan 2023 16:30:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC89BC433D2; Fri, 13 Jan 2023 16:30:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673627432; bh=j52NZSUcbPH04wq22NuEeLM/pe4Wo9omP1Wcc2GeDRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tMxoK32yQiH3wR0wEpYOfAevbRha36rHH02Gwf6dMMQKX445c/KNCED5XVxbzyH1p cZVF5t2pOLb1VATvIhZiIj7J/xrBmFaj6BbDNNdeK9VLyoPSAYjgSqx71rzc2/ylXX Nf0MSQ8ci05/Fb6k+LziWXY6Ye4bJtNRAIDHAM30HywOdDz3r19ozJfHuiMG1WzTZH IsLmQ4dQcv6j6ekU/3NsxV14hU4xAPWnKz41p8wgsGMKZuLbINEyFKlaEspHssqhVK deO+FKx0GbCSnFzjDLDjUcZIDAA7n8POhuifnavTnfTbdARoyW3HKavsZ/FOLkObMQ Ivfoh9AC3Jbsw== Date: Fri, 13 Jan 2023 17:30:24 +0100 From: Lorenzo Pieralisi To: Geert Uytterhoeven Cc: Lukas Bulwahn , Marek Vasut , Yoshihiro Shimoda , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: rcar: avoid defines prefixed with CONFIG Message-ID: References: <20230113084516.31888-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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, Jan 13, 2023 at 10:05:09AM +0100, Geert Uytterhoeven wrote: > Hi Lukas, > > On Fri, Jan 13, 2023 at 9:52 AM Lukas Bulwahn wrote: > > Defines prefixed with "CONFIG" should be limited to proper Kconfig options, > > that are introduced in a Kconfig file. > > > > Here, a definition for a bitmask to configure the SEND_ENABLE mode is named > > CONFIG_SEND_ENABLE. > > > > Rename this local definition to CONFIGURE_SEND_ENABLE to avoid defines > > prefixed with "CONFIG". > > > > No functional change. > > > > Signed-off-by: Lukas Bulwahn > > Thanks for your patch! > > > --- a/drivers/pci/controller/pcie-rcar.h > > +++ b/drivers/pci/controller/pcie-rcar.h > > @@ -11,7 +11,7 @@ > > > > #define PCIECAR 0x000010 > > #define PCIECCTLR 0x000018 > > -#define CONFIG_SEND_ENABLE BIT(31) > > +#define CONFIGURE_SEND_ENABLE BIT(31) > > The R-Car Gen3 rev. 2.30 Hardware User's Manual calls the bit "CCIE". > > Hence if I would have written the driver, I would have used > > #define PCIECCTLR_CCIE BIT(31) /* Configuration Send Enable */ Should I change it when I merge it ? That makes sense actually. Thanks, Lorenzo > > #define TYPE0 (0 << 8) > > #define TYPE1 BIT(8) > > #define PCIECDR 0x000020 > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds