Re: [PATCH] i2c-ibm_iic driver bonus patch

2008-02-18 Thread Arnd Bergmann
On Tuesday 19 February 2008, Sean MacLennan wrote: > I left in the volatiles, since I don't > understand why they where needed. The memory always seems to be access > with in_8 and out_8, which are declared volatile. But they could be > there to fix a very specific bug. It's very unlikely that

Re: [PATCH] i2c-ibm_iic driver bonus patch

2008-02-18 Thread Sean MacLennan
Here is an optional bonus patch that cleans up most of the checkpatch warnings in the common code. I left in the volatiles, since I don't understand why they where needed. The memory always seems to be access with in_8 and out_8, which are declared volatile. But they could be there to fix a ver

[PATCH] i2c-ibm_iic driver

2008-01-09 Thread Sean MacLennan
This patch allows the i2c-ibm_iic driver to be built either as an ocp driver or an of_platform driver. This allows it to run under the powerpc arch but maintains backward compatibility with the ppc arch. Cheers, Sean MacLennan Signed-off-by: Sean MacLennan <[EMAIL PROTECTED]> --- diff --git

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-08 Thread Stefan Roese
On Tuesday 08 January 2008, Sean MacLennan wrote: > Let's try again. Looks good now. Time to send it to the i2c mailing list <[EMAIL PROTECTED]> and the maintainer Jean Delvare <[EMAIL PROTECTED]>. And please keep the linuxppc-dev list on CC. Thanks. Ciao, Stefan __

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-08 Thread Sean MacLennan
Let's try again. Cheers, Sean diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index c466c6c..e9e1493 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -241,7 +241,6 @@ config I2C_PIIX4 config I2C_IBM_IIC tristate "IBM PPC 4xx on-chip I

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 12:56:27AM -0500, Sean MacLennan wrote: > Stephen Rothwell wrote: > > On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan <[EMAIL PROTECTED]> wrote: > >> +static int __devinit iic_probe(struct of_device *ofdev, > >> + const s

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Stephen Rothwell
On Tue, 08 Jan 2008 00:56:27 -0500 Sean MacLennan <[EMAIL PROTECTED]> wrote: > > Stephen Rothwell wrote: > > > > On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan <[EMAIL PROTECTED]> wrote: > > > > Please don't post patches as attachments. > > Ok. Unfortunately, you are using thunderbird and

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Sean MacLennan
Stephen Rothwell wrote: > Hi Sean, > > On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan <[EMAIL PROTECTED]> wrote: > > > Please don't post patches as attachments. > Ok. > >> +static int __devinit iic_probe(struct of_device *ofdev, >> +

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Stephen Rothwell
Hi Sean, On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan <[EMAIL PROTECTED]> wrote: > Please don't post patches as attachments. > +static int __devinit iic_probe(struct of_device *ofdev, > +const struct > of_device_id *match) Indenting

[PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Sean MacLennan
Second attempt. I think I have covered all the comments. It now should work with both ppc and powerpc architectures. You can now specify fast-mode in the .dts file. You can now specify an index for each entry. If you don't I try to chose reasonable defaults. i.e. I keep a static int that is i

Re: [PATCH] i2c-ibm_iic driver

2008-01-07 Thread Sean MacLennan
Arnd Bergmann wrote: > If there is a good reason to specify fast or slow mode per board, you may want > to make that a property in the device node. > I tried to add fast_mode to the .dts file and failed. IIC1: [EMAIL PROTECTED] { device_type = "i2c";

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread David Gibson
On Sat, Jan 05, 2008 at 08:18:22PM +0100, Arnd Bergmann wrote: > On Saturday 05 January 2008, Sean MacLennan wrote: > > > > Ok. The 44x based .dts files do not list 405-iic, so would I think I > > will add two compatibility matches, one for 405 and one for 440EP. That > > way I do not break all

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Arnd Bergmann
On Saturday 05 January 2008, Sean MacLennan wrote: > > Ok. The 44x based .dts files do not list 405-iic, so would I think I > will add two compatibility matches, one for 405 and one for 440EP. That > way I do not break all the current .dts files. Everybody ok with that? > Sounds good. There ar

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Sean MacLennan
Arnd Bergmann wrote: > On Saturday 05 January 2008, Stefan Roese wrote: > >>> This is probably not specific enough. I'm rather sure that someone at IBM >>> has implemented an i2c chip that this driver doesn't support. Maybe >>> >>> .compatible = "ibm,405-iic" >>> >>> or similar would be a

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Sean MacLennan
Stefan Roese wrote: > >> Otherwise, there are two options: >> >> 1. duplicate the driver like you suggested >> 2. make the same driver both a ocp and of_platform, depending on >> the configuration options. >> >> Since most of the driver is untouched by your patch, I'd lean to >> the second option,

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Sean MacLennan
Arnd Bergmann wrote: > On Saturday 05 January 2008, Sean MacLennan wrote: > >> I converted the i2c-ibm_iic driver from an ocp driver to an of_platform >> driver. Since this driver is in the kernel.org kernel, should I rename >> it and keep the old one around? I notice this was done with the em

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Stefan Roese
On Saturday 05 January 2008, Arnd Bergmann wrote: > > > This is probably not specific enough. I'm rather sure that someone at > > > IBM has implemented an i2c chip that this driver doesn't support. Maybe > > > > > >   .compatible = "ibm,405-iic" > > > > > > or similar would be a better thing to

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Arnd Bergmann
On Saturday 05 January 2008, Stefan Roese wrote: > > > > This is probably not specific enough. I'm rather sure that someone at IBM > > has implemented an i2c chip that this driver doesn't support. Maybe > > > >   .compatible = "ibm,405-iic" > > > > or similar would be a better thing to check fo

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Stefan Roese
On Saturday 05 January 2008, Arnd Bergmann wrote: > On Saturday 05 January 2008, Sean MacLennan wrote: > > I converted the i2c-ibm_iic driver from an ocp driver to an of_platform > > driver. Since this driver is in the kernel.org kernel, should I rename > > it and keep the old one around? I notice

Re: [PATCH] i2c-ibm_iic driver

2008-01-05 Thread Arnd Bergmann
On Saturday 05 January 2008, Sean MacLennan wrote: > I converted the i2c-ibm_iic driver from an ocp driver to an of_platform > driver. Since this driver is in the kernel.org kernel, should I rename > it and keep the old one around? I notice this was done with the emac > network driver. The inte

[PATCH] i2c-ibm_iic driver

2008-01-04 Thread Sean MacLennan
I converted the i2c-ibm_iic driver from an ocp driver to an of_platform driver. Since this driver is in the kernel.org kernel, should I rename it and keep the old one around? I notice this was done with the emac network driver. This driver is required for the taco platform. Cheers, Sean d