22 Aug, 2018

1 commit

  • Add an extra argument to ahci_platform_get_resources(), that is
    for the bitmap representing the resource to get in this function.

    Currently there is no resources to be defined, so all the callers set
    '0' to the argument.

    Suggested-by: Hans de Goede
    Cc: Thierry Reding
    Cc: Matthias Brugger
    Cc: Patrice Chotard
    Cc: Maxime Ripard
    Signed-off-by: Kunihiko Hayashi
    Reviewed-by: Hans de Goede
    Signed-off-by: Tejun Heo

    Kunihiko Hayashi
     

16 Aug, 2017

1 commit


31 Jan, 2017

5 commits

  • All platforms using this driver now register the SATA refclk. Remove
    the hardcoded default value from the driver and instead read the rate
    of the external clock and calculate the required MPY value from it.

    Signed-off-by: Bartosz Golaszewski
    Acked-by: Tejun Heo
    [nsekhar@ti.com: fix checkpatch warning about an unneeded else]
    Signed-off-by: Sekhar Nori

    Bartosz Golaszewski
     
  • We have a use case with the da850 SATA controller where at PLL0
    frequency of 456MHz (needed to properly service the LCD controller)
    the chip becomes unstable and the hardreset operation is ignored the
    first time 50% of times.

    The sata core driver already retries to resume the link because some
    controllers ignore writes to the SControl register, but just retrying
    the resume operation doesn't work - we need to issue he phy/wake reset
    again to make it work.

    Reimplement ahci_hardreset() in the driver and poke the controller a
    couple times before really giving up.

    Signed-off-by: Bartosz Golaszewski
    Acked-by: Tejun Heo
    Signed-off-by: Sekhar Nori

    Bartosz Golaszewski
     
  • There's an issue with the da850 SATA controller: if port multiplier
    support is compiled in, but we're connecting the drive directly to
    the SATA port on the board, the drive can't be detected.

    To make SATA work on the da850-lcdk board: first try to softreset
    with pmp - if the operation fails with -EBUSY, retry without pmp.

    Signed-off-by: Bartosz Golaszewski
    Acked-by: Tejun Heo
    Signed-off-by: Sekhar Nori

    Bartosz Golaszewski
     
  • We're using device tree for da850-lcdk. Add the match table to allow
    to probe the driver.

    Signed-off-by: Bartosz Golaszewski
    Acked-by: Tejun Heo
    Signed-off-by: Sekhar Nori

    Bartosz Golaszewski
     
  • In preparation for using two clocks in the driver (the sysclk2-based
    clock and the external REFCLK), check if we got the functional clock
    after calling ahci_platform_get_resources(). If not, retry calling
    clk_get() with con_id specified.

    Signed-off-by: Bartosz Golaszewski
    Acked-by: Tejun Heo
    Signed-off-by: Sekhar Nori

    Bartosz Golaszewski
     

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
     

15 May, 2014

1 commit


26 Mar, 2014

1 commit

  • Add the new ahci_da850 host driver.

    Platform changes needed to make DaVinci DA850 SATA AHCI support
    fully functional are in the separate "ARM: davinci: da850: update
    SATA AHCI support" commit.

    Please note that this driver doesn't have the superfluous clock
    control code as clock is already handled by the generic AHCI
    platform library code.

    Cc: Sekhar Nori
    Cc: Kevin Hilman
    Cc: Hans de Goede
    Signed-off-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: Tejun Heo

    Bartlomiej Zolnierkiewicz