linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC v3 00/13] ahci: add sunxi driver and cleanup imx driver
@ 2014-01-18 23:48 Hans de Goede
  2014-01-18 23:48 ` [RFC v3 01/13] libahci: Allow drivers to override start_engine Hans de Goede
                   ` (13 more replies)
  0 siblings, 14 replies; 56+ messages in thread
From: Hans de Goede @ 2014-01-18 23:48 UTC (permalink / raw)
  To: linux-arm-kernel

Hi All,

Here is v3 of my patchset for adding ahci-sunxi support. It has grown quite
a bit since I've been going for a more generic approach this time and I've
also cleaned up the ahci-imx driver to use the same generic approach.

History:

v1, by Olliver Schinagl:
This was using the approach of having a platform device which probe method
creates a new child platform device which gets driven by ahci_platform.c,
as done by ahci_imx.c .

v2, by Hans de Goede:
Stand-alone platform driver based on Olliver's work

v3, by Hans de Goede:
patch-series, with 4 different parts
a) Make ahci_platform.c more generic, handle more then 1 clk, target pwr
   regulator
b) New ahci-sunxi code only populating ahci_platform_data, passed to
   ahci_platform.c to of_device_id matching.
c) Refactor ahci-imx code to work the same as the new ahci-sunxi code, this
   is the reason why v3 is an RFC, I'm waiting for the wandboard I ordered to
   arrive so that I can actually test this.
d) dts bindings for the sunxi ahci parts

Parts a-c are intended for merging through the ata tree, the dts bindings
will be merged to Maxime Ripard's sunxi-dts tree.

I hope people like the new approach for dealing with of drivers which need
to provide ahci_platform_data. An alternate approach would be to export
ahci_probe (renamed to ahci_platform_probe) from ahci_platform.c, then
ahci_sunxi.c could have a probe function like this:

int ahci_sunxi_probe(struct platform_device *pdev) {
    pdev->dev.platform_data = &ahci_sunxi_pdata;
    return ahci_platform_probe(pdev);
}

And then each of ahci_platform, ahci_sunxi and ahci_imx could be its own
module (if build as module) rather then all of them being build into one
module.

Regards,

Hans

^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2014-01-20 12:28 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18 23:48 [RFC v3 00/13] ahci: add sunxi driver and cleanup imx driver Hans de Goede
2014-01-18 23:48 ` [RFC v3 01/13] libahci: Allow drivers to override start_engine Hans de Goede
2014-01-19  4:46   ` Tejun Heo
2014-01-19 18:48     ` Hans de Goede
2014-01-18 23:48 ` [RFC v3 02/13] sata-highbank: Remove unnecessary ahci_platform.h include Hans de Goede
2014-01-19 11:15   ` Tejun Heo
2014-01-18 23:48 ` [RFC v3 03/13] ahci-platform: Fix clk enable/disable unbalance on suspend/resume Hans de Goede
2014-01-19 11:14   ` Tejun Heo
2014-01-19 18:47     ` Hans de Goede
2014-01-19 19:15       ` Tejun Heo
2014-01-19 19:52         ` Hans de Goede
2014-01-20 12:26           ` Tejun Heo
2014-01-18 23:48 ` [RFC v3 04/13] ahci-platform: Undo pdata->resume on resume failure Hans de Goede
2014-01-19 11:27   ` Tejun Heo
2014-01-19 18:40     ` Hans de Goede
2014-01-19 19:13       ` Tejun Heo
2014-01-19 19:34         ` Hans de Goede
2014-01-19 19:42           ` Tejun Heo
2014-01-19 19:53             ` Hans de Goede
2014-01-18 23:48 ` [RFC v3 05/13] ahci-platform: Pass ahci_host_priv ptr to ahci_platform_data init method Hans de Goede
2014-01-19 11:30   ` Tejun Heo
2014-01-19 18:51     ` Hans de Goede
2014-01-19 19:17       ` Tejun Heo
2014-01-19 19:56         ` Hans de Goede
2014-01-20 12:28           ` Tejun Heo
2014-01-18 23:48 ` [RFC v3 06/13] ahci-platform: Add support for devices with more then 1 clock Hans de Goede
2014-01-19 12:38   ` Russell King - ARM Linux
2014-01-19 19:20     ` Hans de Goede
2014-01-18 23:48 ` [RFC v3 07/13] ahci-platform: Add support for an optional regulator for sata-target power Hans de Goede
2014-01-18 23:48 ` [RFC v3 08/13] ahci-platform: Allow specifying platform_data through of_device_id Hans de Goede
2014-01-19 11:38   ` Tejun Heo
2014-01-19 12:30     ` Russell King - ARM Linux
2014-01-19 13:19       ` Tejun Heo
2014-01-19 18:56     ` Hans de Goede
2014-01-19 19:22       ` Tejun Heo
2014-01-20  8:24   ` Sascha Hauer
2014-01-20  8:35     ` Hans de Goede
2014-01-20  9:09       ` Sascha Hauer
2014-01-20  9:17         ` Hans de Goede
2014-01-20  9:57           ` Sascha Hauer
2014-01-18 23:48 ` [RFC v3 09/13] ARM: sunxi: Add support for Allwinner SUNXi SoCs sata to ahci_platform Hans de Goede
2014-01-19 12:22   ` Russell King - ARM Linux
2014-01-19 19:07     ` Hans de Goede
2014-01-19 19:56       ` Russell King - ARM Linux
2014-01-19 20:01         ` Hans de Goede
2014-01-18 23:48 ` [RFC v3 10/13] ahci_imx: Adjust for ahci_platform managing the clocks Hans de Goede
2014-01-19 12:41   ` Russell King - ARM Linux
2014-01-19 19:30     ` Hans de Goede
2014-01-19 19:32       ` Russell King - ARM Linux
2014-01-19 19:38         ` Hans de Goede
2014-01-18 23:48 ` [RFC v3 11/13] ahci-imx: Don't create a nested platform device from probe Hans de Goede
2014-01-19 12:25   ` Russell King - ARM Linux
2014-01-19 19:08     ` Hans de Goede
2014-01-18 23:48 ` [RFC v3 12/13] ARM: sun4i: dts: Add ahci / sata support Hans de Goede
2014-01-18 23:48 ` [RFC v3 13/13] ARM: sun7i: " Hans de Goede
2014-01-19  9:52 ` [RFC v3 00/13] ahci: add sunxi driver and cleanup imx driver Russell King - ARM Linux

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).