Re: [PATCH v2] virtio-mmio: add error check for platform_get_irq

2019-07-02 Thread Ivan T. Ivanov
Quoting Ihor Matushchak (2019-07-02 17:48:18) > in vm_find_vqs() irq has a wrong type > so, in case of no IRQ resource defined, > wrong parameter will be passed to request_irq() > > Signed-off-by: Ihor Matushchak Reviewed-by: Ivan T. Ivanov Thanks! > --- > Changes in

Re: [PATCH] virtio-mmio: add error check for platform_get_irq

2019-07-02 Thread Ivan T. Ivanov
Hi, Quoting Ihor Matushchak (2019-07-02 12:59:18) > in vm_find_vqs() irq has a wrong type > so, in case of no IRQ resource defined, > wrong parameter will be passed to request_irq() > > Signed-off-by: Ihor Matushchak > --- > drivers/virtio/virtio_mmio.c | 7 ++- > 1 file changed, 6 insert

Re: [PATCH v2] mmc: sdhci-msm: Boost controller core clock

2015-12-16 Thread Ivan T. Ivanov
> On Dec 16, 2015, at 12:18 PM, Ulf Hansson wrote: > > [...] > >>> It seems like a reasonable assumption that the controller can't cope >>> with a higher clock rate than 100 MHz as "input" clock. That would >>> then mean that there are different versions of the controller, as it >>> seems like

Re: [RFC/PATCH] pinctrl: qcom: Add generic ssbi and spmi GPIO/MPP bindings

2015-11-22 Thread Ivan T. Ivanov
at we update the binding with new PMIC models and > always specify the specific model for the MPPs and gpios before > the generic compatible string in devicetree, but this at least > cuts down on adding more and more compatible strings to the > drivers until we actually need them.

Re: [PATCH] spmi-pmic-arb: support configurable number of peripherals

2015-10-15 Thread Ivan T. Ivanov
> On Oct 15, 2015, at 1:43 AM, Stephen Boyd wrote: > > On 09/15/2015 11:27 AM, Stephen Boyd wrote: >> On 09/15, Ivan T. Ivanov wrote: >>> On Mon, 2015-09-14 at 18:28 -0700, Stephen Boyd wrote: >>>> On 09/14/2015 02:54 PM, Stephen Boyd wrote: >>>>&

Re: [RFC][PATCH] spi: Setup the master controller driver before setting the chipselect

2015-10-14 Thread Ivan T. Ivanov
Adding Andy. > On Oct 13, 2015, at 12:01 AM, Franklin S Cooper Jr wrote: > > Some devices depend on the master controller driver setup function being > called before calling any chipselect functions. > > Insure that this is done otherwise uninitialized structures may be > accessed causing a ke

Re: [PATCH v2 4/6] tty: serial: msm: Add TX DMA support

2015-09-30 Thread Ivan T. Ivanov
On Wed, 2015-09-30 at 14:29 +0100, Mark Rutland wrote: > On Wed, Sep 30, 2015 at 01:08:24PM +0100, Ivan T. Ivanov wrote: > > Add transmit DMA support for UARTDM type of controllers. > > > > Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine > > and APQ8016,

[PATCH v3 1/6] tty: serial: msm: Add mask value for UART_DM registers

2015-09-30 Thread Ivan T. Ivanov
UART_IPR_RXSTALE_LAST for UART_DM core so do it only for UART core. Signed-off-by: Pramod Gurav Reviewed-by: Stephen Boyd Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 26 -- drivers/tty/serial/msm_serial.h | 2 ++ 2 files changed, 22 insertions(+), 6 deletions

[PATCH v3 5/6] tty: serial: msm: Add RX DMA support

2015-09-30 Thread Ivan T. Ivanov
Add receive DMA support for UARTDM type of controllers. Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine and APQ8016, which have UARTDM v1.4 and BAM DMA engine. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 3 + drivers/tty/serial

[PATCH v3 6/6] tty: serial: msm: Remove 115.2 Kbps maximum baud rate limitation

2015-09-30 Thread Ivan T. Ivanov
UART controller is capable to perform transfers up to 4 Mbps. Remove artificial 115.2 Kbps limitation. Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b

[PATCH v3 4/6] tty: serial: msm: Add TX DMA support

2015-09-30 Thread Ivan T. Ivanov
Add transmit DMA support for UARTDM type of controllers. Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine and APQ8016, which have UARTDM v1.4 and BAM DMA engine. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 3 + drivers/tty/serial

[PATCH v3 2/6] tty: serial: msm: replaces (1 << x) with BIT(x) macro

2015-09-30 Thread Ivan T. Ivanov
From: Pramod Gurav Replaces (1 << x) with BIT(x) macro Signed-off-by: Pramod Gurav Reviewed-by: Stephen Boyd Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.h | 44 - 1 file changed, 22 insertions(+), 22 deletions(-) diff -

[PATCH v3 0/6] tty: serial: msm: Add DMA support and fix bit definitions

2015-09-30 Thread Ivan T. Ivanov
Hi, This is the third version of patches which add DMA support for UARTDM type of hardware found in Qualcomm chip sets. Changes since v0 (https://lkml.org/lkml/2015/9/12/108): * Fixed SysRq issue reported by Srini. * Dropped [PATCH 3/7], because it did not make functional change. Ivan T

[PATCH v3 3/6] tty: serial: msm: Add msm prefix to all driver functions

2015-09-30 Thread Ivan T. Ivanov
Make function naming consistent across this driver. Also rename msm_irq to msm_uart_irq. No functional changes. Signed-off-by: Ivan T. Ivanov Reviewed-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 42 - 1 file changed, 21 insertions(+), 21

Re: [PATCH v2 0/6] tty: serial: msm: Add DMA support and fix bit definitions

2015-09-30 Thread Ivan T. Ivanov
On Wed, 2015-09-30 at 15:08 +0300, Ivan T. Ivanov wrote: > Hi, > > This is second version of patches which DMA support for UARTDM type > of hardware found in Qualcomm chip sets. > Please ignore this patch set. Wrong set of changes. Sorry, Ivan -- To unsubscribe from this list

[PATCH v2 2/6] tty: serial: msm: replaces (1 << x) with BIT(x) macro

2015-09-30 Thread Ivan T. Ivanov
From: Pramod Gurav Replaces (1 << x) with BIT(x) macro Signed-off-by: Pramod Gurav Reviewed-by: Stephen Boyd Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.h | 44 - 1 file changed, 22 insertions(+), 22 deletions(-) diff -

[PATCH v2 5/6] tty: serial: msm: Add RX DMA support

2015-09-30 Thread Ivan T. Ivanov
Add receive DMA support for UARTDM type of controllers. Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine and APQ8016, which have UARTDM v1.4 and BAM DMA engine. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 3 + drivers/tty/serial

[PATCH v2 3/6] tty: serial: msm: Add msm prefix to all driver functions

2015-09-30 Thread Ivan T. Ivanov
Make function naming consistent across this driver. Also rename msm_irq to msm_uart_irq. No functional changes. Signed-off-by: Ivan T. Ivanov Reviewed-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 40 1 file changed, 20 insertions(+), 20

[PATCH v2 0/6] tty: serial: msm: Add DMA support and fix bit definitions

2015-09-30 Thread Ivan T. Ivanov
Hi, This is second version of patches which DMA support for UARTDM type of hardware found in Qualcomm chip sets. Changes since v0 (https://lkml.org/lkml/2015/9/12/108): * Fixed SysRq issue reported by Srini. * Dropped [PATCH 3/7], which did not make any functional change. Ivan T. Ivanov (4

[PATCH v2 4/6] tty: serial: msm: Add TX DMA support

2015-09-30 Thread Ivan T. Ivanov
Add transmit DMA support for UARTDM type of controllers. Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine and APQ8016, which have UARTDM v1.4 and BAM DMA engine. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 3 + drivers/tty/serial

[PATCH v2 1/6] tty: serial: msm: Add mask value for UART_DM registers

2015-09-30 Thread Ivan T. Ivanov
UART_IPR_RXSTALE_LAST for UART_DM core so do it only for UART core. Signed-off-by: Pramod Gurav Reviewed-by: Stephen Boyd Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 26 -- drivers/tty/serial/msm_serial.h | 2 ++ 2 files changed, 22 insertions(+), 6 deletions

[PATCH v2 6/6] tty: serial: msm: Remove 115.2 Kbps maximum baud rate limitation

2015-09-30 Thread Ivan T. Ivanov
UART controller is capable to perform transfers up to 4 Mbps. Remove artificial 115.2 Kbps limitation. Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b

Re: [PATCH 0/7] tty: serial: msm: Add DMA support and fix bit definitions

2015-09-29 Thread Ivan T. Ivanov
On Fri, 2015-09-25 at 00:27 +0100, Srinivas Kandagatla wrote: > Hi Ivan, > On 12/09/15 14:02, Ivan T. Ivanov wrote: > > Hi, > > > > Following patches add DMA support for UARTDM type of hardware. > > > > Changes have been tested on UARTDM v1.3(APQ8064) and

Re: [PATCH 0/7] tty: serial: msm: Add DMA support and fix bit definitions

2015-09-28 Thread Ivan T. Ivanov
On Fri, 2015-09-25 at 00:27 +0100, Srinivas Kandagatla wrote: > Hi Ivan, > On 12/09/15 14:02, Ivan T. Ivanov wrote: > > Hi, > > > > Following patches add DMA support for UARTDM type of hardware. > > > > Changes have been tested on UARTDM v1.3(APQ8064) and

Re: [PATCH 3/7] tty: serial: msm: Fix command Stale Event Enable definition

2015-09-18 Thread Ivan T. Ivanov
> On Sep 19, 2015, at 2:33 AM, Stephen Boyd wrote: > > On 09/12, Ivan T. Ivanov wrote: >> Stale Event Enable command should be 5 not 8, fix this. >> >> Signed-off-by: Ivan T. Ivanov >> --- >> drivers/tty/serial/msm_serial.h | 2 +- >> 1 file chang

[PATCH v2 2/2] arm64: dts: qcom: 8x16: UART1 and UART2 use DMA for RX and TX

2015-09-18 Thread Ivan T. Ivanov
Add DMA channels definitions for UART1 and UART2 controllers. Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 85f7bee33c18

[PATCH v2 0/2] arm64: dts: qcom: 8x16: UARTDM additions

2015-09-18 Thread Ivan T. Ivanov
a.org/cgit/quic/kernel/agross-msm/ Ivan T. Ivanov (2): arm64: dts: qcom: 8x16: UART1 add CTS_N, RTS_N pin configurations arm64: dts: qcom: 8x16: UART1 and UART2 use DMA for RX and TX arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 13 + arch/arm64/boot/dts/qcom/msm8916.dtsi

[PATCH v2 1/2] arm64: dts: qcom: 8x16: UART1 add CTS_N, RTS_N pin configurations

2015-09-18 Thread Ivan T. Ivanov
Add devicetree bindings for UART1 CTS_N and RTS_N pins. Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi b/arch/arm64/boot/dts/qcom/msm8916

Re: [PATCH v2 1/2] input: Add Qualcomm PM8941 power key driver

2015-09-15 Thread Ivan T. Ivanov
On Fri, 2015-01-23 at 16:19 -0800, Bjorn Andersson wrote: > From: Courtney Cavin ca...@sonymobile.com> > > Signed-off-by: Courtney Cavin ca...@sonymobile.com> > Signed-off-by: Bjorn Andersson anders...@sonymobile.com> > > > +config INPUT_PM8941_PWRKEY > + tristate "Qualcomm PM8941 powe

Re: [PATCH] spmi-pmic-arb: support configurable number of peripherals

2015-09-15 Thread Ivan T. Ivanov
ll be difficult to guaranties that some other driver misbehave and touch non-existing register, right? Regards, IvanFrom d7c9c59b7134f093cf3f829832f4f7771a65664e Mon Sep 17 00:00:00 2001 From: "Ivan T. Ivanov" Date: Tue, 15 Sep 2015 09:43:10 +0300 Subject: [PATCH] mfd: qcom-spmi-pmic: Do not acc

[PATCH 0/7] tty: serial: msm: Add DMA support and fix bit definitions

2015-09-12 Thread Ivan T. Ivanov
T. Ivanov (5): tty: serial: msm: Fix command Stale Event Enable definition tty: serial: msm: Add msm prefix to all driver functions tty: serial: msm: Add TX DMA support tty: serial: msm: Add RX DMA support tty: serial: msm: Remove 115.2 Kbps maximum baud rate limitation Pramod Gurav (2

[PATCH 4/7] tty: serial: msm: Add msm prefix to all driver functions

2015-09-12 Thread Ivan T. Ivanov
Make function naming consistent across this driver. No functional changes. Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty

[PATCH 3/7] tty: serial: msm: Fix command Stale Event Enable definition

2015-09-12 Thread Ivan T. Ivanov
Stale Event Enable command should be 5 not 8, fix this. Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/msm_serial.h b/drivers/tty/serial/msm_serial.h index 60917d30c6b5..223f961f992a 100644

[PATCH 2/7] tty: serial: msm: replaces (1 << x) with BIT(x) macro

2015-09-12 Thread Ivan T. Ivanov
From: Pramod Gurav Replaces (1 << x) with BIT(x) macro Signed-off-by: Pramod Gurav Reviewed-by: Stephen Boyd Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.h | 44 - 1 file changed, 22 insertions(+), 22 deletions(-) diff -

[PATCH 1/2] arm64: dts: qcom: 8x16: Add UART1 configuration nodes

2015-09-12 Thread Ivan T. Ivanov
Add devicetree bindings for UART1 pins and device controller with DMA channel specifiers. Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 29 + arch/arm64/boot/dts/qcom/msm8916.dtsi | 12 2 files changed, 41 insertions

[PATCH 5/7] tty: serial: msm: Add TX DMA support

2015-09-12 Thread Ivan T. Ivanov
Add transmit DMA support for UARTDM type of controllers. Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine and APQ8016, which have UARTDM v1.4 and BAM DMA engine. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 3 + drivers/tty/serial

[PATCH 6/7] tty: serial: msm: Add RX DMA support

2015-09-12 Thread Ivan T. Ivanov
Add receive DMA support for UARTDM type of controllers. Tested on APQ8064, which have UARTDM v1.3 and ADM DMA engine and APQ8016, which have UARTDM v1.4 and BAM DMA engine. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/serial/qcom,msm-uartdm.txt | 3 + drivers/tty/serial

[PATCH 2/2] arm64: dts: qcom: 8x16: UART2 use DMA for RX and TX

2015-09-12 Thread Ivan T. Ivanov
Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index f10ff7a2d0e3..6874221ec355 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b

[PATCH 7/7] tty: serial: msm: Remove 115.2 Kbps maximum baud rate limitation

2015-09-12 Thread Ivan T. Ivanov
UART controller is capable to perform transfers up to 4 Mbps. Remove artificial 115.2 Kbps limitation. Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b

[PATCH 1/7] tty: serial: msm: Add mask value for UART_DM registers

2015-09-12 Thread Ivan T. Ivanov
UART_IPR_RXSTALE_LAST for UART_DM core so do it only for UART core. Signed-off-by: Pramod Gurav Reviewed-by: Stephen Boyd Signed-off-by: Ivan T. Ivanov --- drivers/tty/serial/msm_serial.c | 26 -- drivers/tty/serial/msm_serial.h | 2 ++ 2 files changed, 22 insertions(+), 6 deletions

Re: [PATCH v3] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-09-07 Thread Ivan T. Ivanov
On Fri, 2015-06-05 at 17:26 +0800, Peter Chen wrote: > On Fri, Jun 05, 2015 at 10:37:07AM +0300, Ivan T. Ivanov wrote: > > > > > + > > > > +static int ci_id_notifier(struct notifier_block *nb, unsigned long > > > > event, > > >

[PATCH v4] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-09-07 Thread Ivan T. Ivanov
On recent Qualcomm platforms VBUS and ID lines are not routed to USB PHY LINK controller. Use extcon framework to receive connect and disconnect ID and VBUS notification. Signed-off-by: Ivan T. Ivanov --- Changes sice v3 [1]: * Migrate to new extcon framework API * Address comments from Peter

[PATCH] usb: phy: qcom: Switch to new extcon framework API

2015-09-07 Thread Ivan T. Ivanov
[un]register_interest and reading cable state by name have been deprecated. Switch to new API. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-qcom-8x16-usb.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/usb/phy/phy-qcom-8x16-usb.c b

[PATCH v2] usb: phy: msm: Unregister VBUS and ID events notifiers

2015-09-07 Thread Ivan T. Ivanov
ction") Reported-by: Tim Bird Signed-off-by: Ivan T. Ivanov --- Patch reworked to use new extcon API. drivers/usb/phy/phy-msm-usb.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-u

Re: [PATCH] usb: phy: msm: Unregister driver interest for VBUS and ID events

2015-09-07 Thread Ivan T. Ivanov
On Mon, 2015-08-24 at 10:11 -0700, Tim Bird wrote: > On 08/18/2015 12:56 AM, Ivan T. Ivanov wrote: > > Right now even if driver failed to probe extcon framework will > > still deliver its VBUS and ID events, which will lead to random > > exception codes. > > >

Re: [PATCH] ARM: dts: qcom: Remove extra reg element from iadc device

2015-09-01 Thread Ivan T. Ivanov
On Wed, 2015-08-26 at 12:35 -0700, Stephen Boyd wrote: > This doesn't match the binding, and the driver doesn't look to > be using it. Remove the extra element. > > CC: Ivan T. Ivanov iva...@linaro.org> > Signed-off-by: Stephen Boyd Acked-by: Ivan T. Ivanov

Re: repeat... Re: BUG: usb: phy: msm: problem with EPROBE defer and extcon cleanup

2015-08-18 Thread Ivan T. Ivanov
On Mon, 2015-08-17 at 16:46 -0700, Tim Bird wrote: > Sorry - I mistyped Ivan's e-mail the first time. > > On 08/17/2015 04:43 PM, Tim Bird wrote: > > Ivan, > > > > I'm seeing a bug in the phy-msm-usb.c code, when I get an EPROBE defer > > during probing the driver. > > The code is statically li

[PATCH] usb: phy: msm: Unregister driver interest for VBUS and ID events

2015-08-18 Thread Ivan T. Ivanov
nd ID detection") Reported-by: Tim Bird Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 00c49bb1bd29..a9082567f

Re: [PATCH v3] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-07-29 Thread Ivan T. Ivanov
On Wed, 2015-07-29 at 12:10 -0700, Tim Bird wrote: > On Tue, Jun 2, 2015 at 6:14 AM, Ivan T. Ivanov iva...@linaro.org> wrote: > > On recent Qualcomm platforms VBUS and ID lines are not routed to > > USB PHY LINK controller. Use extcon framework to receive connect > > an

[PATCH v2] usb: phy: msm: Add D+/D- lines route control

2015-07-28 Thread Ivan T. Ivanov
apq8016-sbc board is using Dual SPDT USB Switch (TC7USB40MU), witch is controlled by GPIO to de/multiplex D+/D- USB lines to USB2513B Hub and uB connector. Add support for this. Signed-off-by: Ivan T. Ivanov --- * Rebased on current testing/next. .../devicetree/bindings/usb/msm-hsusb.txt

Re: [PATCH V4 5/7] i2c: qup: Add bam dma capabilities

2015-07-20 Thread Ivan T. Ivanov
Hi Sricharan, On Thu, 2015-07-09 at 08:55 +0530, Sricharan R wrote: > QUP cores can be attached to a BAM module, which acts as a dma engine for the > QUP core. When DMA with BAM is enabled, the BAM consumer pipe transmitted data > is written to the output FIFO and the BAM producer pipe received d

Re: [PATCH V4 4/7] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2015-07-20 Thread Ivan T. Ivanov
Hi, On Thu, 2015-07-09 at 08:55 +0530, Sricharan R wrote: > #define ONE_BYTE 0x1 > +#define QUP_I2C_MX_CONFIG_DURING_RUN BIT(31) > > struct qup_i2c_block { > int count; > @@ -121,6 +122,7 @@ struct qup_i2c_block { > int rx_tag_len; >

Re: [PATCH V4 3/7] i2c: qup: Add V2 tags support

2015-07-20 Thread Ivan T. Ivanov
Hi Sricharan, On Thu, 2015-07-09 at 08:55 +0530, Sricharan R wrote: > QUP from version 2.1.1 onwards, supports a new format of > i2c command tags. Tag codes instructs the controller to > perform a operation like read/write. This new tagging version > supports bam dma and transfers of more than 25

Re: [PATCH V4 2/7] qup: i2c: factor out common code for reuse

2015-07-20 Thread Ivan T. Ivanov
Hi Sricharan, On Thu, 2015-07-09 at 08:55 +0530, Sricharan R wrote: > > static int qup_i2c_read_one(struct qup_i2c_dev *qup, struct i2c_msg *msg) > { > - unsigned long left; > - int ret; > + int ret = 0; > > - qup->msg = msg; > - qup->pos = 0; > + /* > +

[PATCH] usb: phy: qcom: New APQ8016/MSM8916 USB transceiver driver

2015-07-08 Thread Ivan T. Ivanov
Driver handles PHY initialization, clock management, power management and workarounds required after resetting the hardware. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/usb/qcom,usb-8x16-phy.txt | 76 drivers/usb/phy/Kconfig| 14 + drivers/usb

[PATCH] usb: phy: msm: Add D+/D- lines route control

2015-07-08 Thread Ivan T. Ivanov
apq8016-sbc board is using Dual SPDT USB Switch (TC7USB40MU), witch is controlled by GPIO to de/multiplex D+/D- USB lines to USB2513B Hub and uB connector. Add support for this. Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/usb/msm-hsusb.txt | 4 ++ drivers/usb/phy/phy-msm

[PATCH v2] mfd: qcom-rpm: Add apq8064 QDSS clock resource

2015-07-08 Thread Ivan T. Ivanov
Qualcomm Debug Subsystem clock is used by CoreSight components. Add required definitions for it. qcom_rpm_resource::status_id is not used by driver, so just mark it as ~0. Signed-off-by: Ivan T. Ivanov --- Changes since first version: * Use ~0 initializer for status_id, this field is not used

Re: [PATCH v2 1/2] extcon: fix hang and extcon_get/set_cable_state().

2015-07-07 Thread Ivan T. Ivanov
6ecdb93e8 ("extcon: Redefine the unique id of supported > external connectors without 'enum extcon' type") > Cc: Greg Kroah-Hartman > Signed-off-by: Roger Quadros > --- Thank you. It is fine now. For both patches. Tested-by: Ivan T. Ivanov -- To unsubscribe fr

Re: [PATCH 1/2] extcon: fix hang and extcon_get/set_cable_state().

2015-07-07 Thread Ivan T. Ivanov
On Mon, 2015-07-06 at 17:46 +0300, Roger Quadros wrote: > > -static int find_cable_index_by_name(struct extcon_dev *edev, const char > *name) > +static int find_cable_id_by_name(struct extcon_dev *edev, const char *name) > { > - unsigned int id = EXTCON_NONE; > + unsigned int id =

Re: [PATCH] mfd: qcom-rpm: Add apq8064 QDSS clock resource

2015-07-07 Thread Ivan T. Ivanov
On Mon, 2015-07-06 at 13:33 -0700, Bjorn Andersson wrote: > On Mon 18 May 07:35 PDT 2015, Ivan T. Ivanov wrote: > > > Qualcomm Debug Subsystem clock is used by CoreSight components. > > Add required definitions for it. > > > > Signed-off-by: Ivan T. Ivanov iva...@

Re: [PATCH] mfd: qcom-rpm: Add apq8064 QDSS clock resource

2015-07-06 Thread Ivan T. Ivanov
On Mon, 2015-05-18 at 17:35 +0300, Ivan T. Ivanov wrote: > Qualcomm Debug Subsystem clock is used by CoreSight components. > Add required definitions for it. > > Signed-off-by: Ivan T. Ivanov iva...@linaro.org> > --- > drivers/mfd/qcom_rpm.c | 1 + > 1 file changed,

[PATCH v2 1/3] mmc: sdhci: let GPIO based card detection have higher precedence

2015-07-06 Thread Ivan T. Ivanov
Controller could have BROKEN_CARD_DETECTION quirk set, but drivers could use GPIO to detect card present state. Let, when defined, GPIO take precedence, so drivers could properly detect card state and not use polling. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci.c | 14

[PATCH v2 2/3] mmc: sdhci: don't use card state polling when CD GPIO is defined

2015-07-06 Thread Ivan T. Ivanov
There is no reason to use polling for card detection state change when drivers are using dedicated GPIO for this. Don't poll in this case. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhc

[PATCH v2 3/3] mmc: sdhci: properly check card present state when quirk NO_CARD_NO_RESET is set

2015-07-06 Thread Ivan T. Ivanov
Controller could have both NO_CARD_NO_RESET and BROKEN_CARD_DETECTION quirks set. Use sdhci_do_get_cd() when applying NO_CARD_NO_RESET, which properly check for BROKEN_CARD_DETECTION quirk. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v2 0/3] mmc: sdhci: Card detection fixes

2015-07-06 Thread Ivan T. Ivanov
.gmane.org/gmane.linux.kernel.mmc/32875 Ivan T. Ivanov (3): mmc: sdhci: let GPIO based card detection have higher precedence mmc: sdhci: don't use card state polling when CD GPIO is defined mmc: sdhci: properly check card present state when quirk NO_CARD_NO_RESET is set drivers/mmc/ho

[PATCH v2] mmc: sdhci-msm: Boost controller core clock

2015-07-06 Thread Ivan T. Ivanov
Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov Reviewed-by: Georgi Djakov Acked-by: Stephen Boyd --- Changes since v0: - s/falied/failed in warning message. drivers/mmc/host/sdhci-msm.c | 5 + 1

Re: [PATCH] mmc: sdhci: msm: Boost controller core clock

2015-06-26 Thread Ivan T. Ivanov
On Fri, 2015-06-26 at 14:34 +0300, Georgi Djakov wrote: > On 06/26/2015 02:16 PM, Ivan T. Ivanov wrote: > > Ensure SDCC is working with maximum clock otherwise card > > detection could be extremely slow, up to 7 seconds. > > > > Signed-off-by: Ivan

[PATCH] mmc: sdhci: msm: Boost controller core clock

2015-06-26 Thread Ivan T. Ivanov
Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci-msm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index

Re: [PATCH 1/3] mmc: sdhci: let GPIO based card detection have higher precedence

2015-06-26 Thread Ivan T. Ivanov
On Fri, 2015-06-26 at 14:09 +0300, Adrian Hunter wrote: > On 26/06/15 14:00, Ivan T. Ivanov wrote: > > On Fri, 2015-06-26 at 13:19 +0300, Adrian Hunter wrote: > > > On 26/06/15 13:00, Ivan T. Ivanov wrote: > > > > Controller could have BROKEN_CARD_DETECTION quirk

Re: [PATCH 0/3] mmc: sdhci: Card detection fixes

2015-06-26 Thread Ivan T. Ivanov
On Fri, 2015-06-26 at 19:31 +0900, Jaehoon Chung wrote: > Hi, Ivan. > > On 06/26/2015 07:00 PM, Ivan T. Ivanov wrote: > > Following changes aimed to fix some aspects of card detection, when > > BROKEN_CARD_DETECTION quirk is set. > > As i know, when there

Re: [PATCH 1/3] mmc: sdhci: let GPIO based card detection have higher precedence

2015-06-26 Thread Ivan T. Ivanov
On Fri, 2015-06-26 at 13:19 +0300, Adrian Hunter wrote: > On 26/06/15 13:00, Ivan T. Ivanov wrote: > > Controller could have BROKEN_CARD_DETECTION quirk set, but drivers > > could use GPIO to detect card present state. Let, when defined, GPIO > > take precedence, so drivers

[PATCH 1/3] mmc: sdhci: let GPIO based card detection have higher precedence

2015-06-26 Thread Ivan T. Ivanov
Controller could have BROKEN_CARD_DETECTION quirk set, but drivers could use GPIO to detect card present state. Let, when defined, GPIO take precedence, so drivers could properly detect card state and not use polling. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci.c | 11

[PATCH 2/3] mmc: sdhci: don't use card state polling when CD GPIO is defined

2015-06-26 Thread Ivan T. Ivanov
There is no reason to use polling for card detection state change when drivers are using dedicated GPIO for this. Don't poll in this case. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhc

[PATCH 3/3] mmc: sdhci: properly check card present state when quirk NO_CARD_NO_RESET is set

2015-06-26 Thread Ivan T. Ivanov
Controller could have both NO_CARD_NO_RESET and BROKEN_CARD_DETECTION quirks set. Use sdhci_do_get_cd() when applying NO_CARD_NO_RESET, which properly check for BROKEN_CARD_DETECTION quirk. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 0/3] mmc: sdhci: Card detection fixes

2015-06-26 Thread Ivan T. Ivanov
Following changes aimed to fix some aspects of card detection, when BROKEN_CARD_DETECTION quirk is set. Ivan T. Ivanov (3): mmc: sdhci: let GPIO based card detection have higher precedence mmc: sdhci: don't use card state polling when CD GPIO is defined mmc: sdhci: properly check

Re: [PATCH 0/8] Qualcomm PMIC pinctrl additions

2015-06-24 Thread Ivan T. Ivanov
; mpp drivers Thank you Bjorn. Now MPP drivers have its full functionality. With two small comments on patch 5 and 8, Reviewed-by: Ivan T. Ivanov -- 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 Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 8/8] pinctrl: qcom: ssbi: Family A gpio & mpp drivers

2015-06-24 Thread Ivan T. Ivanov
Hi Bjorn, On Wed, 2015-06-17 at 23:47 -0700, Bjorn Andersson wrote: > This introduces pinctrl drivers for gpio and mpp blocks found in family A > PMICs. > > + > +static struct platform_driver pm8xxx_gpio_driver = { > + .driver = { > + .name = "pm8xxx_gpio", Name of the SPMI

Re: [PATCH 5/8] pinctrl: qcom: spmi-mpp: Add support for setting analog output level

2015-06-24 Thread Ivan T. Ivanov
Hi Bjorn, On Wed, 2015-06-17 at 23:47 -0700, Bjorn Andersson wrote: > When the MPP is configured for analog output the output level is selected by > the AOUT_CTL register, this patch makes it possible to control this. > > } > @@ -748,6 +765,10 @@ static int pmic_mpp_populate(struct pmi

Re: [PATCH v3] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-06-05 Thread Ivan T. Ivanov
On Fri, 2015-06-05 at 15:03 +0800, Peter Chen wrote: > On Tue, Jun 02, 2015 at 04:14:33PM +0300, Ivan T. Ivanov wrote: > > On recent Qualcomm platforms VBUS and ID lines are not routed to > > USB PHY LINK controller. Use extcon framework to receive connect > > and d

[PATCH 7/7] arm64: dts: qcom: Add apq8016-sbc board LED's related device nodes

2015-06-04 Thread Ivan T. Ivanov
WLAN. LED6 blue LED triggered by access to Bluetooth. Signed-off-by: Ivan T. Ivanov --- .../arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi | 19 arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 11 ++--- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 51

[PATCH 2/7] arm64: dts: qcom: Add msm8916 BLSP device nodes

2015-06-04 Thread Ivan T. Ivanov
Add device nodes for SPI1, SPI2, SPI3, I2C4, SPI5, SPI6 and BAM(DMA) engine connected to them. Signed-off-by: Stanimir Varbanov Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 128 ++ 1 file changed, 128 insertions(+) diff --git a/arch

[PATCH 5/7] arm64: dts: qcom: apq8016-sbc: Don't hog client driver pins

2015-06-04 Thread Ivan T. Ivanov
Hogging pins from pinctrl driver prevents client drivers to probe. Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi | 3 --- arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 3 --- 2 files changed, 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom

[PATCH 6/7] arm64: dts: qcom: Fix apq8016-sbc board USB related pin definitions

2015-06-04 Thread Ivan T. Ivanov
: Ivan T. Ivanov --- .../arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi index 37ca2ed..b568c49 100644

[PATCH 1/7] arm64: dts: qcom: Extend msm8916 pinctrl device coverage

2015-06-04 Thread Ivan T. Ivanov
Create separate file for MSM8916 pinctrl default/sleep pins state definitions. Move in UART2 states and add SPI, I2C and SDC configurations. Signed-off-by: Stanimir Varbanov Signed-off-by: Srinivas Kandagatla Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 430

[PATCH 3/7] arm64: dts: qcom: Add msm8916 sdhci configuration nodes

2015-06-04 Thread Ivan T. Ivanov
From: Srinivas Kandagatla Add sdhci1 and sdhci2 device configuration nodes. Signed-off-by: Srinivas Kandagatla Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH 4/7] arm64: dts: qcom: Add msm8916 USB configuration nodes

2015-06-04 Thread Ivan T. Ivanov
Add Host, Device and OTG configuration nodes. Signed-off-by: Ivan T. Ivanov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index

[PATCH 0/7] arm64: dts: qcom: msm8916 fixes and updates

2015-06-04 Thread Ivan T. Ivanov
Following patches add configuration nodes for SPI, I2C, USB and SDHC devices found in msm8916 and related pinctrl definitions. Also several GPIO have been incorrectly assigned and are fixed now. LED control devices for apq 8016-sbc board are added. Regards, Ivan Ivan T. Ivanov (6): arm64: dts

Re: [PATCH v2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-02 Thread Ivan T. Ivanov
On Tue, 2015-06-02 at 10:12 -0500, "Stéphane Viau" wrote: > Hi Ivan, > > > Hi Stephane, > > > > On Mon, 2015-06-01 at 16:28 -0400, Stephane Viau wrote: > > > Some targets (eg: msm8994) use the pinctrl framework to configure > > > interface pins. This change adds support for initialization and >

[PATCH v3] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-06-02 Thread Ivan T. Ivanov
On recent Qualcomm platforms VBUS and ID lines are not routed to USB PHY LINK controller. Use extcon framework to receive connect and disconnect ID and VBUS notification. Signed-off-by: Ivan T. Ivanov --- Changes sice v2 [1]. * Simulate IRQ on extcon event - used to trigger OTG state machine

Re: [PATCH v2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-02 Thread Ivan T. Ivanov
Hi Stephane, On Mon, 2015-06-01 at 16:28 -0400, Stephane Viau wrote: > Some targets (eg: msm8994) use the pinctrl framework to configure > interface pins. This change adds support for initialization and > pinctrl active/sleep state control for the HDMI driver. > > Signed-off-by: Stephane Viau

Re: [PATCH v3 4/6] dt-bindings: Consolidate ChipIdea USB ci13xxx bindings

2015-06-01 Thread Ivan T. Ivanov
ned-off-by: Rob Herring > Cc: Ivan T. Ivanov > Cc: Peter Chen c...@freescale.com> > Cc: Daniel Tang ta...@gmail.com> > Cc: Pawel Moll m...@arm.com> > Cc: Mark Rutland rutl...@arm.com> > Cc: Ian Campbell > Cc: Kumar Gala > Cc: devicet...@vger.kernel.org &

Re: [PATCH] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-05-29 Thread Ivan T. Ivanov
Hi Stephane, On Fri, 2015-05-29 at 09:49 -0400, Stephane Viau wrote: > Some targets (eg: msm8994) use the pinctrl framework to configure > interface pins. This change adds support for initialization and > pinctrl active/sleep state control for the HDMI driver. > > Signed-off-by: Stephane Viau >

Re: [PATCH v2 0/2] extcon: Inform the state of both ID and VBUS pin for USB

2015-05-29 Thread Ivan T. Ivanov
On Fri, 2015-05-29 at 19:44 +0900, Chanwoo Choi wrote: > Hi Ivan, > > On 05/28/2015 05:45 PM, Ivan T. Ivanov wrote: > > Hi Chanwoo, > > > > On Wed, 2015-05-27 at 21:15 +0900, Chanwoo Choi wrote: > > > Previously, I discussed how to inform the changed state o

Re: [PATCH v2 0/2] extcon: Inform the state of both ID and VBUS pin for USB

2015-05-29 Thread Ivan T. Ivanov
Hi, On Thu, 2015-05-28 at 17:23 +0300, Roger Quadros wrote: > +Peter & Li, > > Ivan, > > On 28/05/15 11:45, Ivan T. Ivanov wrote: > > Hi Chanwoo, > > > > On Wed, 2015-05-27 at 21:15 +0900, Chanwoo Choi wrote: > > > Previously, I discussed how to

Re: [PATCH v2 0/2] extcon: Inform the state of both ID and VBUS pin for USB

2015-05-29 Thread Ivan T. Ivanov
Hi, On Thu, 2015-05-28 at 17:23 +0300, Roger Quadros wrote: > +Peter & Li, > > Ivan, > > On 28/05/15 11:45, Ivan T. Ivanov wrote: > > Hi Chanwoo, > > > > On Wed, 2015-05-27 at 21:15 +0900, Chanwoo Choi wrote: > > > Previously, I discussed how to

Re: [PATCH v2 1/2] extcon: Add extcon_set_cable_line_state() to inform the additional state of external connectors

2015-05-28 Thread Ivan T. Ivanov
Hi, On Thu, 2015-05-28 at 18:17 +0900, Chanwoo Choi wrote: > > > 2015년 5월 28일 목요일, Ivan T. Ivanov님이 작성한 메시지: > > Hi Chanwoo, > > > > On Thu, 2015-05-28 at 00:06 +0900, Chanwoo Choi wrote: > > > On Wed, May 27, 2015 at 11:38 PM, Roger Quadros wrote: > > > > Chanwoo, > > > > > > > > On 27/05/15

Re: [PATCH v2 1/2] extcon: Add extcon_set_cable_line_state() to inform the additional state of external connectors

2015-05-28 Thread Ivan T. Ivanov
Hi Chanwoo, On Thu, 2015-05-28 at 00:06 +0900, Chanwoo Choi wrote: > On Wed, May 27, 2015 at 11:38 PM, Roger Quadros wrote: > > Chanwoo, > > > > On 27/05/15 15:15, Chanwoo Choi wrote: > > > This patch adds the extcon_set_cable_line_state() function to inform > > > the additional state of each

Re: [PATCH v2 0/2] extcon: Inform the state of both ID and VBUS pin for USB

2015-05-28 Thread Ivan T. Ivanov
Hi Chanwoo, On Wed, 2015-05-27 at 21:15 +0900, Chanwoo Choi wrote: > Previously, I discussed how to inform the changed state of both ID > and VBUS pin for USB connector on patch-set[1]. > [1] https://lkml.org/lkml/2015/4/2/310 > > So, this patch adds the extcon_set_cable_line_state() function to

Re: [PATCH v2] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-05-26 Thread Ivan T. Ivanov
On Wed, 2015-04-15 at 16:35 +0300, Ivan T. Ivanov wrote: > On recent Qualcomm platforms VBUS and ID lines are not routed to > USB PHY LINK controller. Use extcon framework to receive connect > and disconnect ID and VBUS notification. > > Signed-off-by: Ivan T. Ivanov iv

[PATCH v2] coresight-etm3x: Add Qualcomm PTM v1.1 peripheral ID

2015-05-25 Thread Ivan T. Ivanov
Add Qualcomm's PTM v1.1 peripheral ID to supported devices. This device could be found at least in MSM8974 and APQ8064 chipsets. Signed-off-by: Ivan T. Ivanov --- Changes since v1: - s/PFT/PTM/ to describe device and not protocol implementation drivers/hwtracing/coresight/coresight-et

  1   2   3   4   5   6   7   8   >