11 Aug, 2016
1 commit
-
Despite ST AHCI version = 1.3, reading HOST_PORTS_IMPL
returns 0. So force_port_map to 1 by using ports-implemented
DT property.Signed-off-by: Patrice Chotard
Signed-off-by: Tejun Heo
21 Apr, 2015
1 commit
-
Brian noticed while working on another SATA driver that uses libahci_platform,
an error in this driver; it tries to the the driver data for its
device, while libata also thinks it can set the driver data. See:ahci_platform_init_host()
-> ata_host_alloc_pinfo()
-> ata_host_alloc()
-> dev_set_drvdata()So instead of sticking the IP-specific platform data into drvdata, let's
use the plat_data variable that is reserved for this use.Addtionally plat_data isn't set until ahci_platform_init_host() has been
called further down in probe(). So re-work the st_ahci_probe_resets and
st_ahci_deassert_resets functions to take ahci_host_priv *hpriv as a
parameter.Signed-off-by: Peter Griffin
Suggested-by: Brian Norris
Cc: Srinivas Kandagatla
Cc: Maxime Coquelin
Cc: Patrice Chotard
Signed-off-by: Tejun Heo
02 Apr, 2015
1 commit
-
Currently the ahci_st driver will hang the system on probe, as the
st_configure_oob function does some register writes before the IP
is clocked. This patch moves the function call to after
ahci_platform_enable_resources (which enables the IP clock), and
resolves the hang.Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
function, so we also rectify that ensuring it is also called after
the IP clock has been enabled.Signed-off-by: Peter Griffin
Acked-by: Lee Jones
Acked-by: Maxime Coquelin
Signed-off-by: Tejun Heo
29 Jan, 2015
1 commit
-
The owner module reference of the ahci platform's scsi_host is
initialized to libahci_platform's one, because these drivers use a
scsi_host_template defined in libahci_platform. So these drivers can
be unloaded even if the scsi device is being accessed.This fixes it by pushing the scsi_host_template from libahci_platform
to all leaf drivers. The scsi_host_template is passed through a new
argument of ahci_platform_init_host().Signed-off-by: Akinobu Mita
Signed-off-by: Tejun Heo
Cc: Hans de Goede
Cc: Christoph Hellwig
Cc: "James E.J. Bottomley"
Cc: linux-ide@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
20 Oct, 2014
1 commit
-
A platform_driver does not need to set an owner, it will be populated by the
driver core.Signed-off-by: Wolfram Sang
31 Jul, 2014
1 commit
-
This patch moves force_port_map and mask_port_map into the
ahci_host_priv structure. This allows to modify them into the AHCI
framework. This is needed by the new dt bindings representing ports as
the port_map mask is computed automatically.Parameters modifying force_port_map, mask_port_map and flags have been
removed from the ahci_platform_init_host() function, and inputs in the
ahci_host_priv structure are now directly filed.Signed-off-by: Antoine Ténart
Signed-off-by: Tejun Heo
22 Jul, 2014
1 commit
-
Make of_device_id array const, because all OF functions handle it as const.
Signed-off-by: Kiran Padwal
Acked-by: Lee Jones
Signed-off-by: Tejun Heo
15 May, 2014
1 commit
-
Add a dynamic host_flags argument to make ahci_platform_init_host more flexible,
then remove the AHCI_HFLAGS(...) argument from some driver's ata_port_info,
and pass that in as the new argument.Cc: Hans de Geode
Reviewed-by: Hans de Goede
Signed-off-by: Kefeng Wang
Signed-off-by: Tejun Heo
15 Mar, 2014
2 commits
-
struct ahci_platform_data is deprecated (please see comments in
for details). Convert ahci_st driver to
use custom ->host_stop method instead.Signed-off-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Tejun Heo -
* The config option for ahci_st driver was renamed from
CONFIG_SATA_AHCI_ST to CONFIG_AHCI_ST but Makefile was
not updated. Fix it (also while at it move the ahci_st
driver entry below ahci_imx and ahci_sunxi ones).* Fix a few build issues in the ahci_st driver itself.
Signed-off-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Tejun Heo
14 Mar, 2014
5 commits
-
This is where we disable IRQs on suspend and update the internal
power state during suspend/resume.Suggested-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Lee Jones
Signed-off-by: Tejun Heo -
ata_platform_remove_one() allows us to specify our own exit function
via platform data then goes off and removes ATA Host and Port in
preparation for device removal.Suggested-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Lee Jones
Signed-off-by: Tejun Heo -
Suggested-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Lee Jones
Signed-off-by: Tejun Heo -
Other devices have adopted similar naming conventions which have been
accepted as the standard. This patch brings any mention of the the ST
AHCI driver into line with them.Suggested-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Lee Jones
Signed-off-by: Tejun Heo -
Acked-by: Alexandre Torgue
Signed-off-by: Lee Jones
Signed-off-by: Tejun Heo