[PATCH v1 4/4] dt-bindings: interrupt-controller: remove arm-gic.h from include/

2024-11-12 Thread Alexey Romanov
We have exactly the same in upstream bindings. Signed-off-by: Alexey Romanov --- .../interrupt-controller/arm-gic.h| 23 --- 1 file changed, 23 deletions(-) delete mode 100644 include/dt-bindings/interrupt-controller/arm-gic.h diff --git a/include/dt-bindings

[PATCH v1 3/4] dt-bindings: remove axg bindings from include/

2024-11-12 Thread Alexey Romanov
We have exactly the same in upstream bindings. Signed-off-by: Alexey Romanov --- include/dt-bindings/clock/axg-audio-clkc.h | 94 --- include/dt-bindings/clock/axg-clkc.h | 100 - 2 files changed, 194 deletions(-) delete mode 100644 include/dt

[PATCH v1 2/4] dt-bindings: remove a1 bindings from include/

2024-11-12 Thread Alexey Romanov
We have exactly the same in upstream bindings. Signed-off-by: Alexey Romanov --- .../clock/amlogic,a1-peripherals-clkc.h | 168 -- .../dt-bindings/clock/amlogic,a1-pll-clkc.h | 25 --- include/dt-bindings/gpio/meson-a1-gpio.h | 73 include/dt-bindings

[PATCH v1 1/4] arm: dts: meson: remove meson-a1.dtsi

2024-11-12 Thread Alexey Romanov
, we can remove legacy arch/arm/dts/meson-a1.dtsi file. Signed-off-by: Alexey Romanov --- arch/arm/dts/meson-a1.dtsi | 518 - 1 file changed, 518 deletions(-) delete mode 100644 arch/arm/dts/meson-a1.dtsi diff --git a/arch/arm/dts/meson-a1.dtsi b/arch/arm/dts

[PATCH v1 0/4] Remove legacy Amlogic dtsi and bindings

2024-11-12 Thread Alexey Romanov
We should remove bindings and dtsi from include/ folder for A1 and AXG Amlogic devices. We have exactly the same, or with minor differences in dts/upstream folder. I tested this changes on devices closes to reference A1 and AXG SoCs devices and didn't receive any problems. Alexey Roman

Re: [PATCH v7 0/3] Introduce mtdblock device

2024-07-24 Thread Alexey Romanov
Hi Michael, Sorry for the late reply. On Fri, Jul 19, 2024 at 08:57:04AM +0200, Michael Walle wrote: > Hi, > > > Tested only on SPI NAND, so bind is made only for > > SPI NAND drivers. > > If tried to test this with the SPI NOR framework but I couldn't get > it to work. The SPI NOR flash didn't

[PATCH v7 3/3] spinand: bind mtdblock

2024-07-18 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index ef50237f10

[PATCH v7 2/3] drivers: introduce mtdblock abstraction

2024-07-18 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig| 8 ++ drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227

[PATCH v7 1/3] disk: support MTD partitions

2024-07-18 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v7 0/3] Introduce mtdblock device

2024-07-18 Thread Alexey Romanov
-avroma...@salutedevices.com/ - [5] https://lore.kernel.org/all/20240524102920.2631731-1-avroma...@salutedevices.com/ - [6] https://lore.kernel.org/all/20240603155702.1840464-1-avroma...@salutedevices.com/ - [7] https://lore.kernel.org/all/20240626104440.2811686-1-avroma...@salutedevices.com/ Ale

[PATCH v6 6/6] spinand: bind UBI block

2024-07-18 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov Reviewed-by: Frieder Schrempf --- drivers/mtd/nand/spi/core.c | 12 ++-- 1 file changed, 10 insertions(+), 2

[PATCH v6 5/6] disk: support UBI partitions

2024-07-18 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v6 3/6] drivers: introduce UBI block abstraction

2024-07-18 Thread Alexey Romanov
mode 100644 index 00..99d55282cd --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#include + +int ubi

[PATCH v6 4/6] disk: don't try search for partition type if already set

2024-07-18 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v6 2/6] ubi: allow to write to volume with offset

2024-07-18 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 72 +++-- env/ubi.c | 10

[PATCH v6 1/6] ubi: allow to read from volume with offset

2024-07-18 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v6 0/6] Introduce UBI block device

2024-07-18 Thread Alexey Romanov
all/20240626104527.2811828-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition type if already set disk: support UBI partitio

Re: [PATCH v5 0/6] Introduce UBI block device

2024-07-08 Thread Alexey Romanov
Hello, ping. On Wed, Jun 26, 2024 at 01:45:21PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the UBI block device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v6 0/3] Introduce mtdblock device

2024-07-08 Thread Alexey Romanov
Hello, ping. On Wed, Jun 26, 2024 at 01:44:37PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

[PATCH v5 6/6] spinand: bind UBI block

2024-06-26 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov Reviewed-by: Frieder Schrempf --- drivers/mtd/nand/spi/core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[PATCH v5 5/6] disk: support UBI partitions

2024-06-26 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v5 4/6] disk: don't try search for partition type if already set

2024-06-26 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v5 3/6] drivers: introduce UBI block abstraction

2024-06-26 Thread Alexey Romanov
ers/mtd/ubi/block.c new file mode 100644 index 00..99d55282cd --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +

[PATCH v5 2/6] ubi: allow to write to volume with offset

2024-06-26 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 72 +++-- env/ubi.c | 10

[PATCH v5 0/6] Introduce UBI block device

2024-06-26 Thread Alexey Romanov
0603155740.1840571-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition type if already set disk: support UBI partitions

[PATCH v5 1/6] ubi: allow to read from volume with offset

2024-06-26 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v6 3/3] spinand: bind mtdblock

2024-06-26 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62c28aa422..8edb468aed

[PATCH v6 2/3] drivers: introduce mtdblock abstraction

2024-06-26 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 3 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v6 1/3] disk: support MTD partitions

2024-06-26 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v6 0/3] Introduce mtdblock device

2024-06-26 Thread Alexey Romanov
[6] https://lore.kernel.org/all/20240603155702.1840464-1-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/part.c | 3 +- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kco

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-25 Thread Alexey Romanov
Hi Simon, On Wed, Jun 05, 2024 at 07:17:34AM -0600, Simon Glass wrote: > Hi Alexey, > > On Wed, 5 Jun 2024 at 04:09, Alexey Romanov > wrote: > > > > Hi Simon, > > your message is empty. > > > > On Tue, Jun 04, 2024 at 08:13:34PM -0600, Simon Glass

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-17 Thread Alexey Romanov
> *bdesc) > > Thanks and regards, > Dario > > On Wed, Jun 5, 2024 at 3:17 PM Simon Glass wrote: > > > > Hi Alexey, > > > > On Wed, 5 Jun 2024 at 04:09, Alexey Romanov > > wrote: > > > > > > Hi Simon, > > > your messa

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-05 Thread Alexey Romanov
Hi Simon, your message is empty. On Tue, Jun 04, 2024 at 08:13:34PM -0600, Simon Glass wrote: > Hi Alexey, > > On Mon, Jun 3, 2024, 09:57 Alexey Romanov > wrote: > > > Hello! > > > > This series adds support for the mtdblock device, which > > allows

[PATCH v4 6/6] spinand: bind UBI block

2024-06-04 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH v4 5/6] disk: support UBI partitions

2024-06-04 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v4 4/6] disk: don't try search for partition type if already set

2024-06-04 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v4 3/6] drivers: introduce UBI block abstraction

2024-06-04 Thread Alexey Romanov
d/ubi/block.c new file mode 100644 index 00..2464decb81 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#incl

[PATCH v4 2/6] ubi: allow to write to volume with offset

2024-06-04 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10

[PATCH v4 1/6] ubi: allow to read from volume with offset

2024-06-04 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v4 0/6] Introduce UBI block device

2024-06-04 Thread Alexey Romanov
06.1179285-1-avroma...@salutedevices.com/ [3] https://lore.kernel.org/all/20240307130726.1582487-1-avroma...@salutedevices.com/ [4] https://lore.kernel.org/all/20240325144148.3738195-1-avroma...@salutedevices.com/ [5] https://lore.kernel.org/all/20240524111319.3512009-1-avroma...@salutedevices.c

[PATCH v5 3/3] spinand: bind mtdblock

2024-06-04 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62c28aa422..8edb468aed

[PATCH v5 2/3] drivers: introduce mtdblock abstraction

2024-06-04 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v5 1/3] disk: support MTD partitions

2024-06-04 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v5 0/3] Introduce mtdblock device

2024-06-04 Thread Alexey Romanov
tps://lore.kernel.org/all/20240524102920.2631731-1-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/part.c | 3 +- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig | 1 + drivers/

[PATCH v3 6/6] spinand: bind UBI block

2024-05-24 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH v3 5/6] disk: support UBI partitions

2024-05-24 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v3 4/6] disk: don't try search for partition type if already set

2024-05-24 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v3 3/6] drivers: introduce UBI block abstraction

2024-05-24 Thread Alexey Romanov
d/ubi/block.c new file mode 100644 index 00..2464decb81 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#incl

[PATCH v3 2/6] ubi: allow to write to volume with offset

2024-05-24 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10

[PATCH v3 1/6] ubi: allow to read from volume with offset

2024-05-24 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v3 0/6] Introduce UBI block device

2024-05-24 Thread Alexey Romanov
avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition type if already set disk: support UBI partitions spinand: bind UBI block

[PATCH v4 3/3] spinand: bind mtdblock

2024-05-24 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31

[PATCH v4 2/3] drivers: introduce mtdblock abstraction

2024-05-24 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v4 1/3] disk: support MTD partitions

2024-05-24 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 3 ++ 4 files

[PATCH v4 0/3] Introduce mtdblock device

2024-05-24 Thread Alexey Romanov
- [4] https://lore.kernel.org/all/20240404105813.1520732-1-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/part.c | 3 +- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig

Re: [PATCH v2 0/6] Introduce UBI block device

2024-05-23 Thread Alexey Romanov
m-0029881/) that should be applied to bracnh before this. > > Michael > > On Thu, May 23, 2024 at 12:49 PM Alexey Romanov > wrote: > > > > > > Hi Michael, > > > > On Mon, May 06, 2024 at 03:59:52PM +0200, Michael Nazzareno Trimarchi wrote: > > &

Re: [PATCH v2 0/6] Introduce UBI block device

2024-05-23 Thread Alexey Romanov
Hi Michael, On Mon, May 06, 2024 at 03:59:52PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Alexey > > Sorry will will put on CI Any news? > > Michael > > On Mon, May 6, 2024 at 3:58 PM Alexey Romanov > wrote: > > > > Hello! Ping. > > > >

Re: [PATCH v2 0/6] Introduce UBI block device

2024-05-06 Thread Alexey Romanov
Hello! Ping. On Mon, Mar 25, 2024 at 05:41:42PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the UBI block device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v3 0/3] Introduce mtdblock device

2024-05-06 Thread Alexey Romanov
Hello Michael, On Thu, Apr 11, 2024 at 06:14:29PM +0200, Michael Nazzareno Trimarchi wrote: > Hi > > I will review tomorrow, I need have a time window to test even on my board Any news? > > Mihcael > > On Thu, Apr 11, 2024 at 6:09 PM Alexey Romanov > wrote: > &g

[PATCH v5 1/1] fastboot: introduce 'oem board' subcommand

2024-04-18 Thread Alexey Romanov
: Alexey Romanov Reviewed-by: Mattijs Korpershoek Reviewed-by: Quentin Schulz --- doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_command.c | 30 ++ include/fastboot.h| 1 + 4 files

[PATCH v5 0/1] Introduce fastboot oem board command

2024-04-18 Thread Alexey Romanov
757-1-avroma...@salutedevices.com/ [7] https://lore.kernel.org/all/877cgv3ur6@baylibre.com/ Alexey Romanov (1): fastboot: introduce 'oem board' subcommand doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fast

Re: [PATCH v3 0/3] Introduce mtdblock device

2024-04-11 Thread Alexey Romanov
Hello! Ping. On Thu, Apr 04, 2024 at 01:58:10PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v4 1/1] fastboot: introduce 'oem board' subcommand

2024-04-10 Thread Alexey Romanov
Hi guys, On Wed, Apr 10, 2024 at 02:02:21PM +0200, Quentin Schulz wrote: > Hi Alexey, > > On 4/10/24 12:58, Alexey Romanov wrote: > > Currently, fastboot protocol in U-Boot has no opportunity > > to execute vendor custom code with verifed boot. This patch > > introd

[PATCH v4 1/1] fastboot: introduce 'oem board' subcommand

2024-04-10 Thread Alexey Romanov
: Alexey Romanov Reviewed-by: Mattijs Korpershoek --- doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_command.c | 30 ++ include/fastboot.h| 1 + 4 files changed, 56 insertions(+) diff

[PATCH v4 0/1] Introduce fastboot oem board command

2024-04-10 Thread Alexey Romanov
4] https://lore.kernel.org/all/20240408101552.539037-1-avroma...@salutedevices.com/ [5] https://lore.kernel.org/all/9efdf140-8da3-4b5e-b1c4-2f106067a...@theobroma-systems.com/ Alexey Romanov (1): fastboot: introduce 'oem board' subcommand doc/android/fastboot.rst | 18

[PATCH v3 1/1] fastboot: introduce 'oem board' subcommand

2024-04-08 Thread Alexey Romanov
: Alexey Romanov --- doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_command.c | 30 ++ include/fastboot.h| 1 + 4 files changed, 56 insertions(+) diff --git a/doc/android/fastboot.rst b

[PATCH v3 0/1] Introduce fastboot oem board command

2024-04-08 Thread Alexey Romanov
avroma...@salutedevices.com/ [2] https://lore.kernel.org/all/72ac233d-c18d-4f57-bc66-451fe0bd2...@seco.com/ [3] https://lore.kernel.org/all/20240201092027.6258-1-avroma...@salutedevices.com/ Alexey Romanov (1): fastboot: introduce 'oem board' subcommand doc/android/fastbo

[PATCH v3 3/3] spinand: bind mtdblock

2024-04-04 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31

[PATCH v3 2/3] drivers: introduce mtdblock abstraction

2024-04-04 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v3 1/3] disk: support MTD partitions

2024-04-04 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 3 ++ 4 files

[PATCH v3 0/3] Introduce mtdblock device

2024-04-04 Thread Alexey Romanov
2] https://lore.kernel.org/all/20240227100441.1811047-5-avroma...@salutedevices.com/ - [3] https://lore.kernel.org/u-boot/20240403114047.84030-1-heinrich.schucha...@canonical.com/T/#u Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblo

Re: [PATCH v2 6/6] spinand: bind UBI block

2024-04-04 Thread Alexey Romanov
Hi, On Thu, Apr 04, 2024 at 11:23:47AM +0800, Chuanhong Guo wrote: > Hello! > > On Mon, Mar 25, 2024 at 10:46 PM Alexey Romanov > wrote: > > > > UBI block is virtual block device, which is an abstraction > > over MTD layer. Therefore it is logical to use it in co

Re: [RFC PATCH v2 1/2] fastboot: introduce 'oem board' subcommand

2024-04-03 Thread Alexey Romanov
Hello Mattijs, is there any feedback? On Thu, Feb 15, 2024 at 10:14:13AM +0100, Mattijs Korpershoek wrote: > Hi Alexey, > > Thank you for the patch. > > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > Currently, fastboot protocol in U-Boot h

Re: [PATCH v2 0/3] Introduce mtdblock device

2024-04-03 Thread Alexey Romanov
Hi guys! Ping. On Thu, Mar 07, 2024 at 04:07:23PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v2 0/6] Introduce UBI block device

2024-04-03 Thread Alexey Romanov
Hi guys! Ping. On Tue, Mar 26, 2024 at 05:21:29AM +0100, Heiko Schocher wrote: > Hello Alexey, > > On 25.03.24 15:41, Alexey Romanov wrote: > > Hello! > > > > This series adds support for the UBI block device, which > > allows to read/write data block by bloc

[PATCH v2 6/6] spinand: bind UBI block

2024-03-25 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH v2 5/6] disk: support UBI partitions

2024-03-25 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v2 4/6] disk: don't try search for partition type if already set

2024-03-25 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v2 3/6] drivers: introduce UBI block abstraction

2024-03-25 Thread Alexey Romanov
d/ubi/block.c new file mode 100644 index 00..95d5ef5752 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#incl

[PATCH v2 2/6] ubi: allow to write to volume with offset

2024-03-25 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10

[PATCH v2 1/6] ubi: allow to read from volume with offset

2024-03-25 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v2 0/6] Introduce UBI block device

2024-03-25 Thread Alexey Romanov
all/20240306134906.1179285-1-avroma...@salutedevices.com/ [3] https://lore.kernel.org/all/20240307130726.1582487-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: do

Re: [PATCH v1 0/6] Introduce UBI block device

2024-03-19 Thread Alexey Romanov
Hello! Ping. On Wed, Mar 06, 2024 at 04:49:00PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the UBI block device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v2 0/3] Introduce mtdblock device

2024-03-19 Thread Alexey Romanov
Hello! Ping. On Thu, Mar 07, 2024 at 04:07:23PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

[PATCH v2 3/3] spinand: bind mtdblock

2024-03-07 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31 100644 --- a/drivers/mtd/nand

[PATCH v2 2/3] drivers: introduce mtdblock abstraction

2024-03-07 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v2 1/3] disk: support MTD partitions

2024-03-07 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 5 +++- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 2 ++ 4 files

[PATCH v2 0/3] Introduce mtdblock device

2024-03-07 Thread Alexey Romanov
tps://lore.kernel.org/all/20240227100441.1811047-1-avroma...@salutedevices.com/ - [2] https://lore.kernel.org/all/20240227100441.1811047-5-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/par

Re: [PATCH v1 1/4] drivers: introduce mtdblock abstraction

2024-03-07 Thread Alexey Romanov
Hi Heinrich, On Tue, Feb 27, 2024 at 02:37:17PM +0100, Heinrich Schuchardt wrote: > On 27.02.24 11:04, Alexey Romanov wrote: > > MTD block - abstraction over MTD subsystem, allowing > > to read and write in blocks using BLK UCLASS. > > > > - Read algorithm: > &g

[PATCH v1 6/6] spinand: bind UBI block

2024-03-06 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mtd

[PATCH v1 5/6] disk: support UBI partitions

2024-03-06 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov --- drivers/mtd/ubi/Makefile | 1 + drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files changed, 102 insertions(+) create

[PATCH v1 4/6] disk: don't try search for partition type if already set

2024-03-06 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c index 0fc5cc0419..362c9de609

[PATCH v1 3/6] drivers: introduce UBI block abstraction

2024-03-06 Thread Alexey Romanov
d5ef5752 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#include + +int ubi_bind(struct udevice *dev) +{ +

[PATCH v1 2/6] ubi: allow to write to volume with offset

2024-03-06 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov --- cmd/ubi.c | 71 +++-- env/ubi.c | 10 +++ include/ubi_uboot.h | 2 +- 3 files changed, 74

[PATCH v1 1/6] ubi: allow to read from volume with offset

2024-03-06 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/ubi.c b

[PATCH v1 0/6] Introduce UBI block device

2024-03-06 Thread Alexey Romanov
device [1]. - Links: [1] https://lore.kernel.org/all/20240227100441.1811047-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for part

Re: [RFC PATCH v2 1/2] fastboot: introduce 'oem board' subcommand

2024-03-04 Thread Alexey Romanov
Hello, On Thu, Feb 15, 2024 at 10:14:13AM +0100, Mattijs Korpershoek wrote: > Hi Alexey, > > Thank you for the patch. > > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > Currently, fastboot protocol in U-Boot has no opportunity > > to e

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-03-04 Thread Alexey Romanov
Hello Mattijs, On Thu, Feb 15, 2024 at 10:24:11AM +0100, Mattijs Korpershoek wrote: > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > An example of how we use fastboot oeam board subcommand > > for Sean Anderson. > > > > 1 - OEM_BOARD_W

Re: [PATCH v1 0/4] Introduce mtdblock device

2024-03-01 Thread Alexey Romanov
Hi Frieder, On Thu, Feb 29, 2024 at 09:51:04AM +0100, Frieder Schrempf wrote: > Hi Alexey, > > On 27.02.24 11:04, Alexey Romanov wrote: > > Hello! > > > > This series adds support for the mtdblock device, which > > allows to read/write data block by block. Fo

[PATCH v1 3/4] spinand: bind mtdblock

2024-02-27 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..1d9cf66e4a 100644 --- a/drivers/mtd/nand

  1   2   3   >