Issue with USB/i2C

2015-02-16 Thread Christian ROSALIE
Hello, I've got an issue with and USB/i2c device when i plug and unplug several times the usb device with a user-application using /dev/i2c-* file the kernel crashes because the data containing the struct i2c_adapter has been dealocated. In the probe function of my driver, i allocates my

[PATCH 2/2] i2c: driver for the Conexant Digicolor I2C controller

2015-02-16 Thread Baruch Siach
This commit adds a driver for the I2C master controller on the CX92755 SoC. The CX92755 is one SoC in the Conexant Digicolor series. This driver should support other SoCs from that series. Only 7bit slave addresses are currently supported. Tested on the Equinox CX92755 EVK, using i2c-tools

Re: [PATCH] eeprom: at24: Add support for large EEPROMs connected to SMBus adapters

2015-02-16 Thread Guenter Roeck
On 02/16/2015 04:09 AM, Wolfram Sang wrote: Hi Guenter, I wonder where we are with thisp patch; I don't recall a reply to my previous e-mail. Sorry for the late reply. I needed to recover from a HDD headcrash :( Do you need some more time to think about it ? Otherwise I'll publish an

Re: [PATCHv3 4/5] i2c: i801: Remove pci_enable_device() call from i801_resume()

2015-02-16 Thread Jean Delvare
On Fri, 13 Feb 2015 15:52:24 +0200, Jarkko Nikula wrote: Since pci_disable_device() is not called from i801_suspend() and power state is set already it means that subsequent pci_enable_device() calls do practically nothing but monotonically increase struct pci_dev enable_cnt. Signed-off-by:

Re: [PATCHv3 5/5] i2c: i801: Use managed pcim_* PCI device initialization and reservation

2015-02-16 Thread Jean Delvare
On Fri, 13 Feb 2015 15:52:25 +0200, Jarkko Nikula wrote: Simplifies the code a bit and makes easier to disable PCI device on driver detach by removing the pcim_pin_device() call in the future if needed. Reason why i2c-i801.c doesn't ever call pci_disable_device() was because it made some

Re: [PATCH] eeprom: at24: Add support for large EEPROMs connected to SMBus adapters

2015-02-16 Thread Wolfram Sang
Hi Guenter, I wonder where we are with thisp patch; I don't recall a reply to my previous e-mail. Sorry for the late reply. I needed to recover from a HDD headcrash :( Do you need some more time to think about it ? Otherwise I'll publish an out-of-tree version of the at24 driver with the