[PATCH v2 09/10] mtd: nand: raw: rockchip_nfc: add flash_node to chip stucture

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Thu Feb 16 08:24:24 CET 2023


Hi

On Tue, Feb 7, 2023 at 3:55 PM Johan Jonker <jbx6244 at gmail.com> wrote:
>
> Add flash_node to the rockchip_nfc driver chip stucture in order
> to find the partitions in the add_mtd_partitions_of() functions.
>
> Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
> ---
>  drivers/mtd/nand/raw/rockchip_nfc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw/rockchip_nfc.c
> index 5e2b8346..9e3a2533 100644
> --- a/drivers/mtd/nand/raw/rockchip_nfc.c
> +++ b/drivers/mtd/nand/raw/rockchip_nfc.c
> @@ -934,6 +934,7 @@ static int rk_nfc_nand_chip_init(ofnode node, struct rk_nfc *nfc, int devnum)
>
>         nand_set_controller_data(chip, nfc);
>
> +       chip->flash_node = node;
>         chip->chip_delay = NFC_RB_DELAY_US;
>         chip->select_chip = rk_nfc_select_chip;
>         chip->cmd_ctrl = rk_nfc_cmd;
> --
> 2.20.1
>

Reviewed-by: Michael Trimarchi <michael at amarulasolutions.com>

-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com


More information about the U-Boot mailing list