History log of /rk3399_rockchip-uboot/drivers/block/blk-uclass.c (Results 1 – 25 of 49)
Revision Date Author Comments
# c96f14bd 21-Apr-2025 Joseph Chen <chenjh@rock-chips.com>

dm: blk: Add uspinlock for every blk desc but not global one

Avoid nested lock, like:
[< 52c02ad8 >] dump_stack+0x24/0x3c
[< 52c6f26c >] blk_dread+0x3c/0x8c
[< 52c6f954 >] rv

dm: blk: Add uspinlock for every blk desc but not global one

Avoid nested lock, like:
[< 52c02ad8 >] dump_stack+0x24/0x3c
[< 52c6f26c >] blk_dread+0x3c/0x8c
[< 52c6f954 >] rvd_bread+0x5c/0x74
[< 52c6f290 >] blk_dread+0x60/0x8c
[< 52c3128c >] part_test_efi+0x70/0x218
[< 52c2f6a0 >] part_init+0x58/0x7c
[< 52c6f4c0 >] blk_prepare_device+0x10/0x1c
[< 52c6fab4 >] rvd_init+0x148/0x178
[< 52c043f0 >] board_init+0x64/0x118
[< 52ca15f8 >] initcall_run_list+0x58/0x94
[< 52c19c34 >] board_init_r+0x20/0x24
[< 52c020e0 >] relocation_return+0x4/0x0

Change-Id: Ic9b2c5e7c35a057ece261ea5044bc5e9c7bab707
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 0b9f6129 02-Apr-2025 Joseph Chen <chenjh@rock-chips.com>

dm: block: Add smp spinlock support

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ieb7ff4daa9294947c8ddc44e484acd0ea2827de8


# 874b2c13 06-Jan-2025 Shawn Lin <shawn.lin@rock-chips.com>

dm: blk: add write zeroes support for advanced flash disk

It's used to make write large scale of zero data more fast if needed.

Change-Id: Iae0315f749e313d12104696110cb8ecf64fb6a4d
Signed-off-by: S

dm: blk: add write zeroes support for advanced flash disk

It's used to make write large scale of zero data more fast if needed.

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

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


# ad9dac3a 10-Mar-2022 Joseph Chen <chenjh@rock-chips.com>

cmd: Add 'blk' command

This common command can access any storage interface
if it's a blk device.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I5d49a1507c719cdf9cb8f72e1a71fce79d90

cmd: Add 'blk' command

This common command can access any storage interface
if it's a blk device.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I5d49a1507c719cdf9cb8f72e1a71fce79d90ffae

show more ...


# d9da4b44 08-Oct-2021 Joseph Chen <chenjh@rock-chips.com>

dm: core: add kernel dtb version 2 mechanism support

The V2 mechanism:
- both of U-Boot and kernel's *ALL* devices are exist in dm tree.
- put the necessary U-Boot devices in the head of device

dm: core: add kernel dtb version 2 mechanism support

The V2 mechanism:
- both of U-Boot and kernel's *ALL* devices are exist in dm tree.
- put the necessary U-Boot devices in the head of device uclass list.
- the both existence policy don't require phandle fixup any more.
- it is for the next generation(rk3588 ...) or necessary platforms.
- traverse u-boot fdt phandle if not found in kernel fdt, because
the U-Boot framework gets phandle by of_root(from fdt) but not dm_root(from dm).
The V1 mechanism(legacy):
- U-Boot: only some necessary U-Boot devices(storage, crypto...) in dm tree.
- kernel: all the devices(except the U-Boot only) in dm tree.

The commit (bd3ad955a3 scripts/dtc: phandle index start from 0x1000000) is
necessary for this v2 mechanism.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0964f176a17725f9bb7c4e491373c278ed2bfcc5

show more ...


# a2875f15 11-Jan-2021 Jason Zhu <jason.zhu@rock-chips.com>

dm: blk: fix spi flash uclass different error when use mtd block

Add more condition to decide which dev is "mtd 2".
More info seen in 82ee4254158e33c79021caade5639182d8116b64.

Signed-off-by: Jason

dm: blk: fix spi flash uclass different error when use mtd block

Add more condition to decide which dev is "mtd 2".
More info seen in 82ee4254158e33c79021caade5639182d8116b64.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Iea84b5a7307969dad785f3136b0af8b9f45e94f6

show more ...


# 4d62a7e0 03-Sep-2020 Jason Zhu <jason.zhu@rock-chips.com>

blk: remove unused code

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib43223baa7d335f6810f714fd64c40cd314b0185


# 47f7fd3a 05-Jun-2020 Jason Zhu <jason.zhu@rock-chips.com>

blk/mmc: add function blk_dread_prepare

This function prepares to read data without confirming completed.
We can use it to prefetch data and run other process.

Signed-off-by: Jason Zhu <jason.zhu@r

blk/mmc: add function blk_dread_prepare

This function prepares to read data without confirming completed.
We can use it to prefetch data and run other process.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I76116c25dfdb7559b80a0216c414189e85409a3e

show more ...


# b8dc613c 19-Nov-2019 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 82ee4254 08-Oct-2019 Jason Zhu <jason.zhu@rock-chips.com>

dm: blk: fix spi flash uclass different error when use mtd block

The normal mtd block attachment steps are UCLASS_BLK -> UCLASS_MTD ->
UCLASS_(SPI or NAND). Since the spi flash frame is attached to

dm: blk: fix spi flash uclass different error when use mtd block

The normal mtd block attachment steps are UCLASS_BLK -> UCLASS_MTD ->
UCLASS_(SPI or NAND). Since the spi flash frame is attached to
UCLASS_SPI_FLASH, this make mistake to find the UCLASS_MTD when
find the mtd block device. Fix it here when enable CONFIG_MTD_BLK.

Change-Id: I815f85a3bc51aa31e0896d9809a0b5a90f186a18
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


# 054229ab 14-Mar-2019 Jason Zhu <jason.zhu@rock-chips.com>

mtd: support mtd block model

Attach the mtd driver to block device, then we can call common interface
(blk_dread & blk_dwrite) to operate storage in application layer.

Usage:
Open CONFIG_MTD_BLK &

mtd: support mtd block model

Attach the mtd driver to block device, then we can call common interface
(blk_dread & blk_dwrite) to operate storage in application layer.

Usage:
Open CONFIG_MTD_BLK & CONFIG_MTD.

Change-Id: I47a969322e2d20c12d46898bdc88f4104e1a15bf
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


# 1712dc5c 08-Apr-2019 Joseph Chen <chenjh@rock-chips.com>

dm: blk: export if_typename_to_iftype()

Change-Id: I436d431f69051861e02699e0366701a27ab5a0da
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# a3fec70d 05-Sep-2018 Joseph Chen <chenjh@rock-chips.com>

dm: blk: add ramdisk uclass support

- Use ram as a disk which appears as block devices.
- Provide a read only ramdisk driver.

Change-Id: Ie6dc1a036c8a2841cacd0d467599c11b74b4ad77
Signed-off-by: Jos

dm: blk: add ramdisk uclass support

- Use ram as a disk which appears as block devices.
- Provide a read only ramdisk driver.

Change-Id: Ie6dc1a036c8a2841cacd0d467599c11b74b4ad77
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 3872c3f4 26-Jul-2018 Dingqiang Lin <jon.lin@rock-chips.com>

drvers: block: blk-uclass: add SPI Flash blk devices

1.Add SPI Flash blk devices;
2.Remove unused RKSFC blk devices.

Change-Id: I0c570798875b4dddf7dfc651f992d2e8eb725228
Signed-off-by: Dingqiang Li

drvers: block: blk-uclass: add SPI Flash blk devices

1.Add SPI Flash blk devices;
2.Remove unused RKSFC blk devices.

Change-Id: I0c570798875b4dddf7dfc651f992d2e8eb725228
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>

show more ...


# 2c3e7d2a 26-Apr-2018 Dingqiang Lin <jon.lin@rock-chips.com>

drvers: block: blk-uclass: add rksfc block interface

Change-Id: Ia9244aa6d5829b7a67fadab18f655fa7a7c5cfe1
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>


# 6a2ff3f4 29-Nov-2017 Stefan Roese <sr@denx.de>

UPSTREAM: dm: blk: Use uclass_find_first/next_device() in blk_first/next_device()

This patch changes the calls to uclass_first/next_device() in blk_first/
next_device() to use uclass_find_first/next

UPSTREAM: dm: blk: Use uclass_find_first/next_device() in blk_first/next_device()

This patch changes the calls to uclass_first/next_device() in blk_first/
next_device() to use uclass_find_first/next_device() instead. These functions
don't prepare the devices, which is correct in this case.

With this patch applied, the "usb storage" command now works again as
expected:

=> usb storage
Device 0: Vendor: SanDisk Rev: 1.00 Prod: Ultra
Type: Removable Hard Disk
Capacity: 58656.0 MB = 57.2 GB (120127488 x 512)

Without this patch, it used to generate this buggy output:

=> usb storage
Card did not respond to voltage select!
mmc_init: -95, time 26
No storage devices, perhaps not 'usb start'ed..?

Change-Id: I5a037217a568d9e4eedb089bce5a283eadff1310
Signed-off-by: Stefan Roese <sr@denx.de>
Suggested-by: Simon Glass <sjg@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 8a5cbc065dfe1f258e3a7be823ea128184b90b5b)

show more ...


# 01003402 13-Sep-2017 Bin Meng <bmeng.cn@gmail.com>

UPSTREAM: blk: Remove various places that do flush cache after read

All these places seem to inherit the codes from the MMC driver where
a FIXME was put in the comment. However the correct operation

UPSTREAM: blk: Remove various places that do flush cache after read

All these places seem to inherit the codes from the MMC driver where
a FIXME was put in the comment. However the correct operation after
read should be cache invalidate, not flush.

The underlying drivers should be responsible for the cache operation.
Remove these codes completely.

Change-Id: I8f04c721432753b34e85b19616a0b42d83a633eb
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: York Sun <york.sun@nxp.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: York Sun <york.sun@nxp.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 723b43daec7ee2ddb600cfcb9b0253d4a71c3915)

show more ...


# 441217e3 17-Oct-2017 Zhaoyifeng <zyf@rock-chips.com>

drivers: rknand: add nand flash drivers for Rockchip SoC

This patch add the nand flash support for Rockchip Soc(RK3128, RK3126x,
RK3188, Rk3229 etc).

Change-Id: I35ea09f0714b303b247a97ed13cc6e0e566

drivers: rknand: add nand flash drivers for Rockchip SoC

This patch add the nand flash support for Rockchip Soc(RK3128, RK3126x,
RK3188, Rk3229 etc).

Change-Id: I35ea09f0714b303b247a97ed13cc6e0e56675a0e
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>

show more ...


# 68e6f221 10-Sep-2017 Bin Meng <bmeng.cn@gmail.com>

block: ide: Fix block read/write with driver model

This converts the IDE driver to driver model so that block read and
write are fully functional.

Fixes: b7c6baef ("x86: Convert MMC to driver model

block: ide: Fix block read/write with driver model

This converts the IDE driver to driver model so that block read and
write are fully functional.

Fixes: b7c6baef ("x86: Convert MMC to driver model")
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

show more ...


# 1fdafb2e 18-Aug-2017 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-mmc


# 7074b2a3 29-Jul-2017 Simon Glass <sjg@chromium.org>

dm: blk: Update return value in blk_create_devicef()

This returns 'ret' but the value is always zero. Update it to simply
return 0, for clarity.

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


# 6faa4ed7 29-Jul-2017 Simon Glass <sjg@chromium.org>

dm: blk: Add a function to find an interface-type name

Add a function to find the name of an interface type (e.g. "sata", "scsi")
from the interface type enum.

This is useful for generic code (not

dm: blk: Add a function to find an interface-type name

Add a function to find the name of an interface type (e.g. "sata", "scsi")
from the interface type enum.

This is useful for generic code (not specific to SATA or SCSI, for
example) that wants to display the type of interface it is dealing with.

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

show more ...


# ffab6945 03-Aug-2017 Zhikang Zhang <zhikang.zhang@nxp.com>

dm: blk: part: Add UCLASS_NVME and IF_TYPE_NVME

This adds a new uclass id and block interface type for NVMe.

Signed-off-by: Zhikang Zhang <zhikang.zhang@nxp.com>
Signed-off-by: Wenbin Song <wenbin.

dm: blk: part: Add UCLASS_NVME and IF_TYPE_NVME

This adds a new uclass id and block interface type for NVMe.

Signed-off-by: Zhikang Zhang <zhikang.zhang@nxp.com>
Signed-off-by: Wenbin Song <wenbin.song@nxp.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jon Nettleton <jon@solid-run.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

show more ...


# 75fd49c8 10-Jun-2017 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-mmc


12