[U-Boot] [PATCH v7 1/6] spi: cadence_qspi: move trigger base configuration in init

Vikas MANOCHA vikas.manocha at st.com
Thu Sep 24 20:12:30 CEST 2015


Thanks Wolfgang,

> -----Original Message-----
> From: Wolfgang Denk [mailto:wd at denx.de]
> Sent: Thursday, September 24, 2015 12:22 AM
> To: Vikas MANOCHA
> Cc: u-boot at lists.denx.de; sr at denx.de; grmoore at opensource.altera.com;
> jteki at openedev.com; marex at denx.de
> Subject: Re: [U-Boot] [PATCH v7 1/6] spi: cadence_qspi: move trigger base
> configuration in init
> 
> Dear Vikas,
> 
> In message <1443053976-9112-2-git-send-email-vikas.manocha at st.com>
> you wrote:
> > No need to configure indirect trigger address for every read/write.
> ...
> >  	/* Indirect mode configurations */
> >  	writel((plat->sram_size/2), plat->regbase +
> > CQSPI_REG_SRAMPARTITION);
> > +	writel((u32)plat->ahbbase &
> CQSPI_INDIRECTTRIGGER_ADDR_MASK,
> > +	       plat->regbase + CQSPI_REG_INDIRECTTRIGGER);
> 
> I did not mention this explicitly, so I do it here:
> 
> Please fix this type cast issue globally, in all your patches.

I agree it should be done but this patchset is not introducing the typecasting, it only moves the statement to another logical location.
e.g. the above code is not new, it was just moved from other location to init function.

This fix to remove typecasting from all variables (triggerbase, flashbase,regbase) is a significant change in many routines in terms of parameters passing/handling & deserve separate patch/set.
I am ready to send a separate patch/set for the same later.  Please let me know if you agree.

Rgds,
Vikas

> Thanks.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> --
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> "Marriage is like a cage; one sees the birds outside desperate to get
> in, and those inside desperate to get out."               - Montaigne


More information about the U-Boot mailing list