11 Aug, 2016

1 commit


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

    Peter Griffin
     

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

    Peter Griffin
     

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

    Akinobu Mita
     

20 Oct, 2014

1 commit


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

    Antoine Ténart
     

22 Jul, 2014

1 commit


15 May, 2014

1 commit


15 Mar, 2014

2 commits


14 Mar, 2014

5 commits