Hi Michael > -----Original Message----- > From: Michael Walle <[email protected]> > Sent: Tuesday, January 11, 2022 6:04 PM > To: Gaurav Jain <[email protected]> > Cc: [email protected]; Stefano Babic <[email protected]>; Fabio Estevam > <[email protected]>; Peng Fan <[email protected]>; Simon Glass > <[email protected]>; Priyanka Jain <[email protected]>; Ye Li > <[email protected]>; Horia Geanta <[email protected]>; Ji Luo > <[email protected]>; Franck Lenormand <[email protected]>; Silvano Di > Ninno <[email protected]>; Sahil Malhotra <[email protected]>; > Pankaj Gupta <[email protected]>; Varun Sethi <[email protected]>; dl- > uboot-imx <[email protected]>; Shengzhou Liu <[email protected]>; > Mingkai Hu <[email protected]>; Rajesh Bhagat <[email protected]>; > Meenakshi Aggarwal <[email protected]>; Wasim Khan > <[email protected]>; Alison Wang <[email protected]>; Pramod > Kumar <[email protected]>; Andy Tang <[email protected]>; > Adrian Alonso <[email protected]>; Vladimir Oltean <[email protected]> > Subject: Re: [EXT] Re: [PATCH v9 11/14] Layerscape: Enable Job ring driver > model. > > Caution: EXT Email > > Hi Gaurav, > > Am 2022-01-11 13:30, schrieb Gaurav Jain: > >> Am 2022-01-11 12:28, schrieb Gaurav Jain: > >> > @@ -1329,6 +1331,7 @@ config TARGET_LS2080ARDB > >> > select FSL_DDR_BIST > >> > select FSL_DDR_INTERACTIVE if !SPL > >> > select GPIO_EXTRA_HEADER > >> > + select FSL_CAAM > >> > >> See below. > >> > >> > diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c > >> > b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c > >> > index 2ded3e4efc..29aa9a3f10 100644 > >> > --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c > >> > +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c > >> > @@ -1,6 +1,6 @@ > >> > // SPDX-License-Identifier: GPL-2.0+ > >> > /* > >> > - * Copyright 2017-2020 NXP > >> > + * Copyright 2017-2021 NXP > >> > * Copyright 2014-2015 Freescale Semiconductor, Inc. > >> > */ > >> > > >> > @@ -49,6 +49,7 @@ > >> > #endif > >> > #endif > >> > #include <linux/mii.h> > >> > +#include <dm.h> > >> > > >> > DECLARE_GLOBAL_DATA_PTR; > >> > > >> > @@ -1650,6 +1651,13 @@ __weak int serdes_misc_init(void) > >> > > >> > int arch_misc_init(void) > >> > { > >> > + struct udevice *dev; > >> > + int ret; > >> > + > >> > + ret = uclass_get_device_by_driver(UCLASS_MISC, > >> > DM_DRIVER_GET(caam_jr), &dev); > >> > + if (ret) > >> > + printf("Failed to initialize %s: %d\n", dev->name, > >> > + ret); > >> > >> This will fail when the CAAM driver isn't enabled and will then print > >> this error message. Should be guarded with IS_ENABLED(FSL_CAAM). > > I agree. Will add this. > > If you have more comments, please share. > > I will check and incorporate the changes in single version. > > Sorry, didn't notice that before. > > >> > diff --git a/configs/ls2088ardb_tfa_defconfig > >> > b/configs/ls2088ardb_tfa_defconfig > >> > index a28b45b129..5230d7ead8 100644 > >> > --- a/configs/ls2088ardb_tfa_defconfig > >> > +++ b/configs/ls2088ardb_tfa_defconfig > >> > @@ -53,7 +53,6 @@ CONFIG_ENV_ADDR=0x580500000 > >> > CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DM=y > CONFIG_SATA_CEVA=y > >> > -CONFIG_FSL_CAAM=y > >> > CONFIG_DDR_CLK_FREQ=133333333 > >> > CONFIG_DDR_ECC=y > >> > CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y > >> .. > >> > >> I still don't understand why you make the FSL_CAAM mandatory and > >> remove the option here. Same for all other boards. > > Instead of enabling FSL_CAAM in every defconfig for a particular > > board, I moved FSL_CAAM to specific TARGET boards. > > this will enable FSL_CAAM to every defconfig for a target board. > > But a user/developer cannot disable that option anymore in this case. I have enabled FSL_CAAM only for the boards that are enabling CAAM previously as well. Current change make it easy, else I have to make change in each defconfig for all target boards.
Regards Gaurav Jain > > -michael

