Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2104734rwn; Fri, 16 Sep 2022 05:54:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PKXeRb5tQXoXSOB0NG2hgGPxUi3k6tScBuvazC4tm5jPLpP2HCjC6EOnKLsyYOq0GjpRp X-Received: by 2002:a17:907:86a0:b0:780:33d8:ef83 with SMTP id qa32-20020a17090786a000b0078033d8ef83mr3549905ejc.667.1663332866788; Fri, 16 Sep 2022 05:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663332866; cv=none; d=google.com; s=arc-20160816; b=FltgEjtyGg0C0oQ9+PFQ39rLZYhw4W5nVL/1xXoP/hLC82TwhIVpzM+XFzTQpXiw1A qLgHMEf2xRYH1LgWcF+pqDnRNyaoob0oq7jR819qDL5PHPNX9dkZrEUensdvUovNhIhE OTBo+gEiiZ3JUSbhtCNTFmo4BiwnP0DVVZ/j8F4mXM1vKHLfSWaenGjViYI0zusrGFpD zyMIfAUzYvDRhqGxtmFKWbUO5dKRsv8AqI008RkBS5rAvkPpwIBspyTi4p2RHRmBBHMA BxHam/BxZk2qzD47Boua9HrHfO7SUaWOSU2Ts3SIrzzS6QopIWVRy/ZkXxwXkEbPANQ1 vmpg== 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:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gKL6AeTzHOPLoirnNPbOIdz/NdnI12YnDQtI2QXv+qg=; b=XGU03JBSKcFjkpgI4dALvGAb+ftr/Hlr0klhlDNC68e4qqOzi1SIbo/TpJgowVkq9q huwGlUUBQAc5sg8RcAppPXaGaEfVyap+FPMzJ4wFDjJ+GuAtR+oKlaOsSU5XX0gMz3Ty G65VVziUnO6UnXea6wam3dcnqKji/86ue+rsatOkR23AmcqW98/iSQIsFOzaCmhQoIUA XMSifXHXbMcosgwoCSy8W+tbM8L3UAx6EiCEFM8OmXamtvI7piRQ72I9LaeRIvohfp23 YSb1YzL5snFlid3o6L+13m0mooFKQInzkksf6r5WKUCz+VCYntuTtOSo8eQYjVM3ZMW9 uprA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tsxuq501; 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 h12-20020a056402280c00b0044f025c1370si2259014ede.530.2022.09.16.05.54.00; Fri, 16 Sep 2022 05:54:26 -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=@kernel.org header.s=k20201202 header.b=Tsxuq501; 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 S230088AbiIPM0z (ORCPT + 99 others); Fri, 16 Sep 2022 08:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiIPM0w (ORCPT ); Fri, 16 Sep 2022 08:26:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26FDDAF0F2; Fri, 16 Sep 2022 05:26:52 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id DCC24B82695; Fri, 16 Sep 2022 12:26:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E8ADC433C1; Fri, 16 Sep 2022 12:26:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663331209; bh=AW6TF25zOisYUbOOZkTVJzAVomJgQKWT2gCcg/cUS7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tsxuq501+aB/6YwnSPXSvYKXkOY2FP4N1HJCXgpbMvAQqOEeKpB0490Ngi8RdqU4d uzWOsi3chvT1t8Bijl+HJPoDjiKbv0mA5yUghmQjbO1risXyPzYk3Ouh7tZfHZhSX9 tqwnQI9dGBt1oF1lCrbrYq+Uqicyp1VBd5q1G64c0VbzeAGsMXMuMEAnFQUCJGFmm4 JuVeQPa5GQUwq+yvGS8da8mPJ22DrUbcgvShJQl3lwf4qGt4pEBzaga3wYd1z264YC rdRexfnTJZZvXG8YR/W17Ga8S1mulbVMPI+N+PqvxewNQv05Erj4i1MQA4FqSU0FWH eKF1qUVhkdXSA== Date: Fri, 16 Sep 2022 14:26:43 +0200 From: Lorenzo Pieralisi To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Thomas Petazzoni , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] PCI: mvebu: use BIT() and GENMASK() macros instead of hardcoded hex values Message-ID: References: <20220905185150.22220-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220905185150.22220-1-pali@kernel.org> 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 Mon, Sep 05, 2022 at 08:51:49PM +0200, Pali Roh?r wrote: You must add a commit log, ditto for (2/2). Thanks, Lorenzo > Signed-off-by: Pali Roh?r > --- > drivers/pci/controller/pci-mvebu.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/pci/controller/pci-mvebu.c b/drivers/pci/controller/pci-mvebu.c > index 8bde4727aca4..c222dc189567 100644 > --- a/drivers/pci/controller/pci-mvebu.c > +++ b/drivers/pci/controller/pci-mvebu.c > @@ -44,7 +44,7 @@ > #define PCIE_WIN5_BASE_OFF 0x1884 > #define PCIE_WIN5_REMAP_OFF 0x188c > #define PCIE_CONF_ADDR_OFF 0x18f8 > -#define PCIE_CONF_ADDR_EN 0x80000000 > +#define PCIE_CONF_ADDR_EN BIT(31) > #define PCIE_CONF_REG(r) ((((r) & 0xf00) << 16) | ((r) & 0xfc)) > #define PCIE_CONF_BUS(b) (((b) & 0xff) << 16) > #define PCIE_CONF_DEV(d) (((d) & 0x1f) << 11) > @@ -70,13 +70,13 @@ > #define PCIE_INT_ERR_MASK (PCIE_INT_ERR_FATAL | PCIE_INT_ERR_NONFATAL | PCIE_INT_ERR_COR) > #define PCIE_INT_ALL_MASK GENMASK(31, 0) > #define PCIE_CTRL_OFF 0x1a00 > -#define PCIE_CTRL_X1_MODE 0x0001 > +#define PCIE_CTRL_X1_MODE BIT(0) > #define PCIE_CTRL_RC_MODE BIT(1) > #define PCIE_CTRL_MASTER_HOT_RESET BIT(24) > #define PCIE_STAT_OFF 0x1a04 > -#define PCIE_STAT_BUS 0xff00 > -#define PCIE_STAT_DEV 0x1f0000 > #define PCIE_STAT_LINK_DOWN BIT(0) > +#define PCIE_STAT_BUS GENMASK(15, 8) > +#define PCIE_STAT_DEV GENMASK(20, 16) > #define PCIE_SSPL_OFF 0x1a0c > #define PCIE_SSPL_VALUE_SHIFT 0 > #define PCIE_SSPL_VALUE_MASK GENMASK(7, 0) > -- > 2.20.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel