* Re: [PATCH v4 1/1] i2c: Add support for Xilinx XPS IIC Bus Interface
[not found] ` <20100308150121.GW10014@trinity.fluff.org>
@ 2010-03-08 21:43 ` Randy Dunlap
2010-03-09 8:17 ` Richard Röjfors
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2010-03-08 21:43 UTC (permalink / raw)
To: Ben Dooks
Cc: Richard Röjfors, linux-i2c, Ben Dooks, Jean Delvare, xtfeng,
sfr, linux-next, Linux Kernel Mailing List
On 03/08/10 07:01, Ben Dooks wrote:
> On Mon, Mar 08, 2010 at 10:54:25AM +0100, Richard Röjfors wrote:
>> Here is an updated patch due to build failure in linux-next.
>>
>> This patch also contains the header file that was missing in v3.
>
> Please just send what is missing, now the base is merged it is difficult
> to get it removed.
and sooner would be better than later since linus-mainline does not build cleanly
due to this.
(more below)
>> diff --git a/include/linux/i2c-xiic.h b/include/linux/i2c-xiic.h
>> new file mode 100644
>> index 0000000..4f9f225
>> --- /dev/null
>> +++ b/include/linux/i2c-xiic.h
>> @@ -0,0 +1,43 @@
>> +/*
>> + * i2c-xiic.h
>> + * Copyright (c) 2009 Intel Corporation
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
>> + */
>> +
>> +/* Supports:
>> + * Xilinx IIC
>> + */
>> +
>> +#ifndef _LINUX_I2C_XIIC_H
>> +#define _LINUX_I2C_XIIC_H
>> +
>> +/**
>> + * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
>> + * @num_devices: Number of devices that shall be added when the driver
>> + * is probed.
>> + * @devices: The actuall devices to add.
actual
>> + *
>> + * This purpose of this platform data struct is to be able to provide a number
>> + * of devices that should be added to the I2C bus. The reason is that sometimes
>> + * the I2C board info is not enough, a new PCI board can for instance be
>> + * plugged into a standard PC, and the bus number might be unknown at
>> + * early init time.
>> + */
>> +struct xiic_i2c_platform_data {
>> + u8 num_devices;
>> + struct i2c_board_info const *devices;
>> +};
>> +
>> +#endif /* _LINUX_I2C_XIIC_H */
And it still needs this patch that I have sent since Feb. 04-2010:
---
From: Randy Dunlap <randy.dunlap@oracle.com>
Add header file to fix build error:
drivers/i2c/busses/i2c-xiic.c:493: error: implicit declaration of function 'mdelay'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: "Ben Dooks (embedded platforms)" <ben-linux@fluff.org>
Cc: linux-i2c@vger.kernel.org
---
drivers/i2c/busses/i2c-xiic.c | 1 +
1 file changed, 1 insertion(+)
--- linux-next-20100204.orig/drivers/i2c/busses/i2c-xiic.c
+++ linux-next-20100204/drivers/i2c/busses/i2c-xiic.c
@@ -31,6 +31,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
+#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4 1/1] i2c: Add support for Xilinx XPS IIC Bus Interface
2010-03-08 21:43 ` [PATCH v4 1/1] i2c: Add support for Xilinx XPS IIC Bus Interface Randy Dunlap
@ 2010-03-09 8:17 ` Richard Röjfors
2010-03-14 12:05 ` [PATCH, fix 1/2] Add the platform data include for the " Stephen Rothwell
0 siblings, 1 reply; 4+ messages in thread
From: Richard Röjfors @ 2010-03-09 8:17 UTC (permalink / raw)
To: Randy Dunlap
Cc: Ben Dooks, linux-i2c, Ben Dooks, Jean Delvare, xtfeng, sfr,
linux-next, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 3348 bytes --]
On 03/08/2010 10:43 PM, Randy Dunlap wrote:
> On 03/08/10 07:01, Ben Dooks wrote:
>> On Mon, Mar 08, 2010 at 10:54:25AM +0100, Richard Röjfors wrote:
>>> Here is an updated patch due to build failure in linux-next.
>>>
>>> This patch also contains the header file that was missing in v3.
>>
>> Please just send what is missing, now the base is merged it is difficult
>> to get it removed.
>
> and sooner would be better than later since linus-mainline does not build cleanly
> due to this.
Attached (mail client issues) is the patch with the missing header file.
And as Randy mentioned his patch below is needed too.
>
> (more below)
>
>>> diff --git a/include/linux/i2c-xiic.h b/include/linux/i2c-xiic.h
>>> new file mode 100644
>>> index 0000000..4f9f225
>>> --- /dev/null
>>> +++ b/include/linux/i2c-xiic.h
>>> @@ -0,0 +1,43 @@
>>> +/*
>>> + * i2c-xiic.h
>>> + * Copyright (c) 2009 Intel Corporation
>>> + *
>>> + * This program is free software; you can redistribute it and/or modify
>>> + * it under the terms of the GNU General Public License version 2 as
>>> + * published by the Free Software Foundation.
>>> + *
>>> + * This program is distributed in the hope that it will be useful,
>>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>>> + * GNU General Public License for more details.
>>> + *
>>> + * You should have received a copy of the GNU General Public License
>>> + * along with this program; if not, write to the Free Software
>>> + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
>>> + */
>>> +
>>> +/* Supports:
>>> + * Xilinx IIC
>>> + */
>>> +
>>> +#ifndef _LINUX_I2C_XIIC_H
>>> +#define _LINUX_I2C_XIIC_H
>>> +
>>> +/**
>>> + * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
>>> + * @num_devices: Number of devices that shall be added when the driver
>>> + * is probed.
>>> + * @devices: The actuall devices to add.
>
> actual
>
>>> + *
>>> + * This purpose of this platform data struct is to be able to provide a number
>>> + * of devices that should be added to the I2C bus. The reason is that sometimes
>>> + * the I2C board info is not enough, a new PCI board can for instance be
>>> + * plugged into a standard PC, and the bus number might be unknown at
>>> + * early init time.
>>> + */
>>> +struct xiic_i2c_platform_data {
>>> + u8 num_devices;
>>> + struct i2c_board_info const *devices;
>>> +};
>>> +
>>> +#endif /* _LINUX_I2C_XIIC_H */
>
>
> And it still needs this patch that I have sent since Feb. 04-2010:
>
> ---
>
> From: Randy Dunlap<randy.dunlap@oracle.com>
>
> Add header file to fix build error:
>
> drivers/i2c/busses/i2c-xiic.c:493: error: implicit declaration of function 'mdelay'
>
> Signed-off-by: Randy Dunlap<randy.dunlap@oracle.com>
> Cc: "Ben Dooks (embedded platforms)"<ben-linux@fluff.org>
> Cc: linux-i2c@vger.kernel.org
> ---
> drivers/i2c/busses/i2c-xiic.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- linux-next-20100204.orig/drivers/i2c/busses/i2c-xiic.c
> +++ linux-next-20100204/drivers/i2c/busses/i2c-xiic.c
> @@ -31,6 +31,7 @@
> #include<linux/module.h>
> #include<linux/init.h>
> #include<linux/errno.h>
> +#include<linux/delay.h>
> #include<linux/platform_device.h>
> #include<linux/i2c.h>
> #include<linux/interrupt.h>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xiic-platform.patch --]
[-- Type: text/x-patch; name="xiic-platform.patch", Size: 1808 bytes --]
This patch adds the platform data include for the Xilinx XPS IIC Bus Interface.
Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
---
diff --git a/include/linux/i2c-xiic.h b/include/linux/i2c-xiic.h
new file mode 100644
index 0000000..4f9f225
--- /dev/null
+++ b/include/linux/i2c-xiic.h
@@ -0,0 +1,43 @@
+/*
+ * i2c-xiic.h
+ * Copyright (c) 2009 Intel Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+/* Supports:
+ * Xilinx IIC
+ */
+
+#ifndef _LINUX_I2C_XIIC_H
+#define _LINUX_I2C_XIIC_H
+
+/**
+ * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
+ * @num_devices: Number of devices that shall be added when the driver
+ * is probed.
+ * @devices: The actuall devices to add.
+ *
+ * This purpose of this platform data struct is to be able to provide a number
+ * of devices that should be added to the I2C bus. The reason is that sometimes
+ * the I2C board info is not enough, a new PCI board can for instance be
+ * plugged into a standard PC, and the bus number might be unknown at
+ * early init time.
+ */
+struct xiic_i2c_platform_data {
+ u8 num_devices;
+ struct i2c_board_info const *devices;
+};
+
+#endif /* _LINUX_I2C_XIIC_H */
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH, fix 1/2] Add the platform data include for the Xilinx XPS IIC Bus Interface
2010-03-09 8:17 ` Richard Röjfors
@ 2010-03-14 12:05 ` Stephen Rothwell
2010-03-14 12:07 ` [PATCH, fix 2/2] Add include to i2c-xii.c to fix build error Stephen Rothwell
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2010-03-14 12:05 UTC (permalink / raw)
To: Linus, Andrew Morton
Cc: "Richard Röjfors", Randy Dunlap, Ben Dooks,
linux-i2c, Jean Delvare, xtfeng, linux-next,
Linux Kernel Mailing List
From: Richard Röjfors <richard.rojfors@pelagicore.com>
Date: Tue, 09 Mar 2010 09:17:36 +0100
This file was missed in the original patch that went into Linus' tree.
Cc: "Ben Dooks (embedded platforms)" <ben-linux@fluff.org>
Cc: linux-i2c@vger.kernel.org
Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
Hi Linus,
This missing include file has been killing most (if not all) the
allmodconfig builds since March 9. Please apply. I have had the
equivalent of this patch in linux-next since then.
diff --git a/include/linux/i2c-xiic.h b/include/linux/i2c-xiic.h
new file mode 100644
index 0000000..4f9f225
--- /dev/null
+++ b/include/linux/i2c-xiic.h
@@ -0,0 +1,43 @@
+/*
+ * i2c-xiic.h
+ * Copyright (c) 2009 Intel Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+/* Supports:
+ * Xilinx IIC
+ */
+
+#ifndef _LINUX_I2C_XIIC_H
+#define _LINUX_I2C_XIIC_H
+
+/**
+ * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
+ * @num_devices: Number of devices that shall be added when the driver
+ * is probed.
+ * @devices: The actuall devices to add.
+ *
+ * This purpose of this platform data struct is to be able to provide a number
+ * of devices that should be added to the I2C bus. The reason is that sometimes
+ * the I2C board info is not enough, a new PCI board can for instance be
+ * plugged into a standard PC, and the bus number might be unknown at
+ * early init time.
+ */
+struct xiic_i2c_platform_data {
+ u8 num_devices;
+ struct i2c_board_info const *devices;
+};
+
+#endif /* _LINUX_I2C_XIIC_H */
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH, fix 2/2] Add include to i2c-xii.c to fix build error
2010-03-14 12:05 ` [PATCH, fix 1/2] Add the platform data include for the " Stephen Rothwell
@ 2010-03-14 12:07 ` Stephen Rothwell
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2010-03-14 12:07 UTC (permalink / raw)
To: Linus, Andrew Morton
Cc: "Richard Röjfors", Randy Dunlap, Ben Dooks,
linux-i2c, Jean Delvare, xtfeng, linux-next,
Linux Kernel Mailing List
From: Randy Dunlap <randy.dunlap@oracle.com>
Date: Thu, 04 Feb 2010 12:11:09 -0800
drivers/i2c/busses/i2c-xiic.c:493: error: implicit declaration of function 'mdelay'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: "Richard Röjfors" <richard.rojfors@pelagicore.com>
Cc: "Ben Dooks (embedded platforms)" <ben-linux@fluff.org>
Cc: linux-i2c@vger.kernel.org
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/i2c/busses/i2c-xiic.c | 1 +
1 file changed, 1 insertion(+)
Hi Linus,
This patch has been in linux-next for a while as well. Please apply.
--- linux-next-20100204.orig/drivers/i2c/busses/i2c-xiic.c
+++ linux-next-20100204/drivers/i2c/busses/i2c-xiic.c
@@ -31,6 +31,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
+#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-14 12:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4B94C951.6050703@pelagicore.com>
[not found] ` <20100308150121.GW10014@trinity.fluff.org>
2010-03-08 21:43 ` [PATCH v4 1/1] i2c: Add support for Xilinx XPS IIC Bus Interface Randy Dunlap
2010-03-09 8:17 ` Richard Röjfors
2010-03-14 12:05 ` [PATCH, fix 1/2] Add the platform data include for the " Stephen Rothwell
2010-03-14 12:07 ` [PATCH, fix 2/2] Add include to i2c-xii.c to fix build error Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox