From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Lifshitz Date: Tue, 16 Dec 2014 08:50:17 +0200 Subject: [U-Boot] [PATCH 4/5] arm: omap: reset sata on boot In-Reply-To: <20141215170040.GB20704@bill-the-cat> References: <1418652179-15311-1-git-send-email-lifshitz@compulab.co.il> <1418652179-15311-5-git-send-email-lifshitz@compulab.co.il> <20141215170040.GB20704@bill-the-cat> Message-ID: <548FD629.2080103@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > 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