From patchwork Mon Mar 25 11:40:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10868881 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 F25D51669 for ; Mon, 25 Mar 2019 11:41:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9CB02927C for ; Mon, 25 Mar 2019 11:41:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD3D0291EB; Mon, 25 Mar 2019 11:41:17 +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=unavailable 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 7B6A729123 for ; Mon, 25 Mar 2019 11:41:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730605AbfCYLlQ (ORCPT ); Mon, 25 Mar 2019 07:41:16 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40554 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbfCYLlQ (ORCPT ); Mon, 25 Mar 2019 07:41:16 -0400 Received: by mail-wr1-f66.google.com with SMTP id t5so9683486wri.7; Mon, 25 Mar 2019 04:41:15 -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=iQLU4ZrakoZ8yhfMSqT9OlU72pPX+Agq08ND+UiglRA=; b=IVUGePq8MYuabAwceDIXSF51YymcHq0dFKMBEy+KU39cmA1EPRi8/uIOLaUwbl7gD/ LVhpUe3pP+5ZsE5qVIoWB/8cJ5bLgL6stFjrwgXVwGS0f0ULUBEEgRgDC4gnNW8sV91V By2fQZarnDLWBZ9LdiBHnEUTDqtDu1h9XLZ16J1zj+US4RxMQuWTWoPqiVwzEc/9ACFC BzocgFWVTcNyqG0EGS6+zL+y77Sd/DxTPMBtbgWrvwF4K+dFXaWAwBa+y9a2hNzzy2NQ 0J3L1w4BeQaiR8f50YvmstJh1kd5aJNYkEhXDqZqtbGoxhxuYeJi34wGsf1hbq3XXzfZ 7+ZQ== 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=iQLU4ZrakoZ8yhfMSqT9OlU72pPX+Agq08ND+UiglRA=; b=t5M5dRPiWZVmbuWxbMYLrwOX+efCr4RUv2vadduF9e0DJcfLD4nqfRY0c5JQzZq4Tr Q5in9hXBx2YSoHLoM9JNmvUFr/bUI7xYAcHaNayhENiRHlhbHgpRr1pHVdPUh6euS24P rwOGXw+aN8YjMdx3qj29GLY9Oe/GX15fhB8/MJMr6nVBspR3S91t0lUyrNYfpwgDMCeA LYQ+Lq5G9X6NY4RnYO65AEinOBRg+GBCsufixXOk7RChe9wCqP0xlnZtApVI13BB6FQG /YKZ4guD6OLzEI4Ej7n6Axmykoelt6fRWGNrIE9nySA3x6WmSXl6vIgKxNBU7ru9mfi3 m7fA== X-Gm-Message-State: APjAAAXgrfO9sHfx2553H/MmWrKj+xxLg3kxMp0Ncjt0Wb8TaxVG1hj4 zVk+jAvBRJrmZAWUOV4s1w82oHbK X-Google-Smtp-Source: APXvYqz59O/DShwXS8EB/pAF6qWaNfzXAhGilyB/TrG4lXmIS4VSbhdVGu9dziM3XBKLUzIoaI3bfg== X-Received: by 2002:a5d:458f:: with SMTP id p15mr16189006wrq.188.1553514074425; Mon, 25 Mar 2019 04:41:14 -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 f1sm3905730wrt.87.2019.03.25.04.41.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 04:41:13 -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, Wolfram Sang Subject: [PATCH V4 1/6] PCI: rcar: Clean up remaining macros defining bits Date: Mon, 25 Mar 2019 12:40:56 +0100 Message-Id: <20190325114101.10198-1-marek.vasut@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@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 Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman --- V2: Bundle this patch with other cleanups before resending V3: Add Wolfram's R-B V4: Add Geert's R-B --- 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