From patchwork Sat Mar 9 00:56:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10845667 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 5666E1390 for ; Sat, 9 Mar 2019 00:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 437432FB6B for ; Sat, 9 Mar 2019 00:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 377F43030E; Sat, 9 Mar 2019 00:56:21 +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 9F8EF2FB6B for ; Sat, 9 Mar 2019 00:56:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbfCIA4U (ORCPT ); Fri, 8 Mar 2019 19:56:20 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55768 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbfCIA4U (ORCPT ); Fri, 8 Mar 2019 19:56:20 -0500 Received: by mail-wm1-f65.google.com with SMTP id q187so14194538wme.5; Fri, 08 Mar 2019 16:56:18 -0800 (PST) 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=tG1/W45bclxbHIJ/XTTD3wUwj/6fNCMlABDLg542AJ8=; b=WKZh571eKS0sL4qi7PgsDLwTnVcxsMDpnDSASGZk+kdulgPMcPYcc3KHXMzI5dQLvc uiG5B3jK9B12mTO5FZUKxmKo6H/G7WJ3T7gL9oS9fjGUpkrFN4YbW2G34QYZesLpt/se EMZ6C3m0vMaJSu7TBcwFYDzwoZUfvjNCGdGxmvpEvI9tGtQ16bofdVbwu8WW85dvN6EM kW2tn+f+w6HgRz20I2ES9CNdXOYYCMISr1+xPSry9IUJcqjgc4updzzwZgiqY72o5007 kdhvkdap9wvW3IyVe7gFhwVe9Vk0GQZvpRamooUdHpGOoFUruyTzO6GiRhVUxhbCxxzz /+Ow== 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=tG1/W45bclxbHIJ/XTTD3wUwj/6fNCMlABDLg542AJ8=; b=QJdQDex+8dYT6fnqk/NYJoR7jWfDV6M2KuufahmgJCK+WiN9B0AkXJp5Gd/cQjKGX8 hpGdKoyV2KhIDFA0s7Q1W8ZRY/K3w36OLr8PVNTBif2mC4VxhsCsc6Q8w8m6StjKhdb9 afZRXrb/hqIJV1uMwaqMhhP7CHAn2WoIECJoEzTSMGj7ANFPrUIP9UCl3gcc82CMlFAL dMYZS5CvFHlKt59UT9EHkhaAh2R/F31Nx4Qq3oq5W2gPnL5e/Dr9gYNJ7Wf52ZCBLFfO +jft4XWOsf2d2w7tiEeVz+mQ5by/isQr6i2BPMTQl6K31V583qX21gY0U6duLOc78VfM rvqQ== X-Gm-Message-State: APjAAAViC7yIFjgpsIhqYWkp2O1MYKv3kX/vv4FNWPwtgycZLp7+UVWE OfpHeIbGdmji/w6uZf3JjK+Vlp+s X-Google-Smtp-Source: APXvYqzmxK8Ho2eIso30bNohfI9EKH1LsnSOaTe3rzdXwUy1WQRVaJQUdmumsEQHqNYEXmwLlRWy/A== X-Received: by 2002:a1c:4406:: with SMTP id r6mr10568868wma.114.1552092977678; Fri, 08 Mar 2019 16:56:17 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id e23sm8340623wme.15.2019.03.08.16.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 16:56:16 -0800 (PST) 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 1/2] PCI: rcar: Clean up remaining macros defining bits Date: Sat, 9 Mar 2019 01:56:12 +0100 Message-Id: <20190309005613.1493-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: Niklas Söderlund Reviewed-by: Geert Uytterhoeven --- 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 From patchwork Sat Mar 9 00:56:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10845671 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 1251A1390 for ; Sat, 9 Mar 2019 00:56:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF5FC3022D for ; Sat, 9 Mar 2019 00:56:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E40623030E; Sat, 9 Mar 2019 00:56:23 +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 96A252FB6B for ; Sat, 9 Mar 2019 00:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbfCIA4X (ORCPT ); Fri, 8 Mar 2019 19:56:23 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44253 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbfCIA4X (ORCPT ); Fri, 8 Mar 2019 19:56:23 -0500 Received: by mail-wr1-f66.google.com with SMTP id w2so23159244wrt.11; Fri, 08 Mar 2019 16:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hNFudz8xVpYznoAjgANt/2D9z5OUCW1uMT/VgT+hL5c=; b=DXXcGLZjHqnzaqivhbIAutnsTXvlLDT3J0l/gHEZbXoccicKlyNMjTHqLDY5FdRwwb ZLXXHSxLuMYs0LCr3TyG+uKUylB6VHmUoDG3lKyYvYcnG4tIT2hJn/xGgo3d9D7BTld3 oeNyd+M45fMT86Sr1l7YHKcixBADS9NNOla4vrSbzKPUATUAPOFchmQi7HpFoOkZh02F 4qC7y6zxvVyMDTv4BQiZ5KbeSnvb8qneiixJHLUihc2vxgAJz3iuTik9qZee4EuptZMM gSv0k/v4Y7eb8AE4LGriegYrsDO5jN7M+c8aObuGucDRw6kn52QRHFt8JtldtdNkMbWA HYkA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=hNFudz8xVpYznoAjgANt/2D9z5OUCW1uMT/VgT+hL5c=; b=g6lqnwl0epeBWJQ2AgHb+Kn8SmNePpFCKNs7uW1EM7fW//EKa2N/XgK+myYvNV0o5M cE1+O6GKZ97Lki2cy7//FaUzpfWuywGVaKf1qU1ZGAz/n4P+qJT+gAOxlvp9vxFp3g6I 4nlfWKx575HbTANvrxIsEKOPCSStOxeTVwEJ+efXwCFpTD79zuOSH1BjiQkMw4z8hygf mVa8eEMTDxsDbmmWdAOnVCs15rSW5KMC5jBtJv/CEr0Y/V+s3xPhAU5gQkMVvHGW6qdQ EP7bYU+uPeLw0TNNG3qkpbwpPphwYE9DM7gtPfVOL9PldD+XeJcR6Z3g6a0zqmabh93n 0BUw== X-Gm-Message-State: APjAAAV6HX+1zbN5YPNh2ElKBDml6CkaPzxgBf2rvvNg6KCzpwVI1rOV QzZi08KHo1ANpv3hQCyTfokdmjTL X-Google-Smtp-Source: APXvYqzCEMFu5BHsWr2yMkI8wAD/xk4Hd4SLCdwTU8zBePBGfQZDpzz3mccng8c/mg3j+cepDKrPiw== X-Received: by 2002:adf:e3cb:: with SMTP id k11mr13114361wrm.263.1552092980512; Fri, 08 Mar 2019 16:56:20 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id e23sm8340623wme.15.2019.03.08.16.56.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 16:56:19 -0800 (PST) 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 2/2] PCI: rcar: Replace unsigned long with u32 in register accessors Date: Sat, 9 Mar 2019 01:56:13 +0100 Message-Id: <20190309005613.1493-2-marek.vasut@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190309005613.1493-1-marek.vasut@gmail.com> References: <20190309005613.1493-1-marek.vasut@gmail.com> 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 unsigned long with u32 in register accessor functions, since they access 32bit registers. 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: Niklas Söderlund Reviewed-by: Geert Uytterhoeven --- drivers/pci/controller/pcie-rcar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pci/controller/pcie-rcar.c b/drivers/pci/controller/pcie-rcar.c index 5b8736f0cd6b..1408c8aa758b 100644 --- a/drivers/pci/controller/pcie-rcar.c +++ b/drivers/pci/controller/pcie-rcar.c @@ -152,14 +152,12 @@ struct rcar_pcie { struct rcar_msi msi; }; -static void rcar_pci_write_reg(struct rcar_pcie *pcie, unsigned long val, - unsigned long reg) +static void rcar_pci_write_reg(struct rcar_pcie *pcie, u32 val, u32 reg) { writel(val, pcie->base + reg); } -static unsigned long rcar_pci_read_reg(struct rcar_pcie *pcie, - unsigned long reg) +static u32 rcar_pci_read_reg(struct rcar_pcie *pcie, u32 reg) { return readl(pcie->base + reg); }