[U-Boot] [PATCH] SATA: do not auto-initialize during boot

Scott Wood scottwood at freescale.com
Fri Dec 12 01:15:06 CET 2008


Mike Frysinger wrote:
> On Thursday 11 December 2008 18:53:00 Wolfgang Denk wrote:
>> And if they do, the code should fail gracefully, i. e. print some
>> friendly error message like that S-ATA is not available.
> 
> in this case, i think that's up to the controller.  i.e. the controller doesnt 
> find anything and you get a message that nothing was found.
> 
> i dont have a board to test with to know what will happen exactly, nor does 
> the current code make any statement that i can see.  Scott ?

IIUC, if it's "not available" the driver will still see the controller 
regs, but it will be trying to control pins that are actually routed to 
another device.  That said, it should be the driver calling into 
SoC-specific code to find out, rather than a global SATA-blocker (what 
if a PCIe SATA card were used?).

-Scott


More information about the U-Boot mailing list