17 Aug, 2017
1 commit
-
Instead of having separate code in the 'scsi' command, adjust it to use
the common function.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
29 Jul, 2017
1 commit
-
During 'scsi reset', scsi_bus_reset() is called with udevice pointed
to NULL, which causes exception. As a temporary fix, disable the call
for DM SCSI for now.Signed-off-by: Bin Meng
Reviewed-by: Simon Glass
12 Jul, 2017
2 commits
-
The 'mode' parameter is actually a flag to determine whether to display
a list of devices found during the scan. Rename it to reflect this, add a
function comment and adjust callers to use a boolean.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
With driver model these functions need a device pointer. Add one even
when CONFIG_DM_SCSI is not defined. This avoids having ugly conditional
function prototypes, When CONFIG_DM_SCSI is not defined we can just ignore
the pointer.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
02 Dec, 2016
2 commits
-
Two functions should be static because they are not exported to any
other file.
Warnings were reported by sparse C=1.Signed-off-by: Michal Simek
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
With DM_SCSI this function will return more than one return value to
cover errors.Suggested-by: Simon Glass
Signed-off-by: Michal Simek
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
17 May, 2016
3 commits
-
At present the SCSI command code includes both the command-processing code
and the core SCSI functions and data structures.Separate the latter into its own file, adding functions as needed to avoid
the command code accessing data structures directly. This functions use the
new legacy block functions.With this commit:
- There is no CONFIG option referenced from the command code
- The concept of a 'current SCSI device' is confined to the command codeThis will make it easier to convert this code to driver model.
Signed-off-by: Simon Glass
-
Update the code style of this file so that it passes checkpatch.pl.
Signed-off-by: Simon Glass
-
Reorder the code to avoid needing forward declarations.
Signed-off-by: Simon Glass
17 Mar, 2016
1 commit
-
When we switch to including all linker lists in SPL it is important
to not include commands as that may lead to link errors due to other
things we have already discarded. In this case, the SCSI code needs a lot
of attention so for now just guard the command portions.Signed-off-by: Tom Rini
15 Mar, 2016
3 commits
-
This is a device number, and we want to use 'dev' to mean a driver model
device. Rename the member.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren -
Rename three partition functions so that they start with part_. This makes
it clear what they relate to.Signed-off-by: Simon Glass
Tested-by: Stephen Warren -
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
and causes 80-column violations, rename it to struct blk_desc.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren
25 Jan, 2016
1 commit
-
Now that they are in their own directory, we can remove this prefix.
This makes it easier to find a file since the prefix does not get in the
way.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Reviewed-by: Heiko Schocher
Acked-by: Stefan Roese
Acked-by: Przemyslaw Marczak