[U-Boot] [PATCH 4/5] arm: omap: reset sata on boot

Dmitry Lifshitz lifshitz at compulab.co.il
Tue Dec 16 07:50:17 CET 2014


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 at 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


More information about the U-Boot mailing list