
16 Dec
2014
16 Dec
'14
7:50 a.m.
Hi Tom,
On 12/15/2014 07:00 PM, Tom Rini wrote:
On Mon, Dec 15, 2014 at 04:02:58PM +0200, Dmitry Lifshitz wrote:
On OMAP platforms (like OMAP5) Linux kernel fails to detect a SATA device if it is used by U-Boot.
It happens because U-Boot does not reset SATA controller before boot.
Reset the controller on OS boot so that Linux will have a clean state to work with.
Signed-off-by: Dmitry Lifshitz lifshitz@compulab.co.il
To be clear, since we're using CMD_SCSI and not CMD_SATA is why we need this reset sequence here instead of the sata_stop() that say i.MX uses.
You are right, sata_stop() can be used here.
Unfortunately, OMAP SATA access is implemented via SCSI, so I managed to implement this workaround.
Regards,
Dmitry