diff mbox

[U-Boot,3/5] OMAP5+: sata/scsi: implement scsi_bus_reset()

Message ID 1418652179-15311-4-git-send-email-lifshitz@compulab.co.il
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Dmitry Lifshitz Dec. 15, 2014, 2:02 p.m. UTC
Implement missing scsi_bus_reset() for SCSI subsystem commands
on OMAP platforms.

Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
---
 arch/arm/cpu/armv7/omap-common/sata.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Tom Rini Dec. 15, 2014, 5 p.m. UTC | #1
On Mon, Dec 15, 2014 at 04:02:57PM +0200, Dmitry Lifshitz wrote:

> Implement missing scsi_bus_reset() for SCSI subsystem commands
> on OMAP platforms.
> 
> Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>

Reviewed-by: Tom Rini <trini@ti.com>
Tom Rini Jan. 7, 2015, 3:12 p.m. UTC | #2
On Mon, Dec 15, 2014 at 04:02:57PM +0200, Dmitry Lifshitz wrote:

> Implement missing scsi_bus_reset() for SCSI subsystem commands
> on OMAP platforms.
> 
> Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
> Reviewed-by: Tom Rini <trini@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/cpu/armv7/omap-common/sata.c b/arch/arm/cpu/armv7/omap-common/sata.c
index a24baa1..d18bc50 100644
--- a/arch/arm/cpu/armv7/omap-common/sata.c
+++ b/arch/arm/cpu/armv7/omap-common/sata.c
@@ -85,3 +85,9 @@  void scsi_init(void)
 	init_sata(0);
 	scsi_scan(1);
 }
+
+void scsi_bus_reset(void)
+{
+	ahci_reset(DWC_AHSATA_BASE);
+	ahci_init(DWC_AHSATA_BASE);
+}