Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1688213rwn; Fri, 9 Sep 2022 02:26:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WlDDlxSllyxk2sb8ncYaTQWh2yBOP6yGyakHpdkkHAP14CJaI9ucXUaR/IfG/DsoBToJI X-Received: by 2002:a2e:9cce:0:b0:26b:e2a8:d137 with SMTP id g14-20020a2e9cce000000b0026be2a8d137mr857138ljj.356.1662715618960; Fri, 09 Sep 2022 02:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662715618; cv=none; d=google.com; s=arc-20160816; b=xhKP3HWE+sNymbRysjxrf1ZJ7yctPXbuqeh8GS/AFejFyLeCl8mgweODeTh6RtPCuG 8ZmVSoNRj6JLGyjrLv5qZkaXC3L0vWCa1U+bg+/dKVgRHKaUA44o0hSwhw23fyRzuCME 13Y6vnT4NN9jk6SUftY/yTead6pfyxyRN84a0wuCFZmVgxMZR/VzzE/RwnbqNhR84ihM yyBVu6CPJ1H8ST30XJgjkfNRhQqzZrRnOrtLsSvzs4nFKHB4SAtbfCDOBhgWlEdxJtNy fEFX9J36l20j60c/t5Of6A2jfoeLZcMXxhyIwkpw2abr9r3tsGxZN4W9dBh+O/UyLqS7 WDrA== 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=fqBfnSrHjItCS28txU8ptx3AXQD1GpDt6Ij78qQIXek=; b=s1MCOy7Vf7zf2dxQ8amBuWuN21ffnFxtICMcBxLGsQdSqSss7NmjnBGZpVGZdky223 hPonjYoE/Vh4Q8zVmorSq7PVaVrjAxuJDEORYE9OQeTEE8Fi06FW/F0z6yIoppvV5Wfi DAz+z5y271JEu798S0X4WdgRtCHR8P4KHAy+AAb+jZuPIGi8XoW8ufCve/5kmq+JozRb UkxtkHxHwxto4S245t7/Yc+Ywfy3JTTFEudlyF90a1bmjAd5jhTIGGwQPRGQberAGbm4 UE5MDteSCmDYxgrHv4Kx71VcQN4yEoPO6K9WEeZghL9XiAiAt77kjpVKIE3eP5LvC69q IWDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u2PByivq; 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 g23-20020a2eb0d7000000b0025e657e92aasi8427ljl.382.2022.09.09.02.26.30; Fri, 09 Sep 2022 02:26:58 -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=u2PByivq; 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 S231730AbiIIJSs (ORCPT + 99 others); Fri, 9 Sep 2022 05:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbiIIJSq (ORCPT ); Fri, 9 Sep 2022 05:18:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1E7F1395B5; Fri, 9 Sep 2022 02:18:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 799F561F52; Fri, 9 Sep 2022 09:18:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED3EFC433C1; Fri, 9 Sep 2022 09:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662715124; bh=RosoBqrL7vwFwp7BUodrRS2bhB8pk1X87+R6M1CrRFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u2PByivqf1H9W9Q539mL0KbU2e/urfLjrIIZvNiRgh331taZqBSY2lkG/Ezgz7eRP S5CBhTczX5wIV22EMhd+Hu5gXFGP1shqf0u/2rYuZslUYFtiZ721tsXg/UZVRLeuFr Fspqe0BhFl9QhBZl+jnILOzmAFY7e0nn4csxgB5s873xMYTXAweBALUiS6uiISJMvm 86Qzd+MEB1gmNL1jOlLa9xW92IgtHldu0az70KEqCHe9VsEHrCYN7ZXXJAL356nEjT 5KdLrOloJcP2e1Yd0dApihydV/PAAizVv7thlSymqbWyKyyYKsj0+n1SXay5Zm4j8b dfv35WsmOMn3A== Date: Fri, 9 Sep 2022 11:18:37 +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,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 Mon, Sep 05, 2022 at 08:51:49PM +0200, Pali Roh?r wrote: Add a commit log please, even if it is just one sentence. 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 >