Georgi Djakov | 9 Feb 14:12 2016

[PATCH v4] regulator: qcom-saw: Add support for SAW regulators

The SAW (Subsystem Power Manager and Adaptive Voltage Scaling Wrapper)
is part of the SPM subsystem. It is a hardware block in the Qualcomm
chipsets that regulates the power to the CPU cores on platform such as
apq8064, msm8974, apq8084 and others.

Signed-off-by: Georgi Djakov <georgi.djakov <at> linaro.org>
---

Changes since v3 (https://lkml.org/lkml/2016/2/3/829)
 * Add MFD dependency to Kconfig
 * Rename SAW2 to SAW as we may support other SAW generations than just 2
 * Increase timeout to 100us

Changes since v2 (https://lkml.org/lkml/2016/1/28/481)
 * Address the comments from Mark. Thanks!
 - Implement regulator_get_voltage_sel() instead of regulator_get_voltage()
 - Add cpu_relax() in the loop
 - Specify ramp_delay
 - Drop the legacy "regulator-name" property

Changes since v1 (https://lkml.org/lkml/2015/12/18/629)
 * Move into a separate regulator driver

 .../bindings/regulator/qcom,saw-regulator.txt      |   31 +++
 drivers/regulator/Kconfig                          |   12 +
 drivers/regulator/Makefile                         |    1 +
 drivers/regulator/qcom_saw-regulator.c             |  229 ++++++++++++++++++++
 4 files changed, 273 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/qcom,saw-regulator.txt
 create mode 100644 drivers/regulator/qcom_saw-regulator.c
(Continue reading)

Georgi Djakov | 9 Feb 11:19 2016

[PATCH v2] arm64: defconfig: Add Qualcomm sdhci and restart functionality

Enable sdhci and restart functionality for devices based on msm8916 platform.
Also increase the number of minors per block device to detect all available
partitions.

Signed-off-by: Georgi Djakov <georgi.djakov <at> linaro.org>
---

Changes since v1 (https://lkml.org/lkml/2016/2/4/259)
 * Rebased onto arm-soc/next/arm64

 arch/arm64/configs/defconfig |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 91ae2634cae9..ad26a53ddfe9 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
 <at>  <at>  -150,6 +150,7  <at>  <at>  CONFIG_PINCTRL_QCOM_SPMI_PMIC=y
 CONFIG_GPIO_PL061=y
 CONFIG_GPIO_RCAR=y
 CONFIG_GPIO_XGENE=y
+CONFIG_POWER_RESET_MSM=y
 CONFIG_POWER_RESET_XGENE=y
 CONFIG_POWER_RESET_SYSCON=y
 # CONFIG_HWMON is not set
 <at>  <at>  -186,10 +187,12  <at>  <at>  CONFIG_USB_MSM_OTG=y
 CONFIG_USB_ULPI=y
 CONFIG_USB_GADGET=y
 CONFIG_MMC=y
+CONFIG_MMC_BLOCK_MINORS=32
(Continue reading)

Srinivas Kandagatla | 6 Feb 08:07 2016
Gravatar

[PATCH] arm64: defconfig: add spmi and usb related configs

This patch adds kconfigs for spmi bus support, pinctrl drivers and usb
related to get USB working on Qualcomm DB410C board.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla <at> linaro.org>
---
 arch/arm64/configs/defconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 8c6f05f..ad26a53 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
 <at>  <at>  -144,7 +144,9  <at>  <at>  CONFIG_I2C_RCAR=y
 CONFIG_SPI=y
 CONFIG_SPI_PL022=y
 CONFIG_SPI_QUP=y
+CONFIG_SPMI=y
 CONFIG_PINCTRL_MSM8916=y
+CONFIG_PINCTRL_QCOM_SPMI_PMIC=y
 CONFIG_GPIO_PL061=y
 CONFIG_GPIO_RCAR=y
 CONFIG_GPIO_XGENE=y
 <at>  <at>  -152,9 +154,11  <at>  <at>  CONFIG_POWER_RESET_MSM=y
 CONFIG_POWER_RESET_XGENE=y
 CONFIG_POWER_RESET_SYSCON=y
 # CONFIG_HWMON is not set
+CONFIG_MFD_SPMI_PMIC=y
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_QCOM_SMD_RPM=y
(Continue reading)

Srinivas Kandagatla | 5 Feb 20:17 2016
Gravatar

[PATCH] usb: phy: msm: Trigger USB state detection work in DRD mode

From: "Ivan T. Ivanov" <ivan.ivanov <at> linaro.org>

When working in Dual Role Device mode, USB state machine is not kicked,
when host or gadget drivers are loaded. Fix this be explicitly triggering
state detection on client driver load.

Issue is that if the board is booted without micro usb cable and usb
device attached, kernel fails to populate the usb host and device.
The reason for this is that the state machine worker logic only checks
for USB_DR_MODE_PERIPHERAL and USB_DR_MODE_HOST modes to run worker
thread. However if the phy is configured in OTG mode it would fail
to run the state machine, resulting in failure to detect for very
first time.

This patch fixes the issue by removing the explicit checks.

Issue is noticed on Qualcomm Dragon board DB410C.

[srinivas.kandagatla <at> linaro.org: Added more details to log]
Signed-off-by: Ivan T. Ivanov <ivan.ivanov <at> linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla <at> linaro.org>
---
 drivers/usb/phy/phy-msm-usb.c | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
index 970a30e..72b387d 100644
--- a/drivers/usb/phy/phy-msm-usb.c
+++ b/drivers/usb/phy/phy-msm-usb.c
 <at>  <at>  -757,14 +757,8  <at>  <at>  static int msm_otg_set_host(struct usb_otg *otg, struct usb_bus *host)
(Continue reading)

Srinivas Kandagatla | 5 Feb 20:00 2016
Gravatar

[PATCH 0/6] arm64: dts: apq8016 dt patches.

Hi Andy, 

Here are few more dt patches which enables usb and lpass.
I have tested these patches with few changes to defconfig on DB410C.

Thanks,
srini

Srinivas Kandagatla (6):
  arm64: dts: qcom: add manual pullup setting to otg.
  arm64: dts: qcom: apq8016-sbc: add usb support
  arm64: dts: qcom: add audio pinctrls
  arm64: dts: qcom: add lpass node
  arm64: dts: qcom: apq8016-sbc: enable lpass on DB410c
  arm64: dts: qcom: fix usb digital voltage levels

 arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi |  15 ++
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi          |  39 ++++
 arch/arm64/boot/dts/qcom/msm8916-pins.dtsi         | 216 +++++++++++++++++++++
 arch/arm64/boot/dts/qcom/msm8916.dtsi              |  29 ++-
 4 files changed, 298 insertions(+), 1 deletion(-)

--

-- 
1.9.1

Sinan Kaya | 5 Feb 05:34 2016

[PATCH V14 0/9] dma: add Qualcomm Technologies HIDMA driver

The Qualcomm Technologies HIDMA device has been designed
to support virtualization technology. The driver has been
divided into two to follow the hardware design.

1. HIDMA Management driver
2. HIDMA Channel driver

Each HIDMA HW consists of multiple channels. These channels
share some set of common parameters. These parameters are
initialized by the management driver during power up.
Same management driver is used for monitoring the execution
of the channels. Management driver can change the performance
behavior dynamically such as bandwidth allocation and
prioritization in the future.

The management driver is executed in host context and
is the main management entity for all channels provided by
the device.

------------------------
What's new
------------------------
- Add back default number of descriptors.
- Fix compilation error in VFIO ACPI support.
- Merge the event-channel patch back to DTS and channel driver.

------------------------
Git repos
------------------------
QEMU Support
(Continue reading)

我的信息在: | 1 Feb 22:22 2016

我的信息在:

你的老朋友邀你来Q群:343257759
Srinivas Kandagatla | 1 Feb 18:27 2016
Gravatar

[PATCH RFC 00/15] ASoC: qcom: Add capture support.

LPASS IP on QCOM SOC supports both Playback and capture
via I2S, but this feature is missing in existing code. 
This patchset aims at adding capture support to lpass IP.
First few patches in this series does cleanup the driver
to make easy to add capture support.

These patches are tested on DB410C with Headset Mic.

Thanks,
srini

Srinivas Kandagatla (15):
  ASoC: qcom: use snd_dma_alloc/free* apis
  ASoC: qcom: add wrdma register details to lpass_variant
  ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start
  ASoC: qcom: pass direction to dma allocation
  ASoC: qcom: ipq806x: add error in dma allocation.
  ASoC: qcom: ipq806x: add wrdma related register offsets
  ASoC: qcom: add mic related i2s control register defines
  ASoC: qcom: add wrdma dma channel start
  ASoC: qcom: rename rdma_ch_bit_map to dma_ch_bit_map
  ASoC: qcom: apq8016: add wrdma support
  ASoC: qcom: add wrdma register definations
  ASoC: qcom: add generic bit masks for RDMA and WRDMA
  ASoC: qcom: apq8016: set the correct max register for regmap
  ASoC: qcom: apq8016-sbc: add mic support
  ASoC: qcom: add mic support

 sound/soc/qcom/apq8016_sbc.c     |  10 +-
 sound/soc/qcom/lpass-apq8016.c   |  31 +++--
(Continue reading)

Yaniv Gardi | 1 Feb 14:02 2016

[PATCH v7 00/14] Big fixes, retries, handle a race condition

V7:
updated patch 0001 according to a comment
also, removed patch 07/15 from V6, so now there are only 14 patches

V6:
update Reviewed-by from various reviewers

V5:
removed un-necessary wmb()

V4:
fixing a few comments from reviewers

V3:
removed specific calls to wmb() since they are redundant.

V2:
a few minor changes

V1:
This serie of 15 small patches should be pushed after the series of 8 patches
I have uploaded to the upstream a week ago:
"Fix error message and present UFS variant probe"

Yaniv Gardi (14):
  scsi: ufs: clear UTRD, UPIU req and rsp before new transfers
  scsi: ufs: clear fields UTRD, UPIU req and rsp before new transfers
  scsi: ufs: verify command tag validity
  scsi: ufs: clear outstanding_request bit in case query timeout
  scsi: ufs: increase fDeviceInit query response timeout
(Continue reading)

Georgi Djakov | 1 Feb 11:31 2016

[PATCH v3] regulator: qcom-saw2: Add support for SAW2 regulators

The SAW2 (Subsystem Power Manager and Adaptive Voltage Scaling Wrapper 2)
is part of the SPM subsystem. It is a hardware block in the Qualcomm
chipsets that regulates the power to the CPU cores on platform such as
apq8064, msm8974, apq8084 and others.

Signed-off-by: Georgi Djakov <georgi.djakov <at> linaro.org>
---

Changes since v2 (https://lkml.org/lkml/2016/1/28/481)
 * Address the comments from Mark. Thanks!
 - Implement regulator_get_voltage_sel() instead of regulator_get_voltage()
 - Add cpu_relax() in the loop
 - Specify ramp_delay
 - Drop the legacy "regulator-name" property

Changes since v1 (https://lkml.org/lkml/2015/12/18/629)
 * Move into a separate regulator driver

 .../bindings/regulator/qcom,saw2-regulator.txt     |   31 +++
 drivers/regulator/Kconfig                          |   12 +
 drivers/regulator/Makefile                         |    1 +
 drivers/regulator/qcom_saw2-regulator.c            |  229 ++++++++++++++++++++
 4 files changed, 273 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/qcom,saw2-regulator.txt
 create mode 100644 drivers/regulator/qcom_saw2-regulator.c

diff --git a/Documentation/devicetree/bindings/regulator/qcom,saw2-regulator.txt b/Documentation/devicetree/bindings/regulator/qcom,saw2-regulator.txt
new file mode 100644
index 000000000000..6df5a32ff9fa
--- /dev/null
(Continue reading)

Sinan Kaya | 29 Jan 23:35 2016

[PATCH V13 00/10] dma: add Qualcomm Technologies HIDMA driver

The Qualcomm Technologies HIDMA device has been designed
to support virtualization technology. The driver has been
divided into two to follow the hardware design.

1. HIDMA Management driver
2. HIDMA Channel driver

Each HIDMA HW consists of multiple channels. These channels
share some set of common parameters. These parameters are
initialized by the management driver during power up.
Same management driver is used for monitoring the execution
of the channels. Management driver can change the performance
behavior dynamically such as bandwidth allocation and
prioritization in the future.

The management driver is executed in host context and
is the main management entity for all channels provided by
the device.

------------------------
What's new
------------------------
- VFIO Reset driver
- More documentation in device-tree binding.
- Removed event-channel parameter

------------------------
Git repos
------------------------
QEMU Support
(Continue reading)


Gmane