Skip to contentSkip to conversation

ata: fix Marvell SATA driver dependencies

PATCH Superseded Bartlomiej Zolnierkiewicz 4 participants 7 messages Mar 26, 2014 libata

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: fix Marvell SATA driver dependencies

Make sata_mv host driver depend on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X config options as Marvell SATA support covers both Marvell PCI devices and Marvell Kirkwood, Armada 370/XP and Orion5x SoCs (for non-PCI devices the driver to work requires suitable device tree node to be defined). Additionally allow the driver build if COMPILE_TEST config option is set.

Cc Jason Cooper <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Gregory Clement <[email protected]>
Cc Sebastian Hesselbarth <[email protected]>
---
 drivers/ata/Kconfig |    2 ++
 1 file changed, 2 insertions(+)
drivers/ata/Kconfig +2 -0
Index: b/drivers/ata/Kconfig
===================================================================
@@ -273,6 +273,8 @@ config SATA_HIGHBANK
 
 config SATA_MV
 	tristate "Marvell SATA support"
+	depends on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X || \
+		   COMPILE_TEST
 	select GENERIC_PHY
 	help
 	  This option enables support for the Marvell Serial ATA family.
#1 lore raw
Quoted 6 lines · Bartlomiej Zolnierkiewicz

Make sata_mv host driver depend on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X config options as Marvell SATA support covers both Marvell PCI devices and Marvell Kirkwood, Armada 370/XP and Orion5x SoCs (for non-PCI devices the driver to work requires suitable device tree node to be defined). Additionally allow the driver build if COMPILE_TEST config option is set.

Hi Bartlomiej

I _think_ there are a few powerpc platforms which can also make use of this driver.

Andrew

#6 lore raw
In reply to Bartlomiej Zolnierkiewicz
Quoted 7 lines · Bartlomiej Zolnierkiewicz

Make sata_mv host driver depend on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X config options as Marvell SATA support covers both Marvell PCI devices and Marvell Kirkwood, Armada 370/XP and Orion5x SoCs (for non-PCI devices the driver to work requires suitable device tree node to be defined). Additionally allow the driver build if COMPILE_TEST config option is set.

Quoted 5 lines
Cc Jason Cooper <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Gregory Clement <[email protected]>
Cc Sebastian Hesselbarth <[email protected]>

Patch doesn't apply to libata/for-3.15.

Thanks.

Signature · 1 line
tejun
#2 lore raw
In reply to Andrew Lunn

Hi,

Quoted 8 lines · Andrew Lunn
Quoted 6 lines · Bartlomiej Zolnierkiewicz

Make sata_mv host driver depend on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X config options as Marvell SATA support covers both Marvell PCI devices and Marvell Kirkwood, Armada 370/XP and Orion5x SoCs (for non-PCI devices the driver to work requires suitable device tree node to be defined). Additionally allow the driver build if COMPILE_TEST config option is set.

Quoted 4 lines

Hi Bartlomiej

I _think_ there are a few powerpc platforms which can also make use of this driver.

Currently no powerpc platform uses this driver for non-PCI devices and looking at commits history for powerpc dts files it seems that it also hasn't happened in the past.

I think that the current patch is sufficient as we can always relax dependencies later if the need for it shows up + there is a possibility to (ab)use COMPILE_TEST for older kernels.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

#3 lore raw
In reply to Andrew Lunn
Quoted 8 lines · On Wed, 26 Mar 2014 17:23:02 +0100 Andrew Lunn <[email protected]> wrote:
Quoted 6 lines · Bartlomiej Zolnierkiewicz

Make sata_mv host driver depend on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X config options as Marvell SATA support covers both Marvell PCI devices and Marvell Kirkwood, Armada 370/XP and Orion5x SoCs (for non-PCI devices the driver to work requires suitable device tree node to be defined). Additionally allow the driver build if COMPILE_TEST config option is set.

Quoted 4 lines

Hi Bartlomiej

I _think_ there are a few powerpc platforms which can also make use of this driver

The hardware can show up in just about anything so I think this patch should be dropped

#4 lore raw

Hi,

Quoted 11 lines · One Thousand Gnomes
Quoted 8 lines · On Wed, 26 Mar 2014 17:23:02 +0100 Andrew Lunn <[email protected]> wrote:
Quoted 6 lines · Bartlomiej Zolnierkiewicz

Make sata_mv host driver depend on PCI || ARCH_KIRKWOOD || ARCH_MVEBU || ARCH_ORION5X config options as Marvell SATA support covers both Marvell PCI devices and Marvell Kirkwood, Armada 370/XP and Orion5x SoCs (for non-PCI devices the driver to work requires suitable device tree node to be defined). Additionally allow the driver build if COMPILE_TEST config option is set.

Quoted 7 lines
Quoted 4 lines

Hi Bartlomiej

I _think_ there are a few powerpc platforms which can also make use of this driver

The hardware can show up in just about anything so I think this patch should be dropped

In theory maybe but in practice it for sure won't show up if the vendor has its own SATA solution and at least in the ARM world it seems frequent to have its own AHCI variant nowadays. Moreover even if the new usage shows up it is not enough to enable driver for it to make it work as you also need to add a node describing your SATA MV variant to your SoC device tree file (which requires updating kernel source anyway).

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

#5 lore raw
Quoted 3 lines

shows up it is not enough to enable driver for it to make it work as you also need to add a node describing your SATA MV variant to your SoC device tree file (which requires updating kernel source anyway).

You still have to recompile your kernel to update your device tree.. how... quaint ;-). It's not a generic limitation but I'm not that fussed. It seems a fair argument that there would be other changes made when this was being done for a system, and probably new board stuff.

Alan