From: Rob Herring <robh@kernel.org>
To: Damien Le Moal <dlemoal@kernel.org>,
Sergey Shtylyov <s.shtylyov@omp.ru>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-ide@vger.kernel.org, linux-mips@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] ata: octeon: Add compile test support
Date: Wed, 14 Jun 2023 11:36:33 -0600 [thread overview]
Message-ID: <20230614173633.2430653-2-robh@kernel.org> (raw)
In-Reply-To: <20230614173633.2430653-1-robh@kernel.org>
Add COMPILE_TEST to enable building Cavium Octeon drivers in MIPS
allyesconfig/allmodconfig builds. There's a dependency on MIPS headers,
so other arches can't be enabled.
Signed-off-by: Rob Herring <robh@kernel.org>
---
Tested on allmodconfig build. Not sure if there's other MIPS configs
where this doesn't work. We'll see what 0-day says.
drivers/ata/Kconfig | 4 ++--
drivers/ata/pata_octeon_cf.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 42b51c9812a0..4572f837e504 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -239,7 +239,7 @@ config AHCI_MVEBU
config AHCI_OCTEON
tristate "Cavium Octeon Soc Serial ATA"
- depends on SATA_AHCI_PLATFORM && CAVIUM_OCTEON_SOC
+ depends on SATA_AHCI_PLATFORM && MIPS && (CAVIUM_OCTEON_SOC || COMPILE_TEST)
default y
help
This option enables support for Cavium Octeon SoC Serial ATA.
@@ -373,7 +373,7 @@ config PDC_ADMA
config PATA_OCTEON_CF
tristate "OCTEON Boot Bus Compact Flash support"
- depends on CAVIUM_OCTEON_SOC
+ depends on MIPS && (CAVIUM_OCTEON_SOC || COMPILE_TEST)
select PATA_TIMINGS
help
This option enables a polled compact flash driver for use with
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 57b2166a6d5d..cc9e4b63ded9 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -853,8 +853,8 @@ static int octeon_cf_probe(struct platform_device *pdev)
of_node_put(dma_node);
return -EINVAL;
}
- cf_port->dma_base = (u64)devm_ioremap(&pdev->dev, res_dma->start,
- resource_size(res_dma));
+ cf_port->dma_base = (uintptr_t)devm_ioremap(&pdev->dev, res_dma->start,
+ resource_size(res_dma));
if (!cf_port->dma_base) {
put_device(&dma_dev->dev);
of_node_put(dma_node);
--
2.39.2
next prev parent reply other threads:[~2023-06-14 17:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-14 17:36 [PATCH 1/2] MIPS: octeon: Fix cvmx_writeq_csr/cvmx_readq_csr on 32-bit builds Rob Herring
2023-06-14 17:36 ` Rob Herring [this message]
2023-06-15 0:45 ` [PATCH 2/2] ata: octeon: Add compile test support Damien Le Moal
2023-06-16 2:08 ` Damien Le Moal
2023-06-21 16:51 ` Guenter Roeck
2023-06-22 0:57 ` Damien Le Moal
2023-06-22 3:01 ` Guenter Roeck
2023-06-22 4:26 ` Damien Le Moal
2023-06-22 5:10 ` Guenter Roeck
2023-06-22 13:41 ` Rob Herring
2023-06-22 21:52 ` Damien Le Moal
2023-06-15 9:11 ` [PATCH 1/2] MIPS: octeon: Fix cvmx_writeq_csr/cvmx_readq_csr on 32-bit builds Thomas Bogendoerfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230614173633.2430653-2-robh@kernel.org \
--to=robh@kernel.org \
--cc=dlemoal@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=s.shtylyov@omp.ru \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).