Re: [PATCH 00/21] On-demand device registration

2015-06-15 Thread Alexander Holler
Am 15.06.2015 um 10:58 schrieb Linus Walleij: On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler hol...@ahsoftware.de wrote: And because you've said that problem space is a bit convoluted and I disagree, here's a summary from my point of view: 1. All the necessary information (dependencies

Re: [PATCH V2 1/3] pci_ids: Add AMD KERNCZ device ID support

2015-06-15 Thread Ulf Hansson
On 12 June 2015 at 22:34, Bjorn Helgaas bhelg...@google.com wrote: On Thu, Jun 11, 2015 at 08:11:45PM +0800, Wan ZongShun wrote: The KERNCZ is new AMD SB/FCH generation name, like HUDSON2. We will adopt 0x790b as device ID since from this gereration. s/We will adopt 0x790b as device ID since

Re: [PATCH] i2c: designware: use enable on resume instead initialization

2015-06-15 Thread Mika Westerberg
On Fri, Jun 12, 2015 at 07:45:00PM -0300, Lucas De Marchi wrote: Hi Mika, On Wed, Jun 10, 2015 at 4:55 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Mon, Jun 08, 2015 at 02:50:28PM -0300, lucas.de.mar...@gmail.com wrote: @@ -320,7 +320,7 @@ static int dw_i2c_resume(struct

Re: [PATCH V2 2/3] i2c-piix4: Use Macro for AMD CZ SMBus device ID

2015-06-15 Thread Ulf Hansson
On 11 June 2015 at 15:07, Wolfram Sang w...@the-dreams.de wrote: On Thu, Jun 11, 2015 at 08:11:46PM +0800, Wan ZongShun wrote: Change AMD CZ SMBUS device ID from 0x790b to use Macro definition Signed-off-by: Wan ZongShun vincent@amd.com I think it makes sense that this patch goes in via

Re: [PATCH v2] HID: support i2c write-read and large transfers in hid-cp2112

2015-06-15 Thread Antonio Borneo
On Sat, Jun 13, 2015 at 4:26 PM, Ellen Wang el...@cumulusnetworks.com wrote: cp2112_i2c_xfer() only supports a single i2c_msg and only reads up to 61 bytes. More than one message at a time and longers reads just return errors. This breaks certain important cases. For example, the at24

Re: [PATCH V2 3/3] SDHCI: Change AMD SDHCI quirk application scope

2015-06-15 Thread Ulf Hansson
On 11 June 2015 at 14:11, Wan ZongShun vincent@amd.com wrote: Change this quirk to apply to AMD Carrizo platform. Signed-off-by: Wan ZongShun vincent@amd.com Tested-by: Nath, Arindam arindam.n...@amd.com Tested-by: Ramesh, Ramya ramya.ram...@amd.com Thanks, applied! I changed the

Re: [PATCH 00/21] On-demand device registration

2015-06-15 Thread Linus Walleij
On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler hol...@ahsoftware.de wrote: And because you've said that problem space is a bit convoluted and I disagree, here's a summary from my point of view: 1. All the necessary information (dependencies between drivers) already exists at compile time.

Re: [PATCH V2 2/3] i2c-piix4: Use Macro for AMD CZ SMBus device ID

2015-06-15 Thread Jean Delvare
On Thu, 11 Jun 2015 20:11:46 +0800, Wan ZongShun wrote: Change AMD CZ SMBUS device ID from 0x790b to use Macro definition Signed-off-by: Wan ZongShun vincent@amd.com --- drivers/i2c/busses/i2c-piix4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 0/9] i2c: xiic: cleanups

2015-06-15 Thread Shubhrajyoti Datta
This is a series of cleanups for the axi iic. tested on zc702 and microblaze. Shubhrajyoti Datta (9): i2c: xiic: Do not continue in case of errors in Rx i2c: xiic: Remove the disabling of interrupts i2c: xiic: move the xiic_process to thread context i2c: xiic: Do not reset controller

[PATCH-V2 06/12] i2c: pxa: Update debug function to dump more info on error

2015-06-15 Thread Vaibhav Hiremath
Update i2c_pxa_scream_blue_murder() fn to print more information in case of error. Also, use dev_err variants instead of printk. Signed-off-by: Jett.Zhou jtz...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org Cc: Wolfram Sang w...@the-dreams.de ---

[PATCH 6/9] i2c: xiic: Remove busy loop while waiting for bus busy

2015-06-15 Thread Shubhrajyoti Datta
Remove the busy loop while waiting for bus busy. Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 7b81aac..8142c2e

[PATCH 2/9] i2c: xiic: Remove the disabling of interrupts

2015-06-15 Thread Shubhrajyoti Datta
Currently the interrupts are disabled at the start of the isr and enabled at the end of the isr. Remove the same. Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git

[PATCH-V2 07/12] i2c:pxa: Use devm_ variants in probe function

2015-06-15 Thread Vaibhav Hiremath
This patch cleans up i2c_pxa_probe() function, - Use devm_ variants wherever This will clean both probe exit and i2c_pxa_remove() functions - Check platform resource before parsing any other data from DT/platform - Use dev_err on failure from i2c_add_numbered_adapter() - Use pr_info

[PATCH-V2 03/12] i2c: pxa: Return I2C_RETRY when timeout in pio mode

2015-06-15 Thread Vaibhav Hiremath
From: Shouming Wang wang...@marvell.com In case of timeout in pio mode of operation return I2C_RETRY. This behavior will be same as interrupt mode of operation. Signed-off-by: Shouming Wang wang...@marvell.com [vaibhav.hirem...@linaro.org: Updated changelog] Signed-off-by: Vaibhav Hiremath

[PATCH-V2 08/12] i2c: pxa: enable/disable i2c module across msg xfer

2015-06-15 Thread Vaibhav Hiremath
From: Yi Zhang yizh...@marvell.com Enable i2c module/unit before transmission and disable when it finishes. why? It's because the i2c bus may be distrubed if the slave device, typically a touch, powers on. As we do not want to break slave mode support, this patch introduces DT property to

[PATCH-V2 01/12] i2c: pxa: keep i2c irq ON in suspend

2015-06-15 Thread Vaibhav Hiremath
From: Leilei Shang shan...@marvell.com During suspend there may still be some i2c access happening, as the interrupt is shared between multiple drivers. And if we don't keep i2c irq ON, there may be i2c access timeout if i2c is in irq mode of operation. Signed-off-by: Raul Xiong

[PATCH-V2 02/12] i2c: pxa: No need to set slave addr for i2c master mode reset

2015-06-15 Thread Vaibhav Hiremath
Normally i2c controller works as master, so slave addr is not needed, or it will impact some slave device (eg. ST NFC chip) i2c accesses, because it has the same i2c address with controller. Signed-off-by: Jett.Zhou jtz...@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org

[PATCH-V2 10/12] i2c: pxa: Add support for pxa910/988 new configuration features

2015-06-15 Thread Vaibhav Hiremath
PXA910 family of devices supports SCLK adjustment through TWSI_ILCR TWSI_IWCR registers (for all supported modes). This patch also adds these two new register entries to struct pxa_reg_layout and struct pxa_i2c. As discussed in the previous patch-series, the idea here is to add standard DT

[PATCH-V2 11/12] i2c: pxa: Add ILCR (tLow tHigh) configuration support

2015-06-15 Thread Vaibhav Hiremath
With addition of PXA910 family of devices, the TWSI module supports SCL clock adjustment using ILCR register. This patch enables the control and configuration of ICLR through DT properties, i2c-sclk-high-time-ns: SCLK high time (tHigh), for standard/fast/high speed mode i2c-sclk-low-time-ns:

[PATCH-V2 00/12] i2c: pxa: Fixes, cleanup and support for pxa910 family

2015-06-15 Thread Vaibhav Hiremath
This patch series fixes bugs/warnings, cleans up the code and adds support for PXA910 family of devices to PXA I2C bus driver. There has been one attempt made sometime back in 2012 to upstream some of the patches from below list, but did not get follow up later. I have consolidated all the

[PATCH-V2 09/12] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-06-15 Thread Vaibhav Hiremath
Driver now supports enable/disable across msg xfer, which user can control it by new DT property - i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer and enable it back before xfer. Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org ---

[PATCH-V2 05/12] i2c: pxa: Remove compile warnning in 64bit mode

2015-06-15 Thread Vaibhav Hiremath
From: Yipeng Yao yp...@marvell.com Fix below warning message, coming from 64 bit toolchain. drivers/i2c/busses/i2c-pxa.c:1237:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Yipeng Yao yp...@marvell.com [vaibhav.hirem...@linaro.org: Updated

[PATCH-V2 12/12] Documentation: binding: add sclk adjustment properties to i2c-pxa

2015-06-15 Thread Vaibhav Hiremath
With addition of PXA910 family of devices, the TWSI module supports new feature which allows us to adjust SCLK. With DT properties i2c-pxa driver takes input configuration in nsec and converts it to respective bit-fields, - i2c-sclk-low-time-ns : SCLK low time (tlow) This property is used

[PATCH-V2 04/12] i2c: pxa: Reset i2c controller on timeout in interrupt and pio mode

2015-06-15 Thread Vaibhav Hiremath
In case of timeout during msg xfer assert reset to i2c controller for both interrupt and PIO mode of operation. Signed-off-by: Jett.Zhou jtz...@marvell.com [vaibhav.hirem...@linaro.org: Split merge patches into logical changes and update the Changelog] Signed-off-by: Vaibhav Hiremath

[PATCH 7/9] i2c: xiic: Add a msg in case of timeout

2015-06-15 Thread Shubhrajyoti Datta
Timing out is one of the serious errors. Currently we return silently upon a timeout. Adding an error message. Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH 1/9] i2c: xiic: Do not continue in case of errors in Rx

2015-06-15 Thread Shubhrajyoti Datta
Handle error cases in the Rx path Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 4dda23f..cea842e 100644 ---

[PATCH 5/9] i2c: xiic: Remove the disabling of interrupts

2015-06-15 Thread Shubhrajyoti Datta
Currently before every transfer the interrupts are disabled. Remove the same. Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c

[PATCH 4/9] i2c: xiic: Do not reset controller before every transfer

2015-06-15 Thread Shubhrajyoti Datta
Currently before every transfer the controller is reinitialised. Remove the same. Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c

[PATCH 8/9] i2c: xiic: Remove the Addressed as slave interrupt

2015-06-15 Thread Shubhrajyoti Datta
Currently there is no slave mode. Do not enable the AAS interrupt. Signed-off-by: Shubhrajyoti Datta shubh...@xilinx.com --- drivers/i2c/busses/i2c-xiic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index

[PATCH] i2c-tools: enable static use of libi2c

2015-06-15 Thread Wolfram Sang
From: Wolfram Sang wsa+rene...@sang-engineering.com When debugging embedded systems, it is often nice to simply TFTP the desired i2ctool to the target without the hazzle of dealing with shared libs. Using -static is overkill, too, so let's add a switch which will only link functions from libi2c

Re: [PATCH-V2 03/12] i2c: pxa: Return I2C_RETRY when timeout in pio mode

2015-06-15 Thread Shubhrajyoti Datta
On Mon, Jun 15, 2015 at 9:19 PM, Vaibhav Hiremath vaibhav.hirem...@linaro.org wrote: From: Shouming Wang wang...@marvell.com In case of timeout in pio mode of operation return I2C_RETRY. This behavior will be same as interrupt mode of operation. Signed-off-by: Shouming Wang

[Patch v2] driver/clk/clk-si5338: Add common clock framework driver for si5338

2015-06-15 Thread York Sun
SI5338 is a programmable clock generator. It has 4 sets of inputs, PLL, multisynth and dividers to make 4 outputs. This driver splits them into multiple clocks to comply with common clock framework. See Documentation/devicetree/bindings/clock/silabs,si5338.txt for details. Signed-off-by: York

[PATCH] i2c: slave: fix the example how to instantiate from userspace

2015-06-15 Thread Wolfram Sang
From: Wolfram Sang wsa+rene...@sang-engineering.com I copied the wrong shell code into the documentation. Sorry to all who tried to get sense out of this current example :/ Slight rewording while we are here. Reported-by: Tim Bakker bakk...@mymail.vcu.edu Signed-off-by: Wolfram Sang

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

2015-06-15 Thread Christian Gmeiner
Hi Paul Thanks for looking over my patches! 2015-06-12 11:35 GMT+02:00 Paul Bolle pebo...@tiscali.nl: A few nits. On Thu, 2015-06-11 at 22:48 +0200, Christian Gmeiner wrote: --- /dev/null +++ b/drivers/mfd/congatec-cgeb.c + * This program is free software; you can redistribute it and/or