| #
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 ...
|
| #
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 ...
|
| #
853fc11f |
| 04-Sep-2020 |
Jon Lin <jon.lin@rock-chips.com> |
blk: Add BLK_MTD_CONT_WRITE tag
Change-Id: I72537387912d5c981dbe205c0d0c1864fa42a555 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
|
| #
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
|
| #
41f545b6 |
| 12-Aug-2020 |
Jon Lin <jon.lin@rock-chips.com> |
blk: op_flag bitwise definition
Change-Id: I99750780e1d947bfd87a7b9960da8e75a1615baa Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
|
| #
0f91a040 |
| 06-Aug-2020 |
Jason Zhu <jason.zhu@rock-chips.com> |
blk: remove read_prepare()
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: I1b4016bd084027540237f691f3bcc3cb7f9a1120
|
| #
1f3b6bbf |
| 06-Aug-2020 |
Jason Zhu <jason.zhu@rock-chips.com> |
blk: define op_flag to handle some special block operation
Usage: If prepare to read & write block data, just do it like this: struct blk_desc desc; ...... desc.op_flag = BLK_PRE_RW; blk_dr
blk: define op_flag to handle some special block operation
Usage: If prepare to read & write block data, just do it like this: struct blk_desc desc; ...... desc.op_flag = BLK_PRE_RW; blk_dread(......); desc.op_flag = 0;
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: I180bb7c09a7021e1f80760cc852169b3f750941d
show more ...
|
| #
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 ...
|
| #
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>
|
| #
e9aba365 |
| 13-Sep-2017 |
Peter Jones <pjones@redhat.com> |
UPSTREAM: part: extract MBR signature from partitions
EFI client programs need the signature information from the partition table to determine the disk a partition is on, so we need to fill that in
UPSTREAM: part: extract MBR signature from partitions
EFI client programs need the signature information from the partition table to determine the disk a partition is on, so we need to fill that in here.
Change-Id: I27b62e383a2003e82e5424859bc9574d3b2190a2 Signed-off-by: Peter Jones <pjones@redhat.com> [separated from efi_loader part, and fixed build-errors for non- CONFIG_EFI_PARTITION case] Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit ff98cb90514d9b787ddc097c203ac8db2941efe1)
show more ...
|
| #
5bd6dc27 |
| 08-Dec-2017 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: vendor: update to block api instead of rkblk
Use block API for vendor storage access.
Change-Id: I1e00812688cb1d9264fa4a3e1c1551f179d0a931 Signed-off-by: Kever Yang <kever.yang@rock-chips
rockchip: vendor: update to block api instead of rkblk
Use block API for vendor storage access.
Change-Id: I1e00812688cb1d9264fa4a3e1c1551f179d0a931 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
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 ...
|
| #
eb81b1a4 |
| 10-Sep-2017 |
Bin Meng <bmeng.cn@gmail.com> |
blk: Use macros for block device vendor/product/rev string size
So far these are using magic numbers. Replace them with macros.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass
blk: Use macros for block device vendor/product/rev string size
So far these are using magic numbers. Replace them with macros.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
1fdafb2e |
| 18-Aug-2017 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-mmc
|
| #
4395f667 |
| 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: blk: Add a generic function for block device commands
Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and these commands generally do the same thing. This makes it harder to ma
dm: blk: Add a generic function for block device commands
Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and these commands generally do the same thing. This makes it harder to maintain this code and keep it consistent.
We now have a block device interface which is either implemented by driver model (when CONFIG_BLK is enabled) or with a legacy interface. Therefore it is possible to handle most of what these commands do with generic code.
Add a new generic function to process block-device commands using the interface type and the current device number for that type.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
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 ...
|
| #
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 ...
|