[U-Boot] [PATCH 2/5] ahci-plat: provide a weak scsi_bus_reset() hook

Dmitry Lifshitz lifshitz at compulab.co.il
Mon Dec 15 15:02:56 CET 2014


This allow the platform to handle a custom reset sequence.

Signed-off-by: Dmitry Lifshitz <lifshitz at compulab.co.il>
---
 drivers/block/ahci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index 12ed5e3..37d2d2a 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -1010,12 +1010,11 @@ static int ata_io_flush(u8 port)
 }
 
 
-void scsi_bus_reset(void)
+__weak void scsi_bus_reset(void)
 {
 	/*Not implement*/
 }
 
-
 void scsi_print_error(ccb * pccb)
 {
 	/*The ahci error info can be read in the ahci driver*/
-- 
1.7.5.4



More information about the U-Boot mailing list