History log of /rk3399_rockchip-uboot/drivers/scsi/scsi.c (Results 1 – 20 of 20)
Revision Date Author Comments
# 55431405 12-Jun-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

scsi: the maximum read and write limit for UFS is 32MB

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I801d9c0a9cf32d6379a7436e3a0c01fd2fbfc0c0


# e36090fd 20-May-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

scsi: remove data erase function for sata devices

The sata devices not support data erase yet.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I70de4ff06f3d11f0f7053e243ba189a5c6

scsi: remove data erase function for sata devices

The sata devices not support data erase yet.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I70de4ff06f3d11f0f7053e243ba189a5c65785b4

show more ...


# 32d06e10 20-May-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

scsi: fix capacity calculate for ufs and sata devices

The capacity obtained by UFS devices needs to be increased by one.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I2eadd38a

scsi: fix capacity calculate for ufs and sata devices

The capacity obtained by UFS devices needs to be increased by one.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I2eadd38a4b0322330c3325e61ee8b898b070f1a6

show more ...


# 63a7b5a0 20-Mar-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

scsi: add unmap ops for ufs

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I6962e3927877dc59f39dd1c04e82c5dfc2b4f457


# 55d11a71 04-Mar-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: scsi: synchronize the SCSI INQUIRY configuration from linux kernel

Set SCSI_MAX_INQUIRY_BYTES = 96 to compatible with some UFS devices.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.c

drivers: scsi: synchronize the SCSI INQUIRY configuration from linux kernel

Set SCSI_MAX_INQUIRY_BYTES = 96 to compatible with some UFS devices.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I354d361569861ccb8c52528a37780241d22fa1d4

show more ...


# 52f5f55e 27-Feb-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: scsi: support non aligned access for 4K block size device

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: If299f7f01a925742b5e188ec9d8af2b7920b706a


# 8f7de514 02-Feb-2023 Shawn Lin <shawn.lin@rock-chips.com>

ufs: backport ufs from upstream

Add ufs directory and cover some SCSI interface to fit for current
SCSI model.

Change-Id: I24c13fc494b1596905d9397a551b10f965dcb4dd
Signed-off-by: Shawn Lin <shawn.l

ufs: backport ufs from upstream

Add ufs directory and cover some SCSI interface to fit for current
SCSI model.

Change-Id: I24c13fc494b1596905d9397a551b10f965dcb4dd
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...


# 018f5303 03-Aug-2017 Simon Glass <sjg@chromium.org>

env: Rename common functions related to setenv()

We are now using an env_ prefix for environment functions. Rename these
commonly used functions, for consistency. Also add function comments in
commo

env: Rename common functions related to setenv()

We are now using an env_ prefix for environment functions. Rename these
commonly used functions, for consistency. Also add function comments in
common.h.

Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 5c6631be 01-Aug-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-mmc


# c4d660d4 04-Jul-2017 Simon Glass <sjg@chromium.org>

dm: mmc: Allow disabling driver model in SPL

At present if U-Boot proper uses driver model for MMC, then SPL has to
also. While this is desirable, it places a significant barrier to moving
to driver

dm: mmc: Allow disabling driver model in SPL

At present if U-Boot proper uses driver model for MMC, then SPL has to
also. While this is desirable, it places a significant barrier to moving
to driver model in some cases. For example, with a space-constrained SPL
it may be necessary to enable CONFIG_SPL_OF_PLATDATA which involves
adjusting some drivers.

Add new SPL versions of the options for DM_MMC, DM_MMC_OPS and BLK. By
default these follow their non-SPL versions, but this can be changed by
boards which need it.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 8d3a2568 12-Jul-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


# 7337fcd8 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Drop scsi_init() when driver model is used

This function should not be used with driver model. Update the code to
reflect this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by:

dm: scsi: Drop scsi_init() when driver model is used

This function should not be used with driver model. Update the code to
reflect this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 5c561763 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Split out the bus scanning code

Split out the code that scans a single SCSI bus into a separate function.
This will allow it to be used from driver model.

Signed-off-by: Simon Glass <sjg@

dm: scsi: Split out the bus scanning code

Split out the code that scans a single SCSI bus into a separate function.
This will allow it to be used from driver model.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# f6580ef3 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Adjust return value of scsi_exec()

Change this function to return an error number instead of true/false.
This allows us to return a proper error number.

Signed-off-by: Simon Glass <sjg@ch

dm: scsi: Adjust return value of scsi_exec()

Change this function to return an error number instead of true/false.
This allows us to return a proper error number.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 8eab1a58 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Document and rename the scsi_scan() parameter

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, ad

dm: scsi: Document and rename the scsi_scan() parameter

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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 4682c8a1 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset()

With driver model these functions need a device pointer. Add one even
when CONFIG_DM_SCSI is not defined. This avoids having ugly cond

dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset()

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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 099c239d 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Indent the confusing #ifdefs

These are very confusing without some sort of indentation. At some point
we will be able to remove them, but for now, indent them.

Signed-off-by: Simon Glass

dm: scsi: Indent the confusing #ifdefs

These are very confusing without some sort of indentation. At some point
we will be able to remove them, but for now, indent them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 1dc64f6c 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Use the uclass platform data

At present the two driver-model SCSI drivers use device platform data to
store information that relates to the uclass. It is better to use uclass
platform data

dm: scsi: Use the uclass platform data

At present the two driver-model SCSI drivers use device platform data to
store information that relates to the uclass. It is better to use uclass
platform data in this situation. Update the code to do this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# b9560ad6 15-Jun-2017 Simon Glass <sjg@chromium.org>

dm: scsi: Drop the ccb typedef

We should not be using typedefs in U-Boot and 'ccb' is a pretty short
name. It is also used with variables. Drop the typedef and use 'struct'
instead.

Signed-off-by:

dm: scsi: Drop the ccb typedef

We should not be using typedefs in U-Boot and 'ccb' is a pretty short
name. It is also used with variables. Drop the typedef and use 'struct'
instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 0fcd48fe 15-Jun-2017 Simon Glass <sjg@chromium.org>

scsi: Move drivers into new drivers/scsi directory

At present we have the SCSI drivers in the drivers/block and common/
directories. It is better to split them out into their own place. Use
drivers/

scsi: Move drivers into new drivers/scsi directory

At present we have the SCSI drivers in the drivers/block and common/
directories. It is better to split them out into their own place. Use
drivers/scsi which is what Linux does.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...