From patchwork Fri Mar 22 02:38:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10864823 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5ACA21669 for ; Fri, 22 Mar 2019 02:38:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BD212A21E for ; Fri, 22 Mar 2019 02:38:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DCFE2A5D5; Fri, 22 Mar 2019 02:38:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F07272A5AE for ; Fri, 22 Mar 2019 02:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727194AbfCVCiw (ORCPT ); Thu, 21 Mar 2019 22:38:52 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42495 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfCVCiw (ORCPT ); Thu, 21 Mar 2019 22:38:52 -0400 Received: by mail-wr1-f65.google.com with SMTP id g3so661601wrx.9; Thu, 21 Mar 2019 19:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Oyufogf+KDRw5kf68/JGm5ce3/ZrEBM4vcxMGmMiU5Q=; b=l3wbQXEQf38Uxj8B2+OYcfwT+r6UOlJvIyUlqr1K5FPbpInuiLpcHHkY1THXDWfPJ4 J5KuUYs89dPhXeF+OiDJCqOZhG9ZFsSRXrxejVD9wwU3206+7o7Ft3Bzfkbq2CFBItT7 hBXRYjkHu8ovWMDZLcTIr1fjwnnXusOAsoW1DIAxlXtyX1ifDOsJU1YEr6+RVR466+yH ovwf7ls/P/oQ9aSDNmZrUTYfksBrtMdntqwxouH941oAwZNem+AM3RX/EZNvdS2i00tM YsamduA1MK4odBShKqoE6jtTvHhjKMntvaW+v1ECrRKK0VaPow4HXJBIvOx27uy49JTl ua7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Oyufogf+KDRw5kf68/JGm5ce3/ZrEBM4vcxMGmMiU5Q=; b=XLr5dhr63RzN4mdLGln10ff42BmhpsFkAoKBdb/rvpRPybVCMwaQ1pewMD8YOyzIkO bXFC7shU3rI2Edk/VQutxqhCmq7eH6B+qISfX9V9dk3U8mULTLu81M2sq7y4BCbBX2z8 ciI+jH4UucRjx7A/fvtL3tUpDqVIn2F5MLLBfWndNoxcruxNpHZPbFl2nPv0ksg3Mp4E dNWBqXAszTVOp1Wh9HWvwEE/zsqJovrjrtsCzrx2JU98QjB6s5UnA5nrjZOREcTvPgQh fvjZKqlCrKy5aQyQpsaPRhG62/8KluAEeYloa023Gt+VQit0npjREj7ZbzUWm6SamHEV aVJQ== X-Gm-Message-State: APjAAAVGwxrUNQkOQE3VxZ89b8b30e+NCtvScTd0aIIatgXCFVkdpF1o zmU8duozykvcWVDD0d0RmRG8GYyU X-Google-Smtp-Source: APXvYqxHfLFUrz4uoApdUfCVgEgRwT9oP5IQbVM6stj3Nn94Akra9MZhMMK+mRDhSQN9JH5Jtk97Mg== X-Received: by 2002:a5d:5188:: with SMTP id k8mr4564550wrv.183.1553222329703; Thu, 21 Mar 2019 19:38:49 -0700 (PDT) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id w18sm10432692wru.24.2019.03.21.19.38.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 19:38:48 -0700 (PDT) From: marek.vasut@gmail.com To: linux-pci@vger.kernel.org Cc: Marek Vasut , Geert Uytterhoeven , Phil Edworthy , Simon Horman , Wolfram Sang , linux-renesas-soc@vger.kernel.org Subject: [PATCH V2 1/6] PCI: rcar: Clean up remaining macros defining bits Date: Fri, 22 Mar 2019 03:38:39 +0100 Message-Id: <20190322023844.18574-1-marek.vasut@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marek Vasut Replace macros using constants with BIT()s instead, no functional change. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Phil Edworthy Cc: Simon Horman Cc: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org To: linux-pci@vger.kernel.org Reviewed-by: Wolfram Sang --- V2: Bundle this patch with other cleanups before resending --- drivers/pci/controller/pcie-rcar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-rcar.c b/drivers/pci/controller/pcie-rcar.c index c8febb009454..5b8736f0cd6b 100644 --- a/drivers/pci/controller/pcie-rcar.c +++ b/drivers/pci/controller/pcie-rcar.c @@ -46,14 +46,14 @@ /* Transfer control */ #define PCIETCTLR 0x02000 -#define CFINIT 1 +#define CFINIT BIT(0) #define PCIETSTR 0x02004 -#define DATA_LINK_ACTIVE 1 +#define DATA_LINK_ACTIVE BIT(0) #define PCIEERRFR 0x02020 #define UNSUPPORTED_REQUEST BIT(4) #define PCIEMSIFR 0x02044 #define PCIEMSIALR 0x02048 -#define MSIFE 1 +#define MSIFE BIT(0) #define PCIEMSIAUR 0x0204c #define PCIEMSIIER 0x02050