Re: [PATCH REPOST] i2c: tegra: set irq name as device name

2012-11-01 Thread Wolfram Sang
ldewan...@nvidia.com Acked-by: Jean Delvare kh...@linux-fr.org Applied to for-current, thanks. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: [PATCH 12/19] i2c-nomadik: Register sub-devices when passed via Device Tree

2012-10-06 Thread Wolfram Sang
Are you taking these soon? I've rebased on -next, but they're still in my local delta. Applied to -next now, will push out later today. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de

[PULL REQUEST] i2c-embedded for 3.7

2012-11-03 Thread Wolfram Sang
) Laxman Dewangan (1): i2c: tegra: set irq name as device name Philippe Begnic (1): i2c-nomadik: Fixup clock handling Wolfram Sang (1): i2c: mxs: remove broken PIOQUEUE support drivers/i2c/busses/i2c-mxs.c | 186

Re: [PATCH] MAINTAINERS: i2c: 7 years, this is it

2012-11-05 Thread Wolfram Sang
Jean, * Wolfram Sang, for joining the crew when it became clear that there was more review work than Ben and myself could deal with. Thank you for guiding me when I entered the kernel space and again when you entrusted me to do maintainer work in i2c. I hope I did not forget anyone, please

[PULL REQUEST] i2c-embedded for 3.7

2012-10-09 Thread Wolfram Sang
and clk_disable_unprepare Thomas Kavanagh (1): i2c: algo: pca: Fix chip reset function for PCA9665 Wolfram Sang (1): Merge tag 'v3.6-rc7' into i2c-embedded/for-next .../devicetree/bindings/i2c/atmel-i2c.txt | 30 + Documentation/devicetree/bindings/i2c/davinci.txt | 28

Re: [PATCH 1/7] I2c-nomadik: Fix the usage of wait_for_completion_timeout

2012-11-12 Thread Wolfram Sang
waiting for event\n, timeout); - status = timeout; - } - if (timeout == 0) { /* Controller timed out */ dev_err(dev-adev-dev, write to slave 0x%x timed out\n, -- 1.7.0.4 -- Pengutronix e.K. | Wolfram Sang

Re: [PATCH 1/7] I2c-nomadik: Fix the usage of wait_for_completion_timeout

2012-11-12 Thread Wolfram Sang
Thanks your pointing out. I just manually reviewed the code when found this point. Would like to try some auto-script but failed:) I can suggest 'coccinelle' for that kind of job. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Wolfram Sang
, 0, + ret = devm_request_irq(pdev-dev, irq, ocores_isr, 0, pdev-name, i2c); if (ret) { dev_err(pdev-dev, Cannot claim IRQ\n); Rest looks good. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux

Re: [PATCH v2 2/2] i2c: i2c-ocores: Add support for the GRLIB port of the controller and custom getreg and setreg functions

2012-11-13 Thread Wolfram Sang
; + } + I'd think we should handle this via a seperate compatible-entry and match-data? Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description

Re: [PATCH] i2c: i2c-ocores: Use devm_request_and_ioremap()

2012-11-13 Thread Wolfram Sang
, thanks. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: [PATCH 2/2] i2c: busses: i2c-ocores: switch to devm_request_and_ioremap

2012-11-13 Thread Wolfram Sang
e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Wolfram Sang
return dev-archdata.irqs[num]; 91 #else 92 struct resource *r = platform_get_resource(dev, IORESOURCE_IRQ, num); 93 94 return r ? r-start : -ENXIO; 95 #endif 96 } 97 EXPORT_SYMBOL_GPL(platform_get_irq); -- Pengutronix e.K. | Wolfram Sang

[PATCH] driver: platform: fix documentation for platform_get_irq_byname

2012-11-13 Thread Wolfram Sang
Probably due to copypaste, some stuff was simply forgotten. Signed-off-by: Wolfram Sang wolf...@the-dreams.de --- drivers/base/platform.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 72c776f..d7ea92e 100644

[PATCH] bindings: i2c: use consistent naming for i2c binding descriptions

2012-11-13 Thread Wolfram Sang
it understands. Also, remove a reference in one source to the binding documentation, since path information easily gets stale. Signed-off-by: Wolfram Sang wolf...@the-dreams.de Cc: Rob Herring robherri...@gmail.com Cc: Grant Likely grant.lik...@secretlab.ca --- I think it would be helpful if other subsystems

Re: [PATCH] i2c: omap: adopt pinctrl support

2012-11-14 Thread Wolfram Sang
: registered GPIOs 477 to 500 on device: tca6424a Signed-off-by: Sebastien Guiriec s-guir...@ti.com looks good to me also, should go in v3.8 merge window: Reviewed-by: Felipe Balbi ba...@ti.com Applied to for-next, thanks! -- Pengutronix e.K. | Wolfram Sang

Re: [PATCH 1/8 v2] i2c: i2c-bfin-twi: Illegal i2c bus lock upon certain transfer scenarios.

2012-07-13 Thread Wolfram Sang
, read_MASTER_CTL(iface) | STOP); } else if (iface-cur_mode == TWI_I2C_MODE_REPEAT -- 1.7.0.4 -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description

Re: [PATCH 4/8 v2] i2c: i2c-bfin-twi: Tighten condition when failing I2C transfer if MEN bit is reset unexpectedly.

2012-07-13 Thread Wolfram Sang
. + (read_MASTER_CTL(iface) MEN) == 0 (iface-cur_mode == TWI_I2C_MODE_REPEAT || iface-cur_mode == TWI_I2C_MODE_COMBINED)) { iface-result = -1; -- 1.7.0.4 -- Pengutronix e.K. | Wolfram Sang

Re: [PATCH 5/8 v2] i2c:i2c-bfin-twi: TWI fails to restart next transfer in high system load.

2012-07-13 Thread Wolfram Sang
, read_MASTER_CTL(iface) | MEN | + write_MASTER_CTL(iface, read_MASTER_CTL(iface) | MEN | RSTART | ((CONFIG_I2C_BLACKFIN_TWI_CLK_KHZ100) ? FAST : 0)); break; default: -- 1.7.0.4 -- Pengutronix e.K. | Wolfram Sang

Re: [PATCH] i2c-s3c2410: Fix pointer type passed to of_match_node()

2012-07-13 Thread Wolfram Sang
...@samsung.com Sorry, this dropped of the pile. Applied to next now. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: linux-next: manual merge of the arm-soc tree with the i2c-embedded tree

2012-07-16 Thread Wolfram Sang
, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: linux-next: manual merge of the arm-soc tree with the i2c-embedded tree

2012-07-16 Thread Wolfram Sang
On Mon, Jul 16, 2012 at 01:37:13PM +0200, Linus Walleij wrote: On Mon, Jul 16, 2012 at 12:17 PM, Wolfram Sang w.s...@pengutronix.de wrote: And about the perpetual nature of device tree bindings it appears to me that the modus operandi right now is to not regard any of these as written

Re: linux-next: manual merge of the arm-soc tree with the i2c-embedded tree

2012-07-16 Thread Wolfram Sang
and definitions are still fluid. See my response to Linus. I do understand your view and where it comes from. As a maintainer, I have other priorities. No offence involved, it needs some settlement. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions

Re: [PATCH v2 1/7] i2c-designware: move to managed functions (devm_*)

2013-04-15 Thread Wolfram Sang
On Wed, Apr 10, 2013 at 01:36:36PM +0300, Mika Westerberg wrote: From: Andy Shevchenko andriy.shevche...@linux.intel.com This makes the error handling much more simpler than open-coding everything and in addition makes the probe function smaller and tidier. Signed-off-by: Andy Shevchenko

Re: [PATCH v5 1/3] i2c: mux: Add i2c-arb-gpio-challenge 'mux' driver

2013-04-16 Thread Wolfram Sang
Doug, On Tue, Apr 09, 2013 at 02:34:28PM -0700, Doug Anderson wrote: The i2c-arb-gpio-challenge driver implements an I2C arbitration scheme where masters need to claim the bus with a GPIO before they can start a transcation. This should generally only be used when standard I2C multimaster

Re: [PATCH 2/4] i2c: Kontron PLD i2c bus driver

2013-04-16 Thread Wolfram Sang
On Wed, Apr 10, 2013 at 10:02:12AM -0700, Guenter Roeck wrote: On Mon, Apr 08, 2013 at 10:15:19AM -0700, Kevin Strasser wrote: From: Michael Brunner michael.brun...@kontron.com Add i2c support for the on-board PLD found on some Kontron embedded modules. Signed-off-by: Michael

Re: [PATCH v7] i2c: exynos5: add High Speed I2C controller driver

2013-04-16 Thread Wolfram Sang
Hi, thanks for the submission. On Thu, Apr 04, 2013 at 09:52:01PM -0700, Naveen Krishna Chatradhi wrote: From: Naveen Krishna Chatradhi ch.nav...@samsung.com Adds support for High Speed I2C driver found in Exynos5 and later SoCs from Samsung. This driver currently supports Auto mode.

Re: [PATCH v6 1/3] i2c: mux: Add i2c-arb-gpio-challenge 'mux' driver

2013-04-17 Thread Wolfram Sang
On Tue, Apr 16, 2013 at 09:29:00AM -0700, Doug Anderson wrote: The i2c-arb-gpio-challenge driver implements an I2C arbitration scheme where masters need to claim the bus with a GPIO before they can start a transcation. This should generally only be used when standard I2C multimaster isn't

Re: [PATCH v6 1/3] i2c: mux: Add i2c-arb-gpio-challenge 'mux' driver

2013-04-17 Thread Wolfram Sang
On Tue, Apr 16, 2013 at 09:34:58AM -0700, Olof Johansson wrote: Overdue, should have added a few iterations ago: :) Why is that? Is the current iteration too generic for your taste? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

[PATCH] MAINTAINERS: Ben Dooks is inactive regarding I2C

2013-04-17 Thread Wolfram Sang
Ben has done valuable work for the I2C subsystem, yet he has been inactive for ~15 months. Let MAINTAINERS reflect that. He will be most welcome if he wants to participate again. Signed-off-by: Wolfram Sang w...@the-dreams.de Cc: Ben Dooks ben-li...@fluff.org --- Ben, please speak up if you want

Re: [PATCH] I2C: Change the value of octeon i2c adapter timeout value

2013-04-19 Thread Wolfram Sang
On Fri, Apr 19, 2013 at 12:01:04AM +, EUNBONG SONG wrote: I think HZ/50 is better than 2 for adapter timeout. Basically OK. But why HZ/50? Most drivers use HZ. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [PATCH] I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8

2013-04-19 Thread Wolfram Sang
On Thu, Apr 18, 2013 at 07:40:16AM +, 송은봉 wrote: I rewrite my patch because the patch before i sent have many white space. Thanks! This should have been below the --- after the sigend-off. --- I've been debugging the abnormal operation of i2c on octeon. If a process is terminated by

Re: Re: [PATCH] I2C: Change the value of octeon i2c adapter timeout value

2013-04-19 Thread Wolfram Sang
On Fri, Apr 19, 2013 at 09:13:54AM +, EUNBONG SONG wrote: On Fri, Apr 19, 2013 at 12:01:04AM +, EUNBONG SONG wrote: I think HZ/50 is better than 2 for adapter timeout. Basically OK. But why HZ/50? Most drivers use HZ. Actually, I just translated 2 jiffies because HZ is

Re: [PATCH v4 1/3] i2c: mux: Add i2c-arbitrator-cros-ec 'mux' driver

2013-04-06 Thread Wolfram Sang
Hi, Very interesting discussion, especially the argument that we already shipped would not be a convincing argument. I had senior kernel maintainers tell me and the company I work for that we should submit _all_ our platform specific kernel code and drivers for inclusion into the

Re: [PATCH v4 1/3] i2c: mux: Add i2c-arbitrator-cros-ec 'mux' driver

2013-04-08 Thread Wolfram Sang
Guenter, I think there is a difference between a bad driver or underlying hardware. To me, shipped applies to hardware or firmware which can not be upgraded, not to the software running on it. OK. Valuable distinction. board support hosted in the I2C directory. But that is exactly what I

Re: [PATCH v4 1/3] i2c: mux: Add i2c-arbitrator-cros-ec 'mux' driver

2013-04-08 Thread Wolfram Sang
On Wed, Mar 13, 2013 at 09:36:21AM -0700, Doug Anderson wrote: The i2c-arbitrator-cros-ec driver implements the arbitration scheme that the Embedded Controller (EC) on the ARM Chromebook expects to use for bus multimastering. This i2c-arbitrator-cros-ec driver could also be used in other

Re: [1/7] i2c-designware: move to managed functions (devm_*)

2013-04-09 Thread Wolfram Sang
@@ -108,32 +108,27 @@ static int dw_i2c_probe(struct platform_device *pdev) return irq; /* -ENXIO */ } - ioarea = request_mem_region(mem-start, resource_size(mem), - pdev-name); - if (!ioarea) { - dev_err(pdev-dev, I2C region

Re: [3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-04-09 Thread Wolfram Sang
@@ -296,10 +273,11 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, snprintf(adap-name, sizeof(adap-name), i2c-designware-pci-%d, adap-nr); - r = request_irq(pdev-irq, i2c_dw_isr, IRQF_SHARED, adap-name, dev); + r = devm_request_irq(pdev-dev, pdev-irq,

Re: [4/7] i2c-designware: use dynamic adapter numbering on Lynxpoint

2013-04-09 Thread Wolfram Sang
On Thu, Mar 21, 2013 at 02:09:57AM -, Mika Westerberg wrote: It is not good idea to mix static and dynamic I2C adapter numbering. In this particular case on Lynxpoint we had graphics I2C adapter which took the first numbers preventing the designware I2C driver from using the adapter

Re: [5/7] i2c-designware: enable/disable the controller properly

2013-04-09 Thread Wolfram Sang
+static void __i2c_dw_enable(struct dw_i2c_dev *dev, bool enable) +{ + int timeout = 100; + + do { + dw_writel(dev, enable, DW_IC_ENABLE); + if ((dw_readl(dev, DW_IC_ENABLE_STATUS) 1) == enable) + return; + +

Re: [1/7] i2c-designware: move to managed functions (devm_*)

2013-04-09 Thread Wolfram Sang
i2c_dw_disable_int(dev); - r = request_irq(dev-irq, i2c_dw_isr, IRQF_SHARED, pdev-name, dev); + r = devm_request_irq(pdev-dev, dev-irq, i2c_dw_isr, IRQF_SHARED, + pdev-name, dev); Is it ensured that no interrupts will happen during remove? Because the adapter

Re: [5/7] i2c-designware: enable/disable the controller properly

2013-04-09 Thread Wolfram Sang
On Tue, Apr 09, 2013 at 12:28:36PM +0300, Mika Westerberg wrote: On Tue, Apr 09, 2013 at 11:09:14AM +0200, Wolfram Sang wrote: +static void __i2c_dw_enable(struct dw_i2c_dev *dev, bool enable) +{ + int timeout = 100; + + do { + dw_writel(dev, enable, DW_IC_ENABLE

Re: [4/7] i2c-designware: use dynamic adapter numbering on Lynxpoint

2013-04-09 Thread Wolfram Sang
On Tue, Apr 09, 2013 at 12:23:19PM +0300, Mika Westerberg wrote: On Tue, Apr 09, 2013 at 11:06:05AM +0200, Wolfram Sang wrote: On Thu, Mar 21, 2013 at 02:09:57AM -, Mika Westerberg wrote: It is not good idea to mix static and dynamic I2C adapter numbering. In this particular case

Re: [PATCH 1/1] The AT24 driver only uses page size of 1 byte if no platform data is provided to the probe function. When this eeprom is detected via open firmware tree in powerpc architecture the cor

2013-04-09 Thread Wolfram Sang
On Mon, Mar 18, 2013 at 05:52:13PM +0400, Sergey Gerasimov wrote: Signed-off-by: Sergey Gerasimov sergey.gerasi...@astrosoft-development.com NAK. Page size may differ across vendors, so we can't hardcode values in that table. There is a pagesize property for devicetree. And please make sure you

Re: [PATCH] i2c: remove CONFIG_HOTPLUG ifdefs

2013-04-09 Thread Wolfram Sang
On Tue, Apr 09, 2013 at 09:46:39AM +0800, Yijing Wang wrote: CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG ifdefs in i2c files. Signed-off-by: Yijing Wang wangyij...@huawei.com Applied to for-next, thanks! -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v5 2/3] ARM: dts: Add i2c-arbitrator bus for exynos5250-snow

2013-04-10 Thread Wolfram Sang
On Wed, Apr 10, 2013 at 07:59:17PM +0900, Kukjin Kim wrote: Doug Anderson wrote: We need to use the i2c-arbitrator to talk to any of the devices on i2c bus 4 on exynos5250-snow so that we don't confuse the embedded controller (EC). Add the i2c-arbitrator to the device tree. As we add

Re: [PATCH 1/3] x86: Add basic support for the Congatec CGEB BIOS interface

2013-04-11 Thread Wolfram Sang
any update on your patch series to support CGEB? I have some time to work on these patches but I don't want to duplicate the work. I really want this watches to hit mainline soon. I acked the I2C patch and this is all I can do for this series. -- To unsubscribe from this list: send the line

Re: [PATCH 08/30] i2c: s3c2410: make header file local

2013-04-14 Thread Wolfram Sang
On Thu, Apr 11, 2013 at 02:04:50AM +0200, Arnd Bergmann wrote: No other file in the kernel besides i2c-s3c2410.c uses the current plat/regs-iic.h, so we can simply move the header file to live in the same directory as the driver, as a preparation to multiplatform builds. What about putting

Re: [PATCH V4] i2c: davinci: update to devm_* API

2013-03-29 Thread Wolfram Sang
On Tue, Mar 05, 2013 at 05:14:45PM +0530, Vishwanathrao Badarkhe, Manish wrote: Update the code to use devm_* API so that driver core will manage resources. Signed-off-by: Vishwanathrao Badarkhe, Manish manish...@ti.com Applied the following fix: + dev-base =

Re: [PATCH 0/6] Make return type of i2c_del_adapter() (and i2c_del_mux_adapter()) void

2013-03-30 Thread Wolfram Sang
On Sat, Mar 09, 2013 at 07:16:43PM +0100, Lars-Peter Clausen wrote: Currently i2c_del_adapter() returns 0 on success and potentially an error code on failure. Unfortunately this doesn't mix too well with the Linux device driver model. An i2c_adapter is usually registered in a drivers probe

Re: [PATCH 3/6] i2c: Ignore return value of i2c_del_adapter()

2013-03-30 Thread Wolfram Sang
On Sat, Mar 09, 2013 at 07:16:46PM +0100, Lars-Peter Clausen wrote: i2c_del_adapter() always returns 0. So all checks testing whether it will be non zero will always evaluate to false and the conditional code is dead code. This patch updates all callers of i2c_del_mux_adapter() to ignore the

Re: [PATCH] ACPI / I2C: Use parent's ACPI_HANDLE() in acpi_i2c_register_devices()

2013-04-01 Thread Wolfram Sang
...@intel.com Shall this go via the I2C tree? If not, for the I2C part: Acked-by: Wolfram Sang w...@the-dreams.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/6] Make return type of i2c_del_adapter() (and i2c_del_mux_adapter()) void

2013-04-01 Thread Wolfram Sang
On Sat, Mar 09, 2013 at 07:16:43PM +0100, Lars-Peter Clausen wrote: Currently i2c_del_adapter() returns 0 on success and potentially an error code on failure. Unfortunately this doesn't mix too well with the Linux device driver model. An i2c_adapter is usually registered in a drivers probe

Current I2C workflow

2013-03-19 Thread Wolfram Sang
Hi, working on the transparency thing here regarding the current I2C workflow. I am currently on, well, let's call it something between holiday and retreat. I will work on (hopefully all) pending I2C patches half-time until Friday and then probably disappear for about 3 weeks again. Disappearing

Re: [PATCH v3] i2c: busses/i2c-pxa.c: fix potential null pointer dereference error

2013-03-21 Thread Wolfram Sang
On Thu, Feb 14, 2013 at 12:28:18PM +0100, Cong Ding wrote: If it goes to eclk through line 1107, the variable res would be NULL. It will cause a null pointer dereference error if we call release_mem_region. The correct way should be using devm_kzalloc rather than kzalloc to allocate memory.

Re: [PATCH v4 2/2] i2c: pxa: Use i2c-core to get bus number now

2013-03-21 Thread Wolfram Sang
On Fri, Mar 01, 2013 at 08:57:32AM -0800, Doug Anderson wrote: The commit: i2c-core: dt: Pick i2c bus number from i2c alias if present adds support for automatically picking the bus number based on the alias ID. Remove the now unnecessary code from i2c-pxa that did the same thing.

Re: [PATCH] i2c: tegra: check the clk_prepare_enable() return value

2013-03-22 Thread Wolfram Sang
On Fri, Mar 15, 2013 at 09:04:08PM +0530, Laxman Dewangan wrote: NVIDIA's Tegra SoC allows read/write of controller register only if controller clock is enabled. System hangs if read/write happens to registers without enabling clock. clk_prepare_enable() can be fail due to unknown reason and

Re: [PATCH 1/1] i2c: iSMT SMBus patch for Intel Avoton DeviceIDs

2013-03-22 Thread Wolfram Sang
On Thu, Feb 21, 2013 at 02:30:43PM -0800, Seth Heasley wrote: This patch adds the iSMT SMBus Controller DeviceIDs for the Intel Avoton SOC. Signed-off-by: Seth Heasley seth.heas...@intel.com Applied to for-current, thanks! -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] MAINTAINERS: add maintainer entry for atmel i2c driver

2013-03-22 Thread Wolfram Sang
On Fri, Mar 15, 2013 at 04:32:57PM +0100, ludovic.desroc...@atmel.com wrote: From: Ludovic Desroches ludovic.desroc...@atmel.com Create an entry for atmel i2c driver: i2c-at91.c Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Applied to for-current, thanks! -- To unsubscribe

Re: I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8

2013-03-22 Thread Wolfram Sang
On Tue, Feb 26, 2013 at 09:08:43PM +, 송은봉 wrote: I've been debugging the abnormal operation of i2c on octeon. If a process is terminated by signal in the middle of i2c operation, next i2c read operation which is done by another process was failed. So i changed to ignore signal in the

[PULL REQUEST] i2c for 3.9

2013-03-22 Thread Wolfram Sang
Linus, please pull the updates for the 3.9 kernel. There is one bugfix for the tegra driver. There are two updates regarding email addresses and MAINTAINERS which I like to have up-to-date so people can be reached immediately. While we are here, there is on PCI_ID addition. Thanks, Wolfram

Re: [RFC: PATCH v5] i2c: exynos5: add High Speed I2C controller driver

2013-03-26 Thread Wolfram Sang
+ /* CLK_DIV max is 256 */ + for (i = 0; i 256; i++) { + utemp1 = utemp0 / (i + 1); + /* SCLK_L/H max is 256 / 2 */ + if (utemp1 128) { I think TSCLK_L and TSCLK_H both can be configured upto 255.Why limiting it to 128 ? By

Re: [PATCH 1/3] x86: Add basic support for the Congatec CGEB BIOS interface

2013-03-26 Thread Wolfram Sang
Hi Sascha, Any other comments to this series? Is the base cgeb support ok to include? I had a few comments to the I2C driver. All the best, Wolfram -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH RFC] misc/at24: distinguish between eeprom and fram chips

2012-12-04 Thread Wolfram Sang
0x08/* chip is fram not eeprom */ void(*setup)(struct memory_accessor *, void *context); void*context; Thanks for your interest nonetheless, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial

[PATCH] MAINTAINERS: change my email and repos

2013-02-08 Thread Wolfram Sang
Change to my private email, change to my shiny new kernel.org repos, and drop outdated entry from the former maintainer. Drop my PCA entry, too, since it belongs to the I2C realm anyhow. Signed-off-by: Wolfram Sang wolf...@the-dreams.de --- MAINTAINERS | 16 +++- 1 file changed, 3

Re: [PATCH v2] i2c: convert to idr_alloc()

2013-02-10 Thread Wolfram Sang
Hi, thanks for doing this cleanup series. Looks very worthwhile! --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -935,25 +935,16 @@ out_list: */ int i2c_add_adapter(struct i2c_adapter *adapter) { - int id, res = 0; - -retry: - if

Re: [PATCH 2/6] idr: remove MAX_IDR_MASK and move left MAX_IDR_* into idr.c

2013-02-10 Thread Wolfram Sang
as described above. This leaves MAX_IDR_MASK without any user, remove it and relocate other MAX_IDR_* constants to lib/idr.c. Signed-off-by: Tejun Heo t...@kernel.org For the i2c-part: Acked-by: Wolfram Sang wolf...@the-dreams.de -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v2 1/2] i2c-core: dt: Pick i2c bus number from i2c alias if present

2013-02-10 Thread Wolfram Sang
Hi Doug, On Mon, Jan 14, 2013 at 10:53:21AM -0800, Doug Anderson wrote: This allows you to get the equivalent functionality of i2c_add_numbered_adapter() with all data in the device tree and no special case code in your driver. This is a common device tree technique. For quick reference,

Re: [PATCH RFC] misc/at24: distinguish between eeprom and fram chips

2013-02-10 Thread Wolfram Sang
what happend to this one ? It was a patch updating Kconfig help for at24. Do you know linux-next? Have a look there... -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 3/5] i2c-i801: Add Device IDs for Intel Wellsburg PCH

2013-02-10 Thread Wolfram Sang
Seth recently sent a patch adding IDs for the Avoton: http://marc.info/?l=linux-kernelm=135959209218860w=2 Your patch conflicts with his. Please rebase on top of Seth's patch, so that both patches can be applied in sequence. Yes, please. --- a/drivers/i2c/busses/i2c-i801.c +++

Re: [PATCH v4] i2c: exynos5: add High Speed I2C controller driver

2013-02-01 Thread Wolfram Sang
eeprom do you have? Check its datasheet, some in deed use 8 addresses. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8

2013-02-26 Thread Wolfram Sang
On Tue, Feb 26, 2013 at 11:02:17AM +0100, Jiri Kosina wrote: On Fri, 22 Feb 2013, 송은봉 wrote:   I've been debugging the abnormal operation of i2c on octeon. If a process is terminated by signal in the middle of i2c operation, next i2c read operation which is done by another process

[PATCH] shmem: fix build regression

2013-02-28 Thread Wolfram Sang
commit 6b4d0b27 (clean shmem_file_setup() a bit) broke allnoconfig since this needs the NOMMU path where 'error' is still needed: mm/shmem.c:2935:2: error: 'error' undeclared (first use in this function) Signed-off-by: Wolfram Sang w...@the-dreams.de Cc: Al Viro v...@zeniv.linux.org.uk --- mm

Re: [PATCH v3 0/2] Add automatic bus number support for i2c busses with device tree

2013-02-28 Thread Wolfram Sang
Doug Anderson (2): i2c-core: dt: Pick i2c bus number from i2c alias if present i2c: pxa: Use i2c-core to get bus number now drivers/i2c/busses/i2c-pxa.c | 20 drivers/i2c/i2c-core.c | 54 2 files changed, 49

Re: [PATCH v4 1/2] i2c-core: dt: Pick i2c bus number from i2c alias if present

2013-03-01 Thread Wolfram Sang
On Fri, Mar 01, 2013 at 08:57:31AM -0800, Doug Anderson wrote: This allows you to get the equivalent functionality of i2c_add_numbered_adapter() with all data in the device tree and no special case code in your driver. This is a common device tree technique. For quick reference, the FDT

Re: [PATCH 1/2] i2c-core: Add gpio based bus arbitration implementation

2013-01-24 Thread Wolfram Sang
. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: [PATCH 1/2] i2c-core: Add gpio based bus arbitration implementation

2013-01-24 Thread Wolfram Sang
On Thu, Jan 24, 2013 at 07:18:47PM +0800, Mark Brown wrote: On Thu, Jan 24, 2013 at 12:13:29PM +0100, Wolfram Sang wrote: On Sat, Dec 15, 2012 at 11:21:36PM +0900, Mark Brown wrote: also get things like read operations which appear as multiple transactions on the I2C bus so require

Re: [PATCH 1/2] i2c-s3c2410: Leave the bus disabled unless it is in use

2013-01-24 Thread Wolfram Sang
, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: question about drivers/i2c/busses/i2c-davinci.c

2013-01-24 Thread Wolfram Sang
will free the interrupt only after remove has finished. Interrupts need to be properly masked out before. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc

Re: [PATCH] at24: extend driver to allow writing via i2c_smbus_write_byte_data

2013-01-24 Thread Wolfram Sang
; + int use_smbuse_write; Can't you use the same 'use_smbus' variable and do a similar switch-case as in the read function? Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de

Re: [PATCH 3/3] i2c-i801: SMBus patch for Intel Avoton DeviceIDs

2013-01-27 Thread Wolfram Sang
to that. -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: [PATCH 10/33] i2c: Convert to devm_ioremap_resource()

2013-01-22 Thread Wolfram Sang
can be removed from the failure code paths. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de Cc: Wolfram Sang w.s...@pengutronix.de Cc: Ben Dooks ben-li...@fluff.org Cc: linux-...@vger.kernel.org I still have the concerns I mentioned in the previous discussion but the series

Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-23 Thread Wolfram Sang
On Tue, Jan 08, 2013 at 02:40:09PM +0100, Laurent Navet wrote: sizeof when applied to a pointer typed expression gives the size of the pointer The semantic patch that makes this output is available in scripts/coccinelle/misc/noderef.cocci. More information about semantic patching is

[PULL REQUEST] i2c for 3.8

2013-01-23 Thread Wolfram Sang
|6 +++--- drivers/i2c/busses/i2c-sirf.c|4 drivers/i2c/muxes/i2c-mux-pinctrl.c |2 +- 5 files changed, 16 insertions(+), 6 deletions(-) -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http

Re: [PATCH V2 0/4] i2c: s3c2410: Add devm_* apis and cleanup

2013-01-23 Thread Wolfram Sang
On Fri, Nov 23, 2012 at 02:11:51PM +0530, Tushar Behera wrote: This patchset cleans up the probe function of i2c-s3c2410 driver. These have been tested on Exynos4210 based Origen board. Changes since V1: * devm_request_mem_region and devm_ioremap calls were replaced by

Re: [PATCH RFC] misc/at24: distinguish between eeprom and fram chips

2013-01-23 Thread Wolfram Sang
On Fri, Dec 07, 2012 at 11:14:28AM +0100, Lars Poeschel wrote: I wanted to use a fm24c04 i2c fram chip with linux. I grepped the source and found nothing. I later found that my chip can be handled by at24 eeprom driver. It creates a sysfs file called eeprom to read from and

Re: [PATCH] drivers: i2c-nforce2: fix coding style issues

2013-01-23 Thread Wolfram Sang
On Thu, Jan 10, 2013 at 03:07:42PM +0100, Laurent Navet wrote: avoid these checkpatch.pl issues : - ERROR: foo * bar should be foo *bar - ERROR: switch and case should be at the same indent - ERROR: (foo*) should be (foo *) - ERROR: do not use assignment in if condition - ERROR: space

Re: [PATCH] i2c: tegra: add support for Tegra114 SoC

2013-01-23 Thread Wolfram Sang
On Sat, Jan 05, 2013 at 05:34:46PM +0530, Laxman Dewangan wrote: NVIDIA's Tegra114 has following enhanced feature in i2c controller: - Enable/disable control for per packet transfer complete interrupt. Earlier SoCs could not disable this. - Single clock source for standard/fast and HS mode

Re: [PATCH 0/4] i2c-designware: add Intel Lynxpoint support

2013-01-23 Thread Wolfram Sang
On Thu, Jan 17, 2013 at 12:31:03PM +0200, Mika Westerberg wrote: Hi all, This series adds support for the Intel Lynxpoint Low Power Subsystem I2C controllers. They are compatible with the DesignWare I2C controller. Patches [1/4] and [2/4] are fixes that are necessary to get the driver

Re: [PATCH v2 2/4] input: keyboard: tegra: use devm_* for resource allocation

2013-01-15 Thread Wolfram Sang
understanding. Please put me on CC, if you post the patches. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions | http://www.pengutronix.de/ | signature.asc Description: Digital signature

Re: [PATCH -mm] i2c: style cleanups after idr_alloc() conversion

2013-02-13 Thread Wolfram Sang
-by: Tejun Heo t...@kernel.org Acked-by: Wolfram Sang wolf...@the-dreams.de Would be nice to fold this patch into the previous one, if possible. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH 2/3] i2c: Add Congatec CGEB I2C driver

2013-02-14 Thread Wolfram Sang
-by: Wolfram Sang w...@the-dreams.de Otherwise, let me know if and when I should pick it up. Thanks, Wolfram -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH 10/11] ARM: s3c: i2c: add platform_device forward declaration

2013-02-15 Thread Wolfram Sang
/platform_data/i2c-s3c2410.h:37:26: warning: 'struct platform_device' declared inside parameter list [enabled by default] Signed-off-by: Arnd Bergmann a...@arndb.de Fine with me: Acked-by: Wolfram Sang w...@the-dreams.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] i2c: tegra: remove warning dump if timeout happen in transfer

2013-02-15 Thread Wolfram Sang
On Fri, Feb 15, 2013 at 06:31:07PM +0530, Shubhrajyoti Datta wrote: On Thu, Feb 14, 2013 at 6:13 PM, Laxman Dewangan ldewan...@nvidia.com wrote: If timeout error occurs in the i2c transfer then it was dumping warning of call stack. Remove the warning dump as there is may be possibility

Re: i2c/i2c-mxs: use devm_request_and_ioremap

2013-02-15 Thread Wolfram Sang
On Sat, Feb 02, 2013 at 02:14:57PM -, =?utf-8?q?Peter_H=C3=BCwe_=3CPeterHuewe=40gmx=2Ede=3E?= wrote: Replace a call to devm_request_mem_region followed by a call to dev_ioremap_nocache with devm_request_and_ioremap which does the same. And since res_size isn't needed anymore we can remove

Re: [PATCH V3] i2c: davinci: update to devm_* API

2013-02-15 Thread Wolfram Sang
On Thu, Feb 07, 2013 at 06:22:00PM +0530, Vishwanathrao Badarkhe, Manish wrote: Update the code to use devm_* API so that driver core will manage resources. Also, if devm_request_and_ioremap fails return -EADDRNOTAVAIL instead of -EBUSY. Signed-off-by: Vishwanathrao Badarkhe, Manish

Re: [PATCH] i2c: tegra: remove warning dump if timeout happen in transfer

2013-02-15 Thread Wolfram Sang
On Thu, Feb 14, 2013 at 06:13:33PM +0530, Laxman Dewangan wrote: If timeout error occurs in the i2c transfer then it was dumping warning of call stack. Remove the warning dump as there is may be possibility that some slave devices are busy and not responding the i2c communication.

Re: [PATCH] i2c: mux: Remove unneeded platform_set_drvdata to NULL in remove

2013-02-15 Thread Wolfram Sang
On Fri, Feb 15, 2013 at 10:41:22AM -0800, Doug Anderson wrote: Stephen Warren pointed out as part of a code review of another mux driver that there should be no need to have platform_set_drvdata(pdev, NULL) in the remove function. Get rid of it in the i2c-mux-gpio driver. See Stephen's

Re: [PATCH -next] i2c: fix i2c-ismt.c printk format warning

2013-02-15 Thread Wolfram Sang
On Fri, Feb 15, 2013 at 10:51:40AM -0800, Randy Dunlap wrote: From: Randy Dunlap rdun...@infradead.org Fix printk format warning. dma_addr_t can be 32-bit or 64-bit, so cast it to long long for printing. This also matches the printk format specifier that is already used.

Re: [PATCH] i2c: mux: Remove unneeded platform_set_drvdata to NULL in remove

2013-02-15 Thread Wolfram Sang
I'll re-send with I2C subsystem wide. I probably won't attempt the whole kernel wide at this point, but would be very happy if someone else wanted to! :) Thanks. Please double check that setting NULL is really unneeded for the non-platform-bus variants, too, or skip those if you are unsure.

Re: [PATCH] i2c: tegra: remove warning dump if timeout happen in transfer

2013-02-15 Thread Wolfram Sang
On Fri, Feb 15, 2013 at 12:40:47PM -0700, Stephen Warren wrote: On 02/15/2013 12:18 PM, Wolfram Sang wrote: On Thu, Feb 14, 2013 at 06:13:33PM +0530, Laxman Dewangan wrote: If timeout error occurs in the i2c transfer then it was dumping warning of call stack. Remove the warning dump

  1   2   3   4   5   6   7   8   9   10   >