[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110223130952.GJ29559@n2100.arm.linux.org.uk>
Date: Wed, 23 Feb 2011 13:09:52 +0000
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Samuel Ortiz <sameo@...ux.intel.com>
Cc: Subhasish Ghosh <subhasish@...tralsolutions.com>,
sachi@...tralsolutions.com,
davinci-linux-open-source@...ux.davincidsp.com, nsekhar@...com,
open list <linux-kernel@...r.kernel.org>, m-watkins@...com,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v2 01/13] mfd: pruss mfd driver.
On Tue, Feb 22, 2011 at 11:31:27AM +0100, Samuel Ortiz wrote:
> So, if you have a:
>
> static u32 reg_offset(struct device *dev, u8 pru_num)
> {
> struct da8xx_pruss *pru = dev_get_drvdata(dev->parent);
>
> switch (pru_num) {
> case DA8XX_PRUCORE_0:
> return (u32) pru->ioaddr + 0x7000;
> case DA8XX_PRUCORE_1:
> return (u32) pru->ioaddr + 0x7800;
> default:
> return 0;
> }
No. Please don't encourage people to have 'u32' as valid cookies for
readl,writel et.al. Always make the mmio cookies __iomem pointer like.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists