From: Tom Rini Date: Sun, 15 Jan 2017 13:32:35 -0500 Subject: [U-Boot] cmd: sata: fix init command return value In-Reply-To: <20170111155153.21311-1-gary.bisson@boundarydevices.com> References: <20170111155153.21311-1-gary.bisson@boundarydevices.com> Message-ID: <20170115183235.GM19689@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jan 11, 2017 at 04:51:53PM +0100, Gary Bisson wrote: > Since commit aa6ab905b2, sata_initialize returns -1 if init_sata or > scan_sata fails. But this return value becomes the do_sata return > value which is equivalent to CMD_RET_USAGE. > > In case one issues 'sata init' and that the hardware fails to > initialize, there's no need to display the command usage. Instead > the command shoud just return the CMD_RET_FAILURE value. > > Fixes: aa6ab905b2 (sata: fix sata command can not being executed bug) > > Signed-off-by: Gary Bisson > Reviewed-by: Eric Nelson > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: