Re: [PATCH 1/5] device: introduce resource structure to simplify resource delaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08:36 Tue 23 Nov     , Sascha Hauer wrote:
> On Sun, Nov 21, 2010 at 05:28:54AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 14:58 Sat 20 Nov     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > On 14:40 Sat 20 Nov     , Sascha Hauer wrote:
> > > > On Fri, Nov 19, 2010 at 12:30:09PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > > > On 09:00 Fri 19 Nov     , Sascha Hauer wrote:
> > > > > > Hi J,
> > > > > > 
> > > > > > On Fri, Nov 12, 2010 at 07:18:54PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > > > > > introdude also some helper to manager them
> > > > > > > 
> > > > > > > and add multi resource per device support
> > > > > > > 
> > > > > > > ram device: use resource structure instead of memory_platform_data
> > > > > > > 
> > > > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx>
> > > > > > 
> > > > > > 
> > > > > > You shouldn't use a resource_size_t type to access registers. This will
> > > > > > lead to problems when we start to support 64bit resource sizes
> > > > > no as resource_size_t is 64 bit aware
> > > > 
> > > > And exactly this is the problem. void * is usually only 32bit on arm.
> > > > This will lead to compiler warnings and sparse isn't happy about
> > > > unsigned long in readl/writel anyway.
> > > IIRC on arm resource_size_t is never 64bit at least on the current ARMvx
> 
> Think of MMC/SD cards > 4G.
ok but I do not see the import on the ressource for the drivers?

as it's runtime probed

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux