[PATCH V4 0/4] add the GPMI controller driver for IMX23/IMX28
Lothar Waßmann
LW at KARO-electronics.de
Fri Apr 8 06:46:49 EDT 2011
Hi,
Huang Shijie writes:
> Hi Lothar:
> > Hi,
> >
> > Huang Shijie writes:
> >> Does some one have any comments about this driver?
> >>
> > I'm still not happy with the rom-helper code that IMO does not belong
> > in this driver.
> Could you tell me which part of the rom-helper code is not belong the
> driver?
>
All of it. I don't see a point in having it, when all that it does can
be achieved with standard functions already.
> > Also, I would integrate the code from the hal-*.c files into the main
> > file and remove all the function hooks, since the functions are the
> thanks for your advice.
>
> This driver will serve for many platforms, not only the imx23 and imx28.
> I am merging the imx508 code to the driver.
> I feel lucky that i did not merge all the code into the main file, which
> will
> make the code mess.
>
You would probably end up with some more functions that are
implemented for the different variants. They could be prefixed with
the SoC name and selected in the probe() function depending on the
platform id. I don't see why this should get messy.
If the imx508 driver is so much different from the other variants,
that merging it gets too messy, it's probably better to not merge it
with the other variants anyway.
Lothar Waßmann
--
___________________________________________________________
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________
More information about the linux-arm-kernel
mailing list