[PATCH] ARM: SAMSUNG: Add plat-samsung as starting point for plat-s3c* moves

Marek Szyprowski m.szyprowski at samsung.com
Thu Nov 12 04:50:53 EST 2009


Hello,

On Thursday, November 12, 2009 12:08 AM Ben Dooks wrote:

> On Tue, Nov 10, 2009 at 02:38:42PM +0100, Marek Szyprowski wrote:
> > Hello,
> >
> > On Tuesday, November 10, 2009 10:48 AM, Harald Welte wrote:
> >
> > > Dear Kyungmin,
> > >
> > > On Tue, Nov 10, 2009 at 12:27:15PM +0900, Kyungmin Park wrote:
> > > > >
> > > > >> We inted to re-organise the plat-s3c/plat-s3c24xx/plat-s3c64xx into a
> > > > >> more generic plat-samsung with less code in the other plat- directories
> > > > >> to make it easier to port new devices and try and clear up some of the
> > > > >> naming issues with newer devices.
> > > >
> > > > Why do you miss the plat-s5pc1xx? Also add the plat-s5pc1xx series.
> > >
> > > Of course.  The code for the C100, C110, V210, etc. is also subject to
> > > this.  Maybe Ben simply wanted to be polite and indicate he does not
> > > intend to interfere with your current codebase.  After all, DMC is the
> > > maintainer of the C100 support in mainline, and we hope we can have your
> > > cooperation with this new structure.  But since we did not ask you yet,
> > > we couldn't assume that you would agree.
> >
> > We are also interested in improving mainline support for C100 series as
> > well as upcoming C110.
> 
> Did you see my comments on the last series you submitted?

Yes, I prepared new patch set that addresses these issues.

> > > > Of course s5pc100 and s5pc110 is different features and different IPs
> > > > but no need to create each plat directory.
> > >
> > > The 6440 shares some things with the c100, and the 6442 shares again
> > > some things with the c110.  So putting all those files into one
> > > directory seems to make it much easier to share code between the
> > > different parts as needed.  Also, it means that we have to do less
> > > moving around.
> > >
> > > Imagine we continue with one plat-s5p64xx and plat-s5pc1xx, etc. for
> > > each new SoC.  Later we detect there is some sharing with an earlier
> > > product, then we need to move the file to plat-s5p.  This moving around
> > > of files causes breakage in patches that people are having in their
> > > private trees before they can move it mainline.
> > >
> > > Also, don't you think it is somewhat weird that soon samsung would have
> > > as many plat-* directories as all other ARM SoC makers together?
> >
> > These multiple plat-* directories for all Samsung chip series are in
> > fact a big overhead for kernel tree. I assume that You want to end with
> > only one plat-samsung directory. Am I right? What about multiple mach-*
> > directories (mach-s3c2400, ..., mach-s3c24a0, mach-s3c6400, mach-s3c6410,
> > mach-s5pc100, ...)? Do you plan to keep them? Maybe a multilevel structure
> > would be more aproperiate? (mach-samsung/s3c2400, mach-samsung/s3c6400,
> > and so on)?
> 
> I'm not sure what you mean by 'big overhead', could you elaborate on
> that statement.

I mean that a lot plat- directories might pollute kernel tree and complicate
live other, non-samsung arm developers.

> I personally do not think multiple plat- directories are much of a problem
> and much prefer them to some form of heirarchy as you are discussing here
> although there are probably merits either way.
> 
> > How do you plan to handle different includes, register map, register
> > offset defines, etc in each chip series? Would this result in moving
> > the series specific include directories to mach-* directories?
> 
> No, each driver header carries all the necessary defines for the
> version, since if the driver needs updating it is likely the header
> file for that driver will need updating too.
> 
> For the maps, these are much more chip specific and will probably
> be changed to a more specific name to make them easier to find if
> they need to be common.
> 
> Part of the device change will be to move to a table based system
> where there will be less need to have things defined in header
> files.
> 
> We also want to try and ensure that <plat/xxx.h> xxx.h items are
> unique as possible to avoid finding a large number of matches
> for xxx.h in the header files and having to work out which one is
> being included.

Thanks for clarification. I'm looking forward to seeing the patches
for this new framework for Samsung chips.

Best regards
--
Marek Szyprowski
Samsung Poland R&D Center






More information about the linux-arm-kernel mailing list