Hi, On Thu, Mar 11, 2010 at 16:30:45, Sergei Shtylyov wrote: > Hello. > > Sudhakar Rajashekhara wrote: > > > On some platforms like DM355, the number of EDMA parameter > > slots available for EDMA_SLOT_ANY usage are few. In such cases, > > if MMC/SD uses 16 slots for each instance of MMC controller, > > then the number of slots available for other modules will be > > very few. > > > > By passing the number of EDMA slots to be used in MMC driver > > from platform data, EDMA slots available for other purposes > > can be controlled. > > > > Signed-off-by: Sudhakar Rajashekhara <[email protected]> > > --- > > arch/arm/mach-davinci/include/mach/mmc.h | 3 +++ > > drivers/mmc/host/davinci_mmc.c | 22 +++++++++++++++------- > > 2 files changed, 18 insertions(+), 7 deletions(-) > > > > diff --git a/arch/arm/mach-davinci/include/mach/mmc.h > > b/arch/arm/mach-davinci/include/mach/mmc.h > > index 5a85e24..384fc0e 100644 > > --- a/arch/arm/mach-davinci/include/mach/mmc.h > > +++ b/arch/arm/mach-davinci/include/mach/mmc.h > > @@ -22,6 +22,9 @@ struct davinci_mmc_config { > > > > /* Version of the MMC/SD controller */ > > u8 version; > > + > > + /* Number of sg segments */ > > + u32 nr_sg; > > > > Why waste 4 bytres if the maximum number is 16? >
I'll modify it to u8 and re-submit the patch. Thanks, Sudhakar _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
