Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp590163rwb; Fri, 13 Jan 2023 01:30:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsD3Ja+lra7Zf/b/UEZEt9r1LLJdnfDIzPJd0IUuA4z8g70ZXDAvYiWs/BP60yQxj7mc70Q X-Received: by 2002:a17:906:a20e:b0:84d:37d4:7530 with SMTP id r14-20020a170906a20e00b0084d37d47530mr19384298ejy.53.1673602206968; Fri, 13 Jan 2023 01:30:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673602206; cv=none; d=google.com; s=arc-20160816; b=chyuocjOTTEeMt8eZp/yYAP8bwjB5rzbCKnIbjDlK4Uhf+OTNMsM+BO1aw5p70A8hh cPQtBqHfJvU8sGe/PMUR4Nj96ztVYEoo7MYvneiZr5akXXq1xLBOgSvCgUlmXOQKLVJv 26BAZnOxFbRPiyZuiBtutX81Q+MLRn2mQ9tuFL66LSSWZwQ1iXekgp0/tyGUDy6S0Fxs 9nlV5L28tR52j9KSHwHIJl7fzbHyQ2kiRAe9JRqldAioIeptlb34I+AAhEhikJwvII5B KzfyZTsS4OeGc6XHv4s9KdvQhFscswVcwF6E8qHdokFmsBICaMlwd5BR63Qk+DKQRapX OwlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=RyDICis6TMtpYbxnbEUxD/J66AveFuMFSuvndGIvxTA=; b=coveQqAtk3fsvI900nF84OrcOvX17ElOp6X5QLkvfXGgo87v4p8Zr1VeXwdKh5AdGM 3sju0ik3D6xPnXek/0HwRmT/zJqFmGAk+7A56wgMd0GPGaxe4b9Qjd3AMUOcWl5Wh/EO U/lyqOgV6rKfIaCGnVRekW9VTuhFjK5nd1pOX3kiqQcVP3xoYWdpAqrfb3AUplVSr3fP cNSO5T3eq69T0jYjx2Uv2eMT8cgla2jhiw/5Bi02eMNtaFdZCoT5i8l0hzne4Dy55uS2 t3Eq5l+enHSHkd+0zav3zwfBxmbebk3A0m2d11HK3gyTTWGL9BC8ddmwXXN/9s3ZcKh2 r3Ww== ARC-Authentication-Results: i=1; mx.google.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 qa9-20020a170907868900b007bea4cb61d6si20972971ejc.424.2023.01.13.01.29.54; Fri, 13 Jan 2023 01:30:06 -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; 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 S240906AbjAMJKA (ORCPT + 51 others); Fri, 13 Jan 2023 04:10:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241174AbjAMJJ2 (ORCPT ); Fri, 13 Jan 2023 04:09:28 -0500 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B74141CB2E; Fri, 13 Jan 2023 01:07:03 -0800 (PST) Received: by mail-qt1-f178.google.com with SMTP id a25so11443883qto.10; Fri, 13 Jan 2023 01:07:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RyDICis6TMtpYbxnbEUxD/J66AveFuMFSuvndGIvxTA=; b=eaM1Y2rEA5oMh8Yq7/LQ+pEhBboeNIJdCjzbjdUNKQCMRtJgIY46wnj0Huqz52gUfk rMntPBbgMV44HviMcgF8kClLAuLEp0z2xpIkqnYMjx93quW44M7VnkmDN7ZqB/U1RRC1 3kiZFWmdYWmaQmhl5q9niCsqYE9NmockIs1mEP5kgrTigAiBIbCIbvR5SsB2oA64fs41 1bno/9gB15kYFbbzBRe19/kxFghOmNfpZYy0+1phSCDS6c9zN6bU7rlVbemXwbwbGsBH uF2WI73iSr+yCqkLSmFREGm1upEY/JBn1ibvr8uoO1S0O9NcXu09WN0W59xMh7VtxaJu o+fA== X-Gm-Message-State: AFqh2kr5vmPSWOM6sjkS233KpMzP2GjxNY3N1r/ITEyt6GRDs69H49uU QY7o7E1JRF2Njw/XuXIj5ju65qWNYSeLwQ== X-Received: by 2002:ac8:7205:0:b0:3ad:841d:e65b with SMTP id a5-20020ac87205000000b003ad841de65bmr25096777qtp.7.1673600796323; Fri, 13 Jan 2023 01:06:36 -0800 (PST) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id u8-20020a05620a454800b006fc7302cf89sm12473249qkp.28.2023.01.13.01.06.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Jan 2023 01:06:35 -0800 (PST) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-4c24993965eso269397537b3.12; Fri, 13 Jan 2023 01:06:35 -0800 (PST) X-Received: by 2002:a05:690c:313:b0:37e:6806:a5f9 with SMTP id bg19-20020a05690c031300b0037e6806a5f9mr3504559ywb.47.1673600795403; Fri, 13 Jan 2023 01:06:35 -0800 (PST) MIME-Version: 1.0 References: <20230113084516.31888-1-lukas.bulwahn@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 13 Jan 2023 10:06:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] PCI: rcar: avoid defines prefixed with CONFIG To: Lukas Bulwahn Cc: Marek Vasut , Yoshihiro Shimoda , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 AM Geert Uytterhoeven wrote: > 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 */ Regardless: Reviewed-by: Geert Uytterhoeven 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