RE: [PATCH V5 01/17] scsi: fixing the type for well known LUs

2014-09-25 Thread Subhash Jadavani
+ * some devices may respond with wrong type for + * well-known logical units. Force well-known type + * to enumerate them correctly. + */ + if (scsi_is_wlun(sdev-lun)) + sdev-type = TYPE_WLUN; } ... My only

Re: [PATCH v2] iio: iadc: Qualcomm SPMI PMIC current ADC driver

2014-09-25 Thread Ivan T. Ivanov
Hi Mark, On Wed, 2014-09-24 at 18:05 +0100, Mark Rutland wrote: On Wed, Sep 24, 2014 at 05:00:42PM +0100, Ivan T. Ivanov wrote: On Wed, 2014-09-24 at 15:55 +0100, Mark Rutland wrote: On Wed, Sep 24, 2014 at 02:58:23PM +0100, Ivan T. Ivanov wrote: The current ADC is peripheral of

Re: [PATCH V5 11/17] scsi: ufs: add UFS power management support

2014-09-25 Thread Dolev Raviv
Thanks Mita, You are right these are careless mistakes. I will fix all of them and upload a new version shortly. __ufshcd_send_uic_cmd() is called with host_lock held here, but host_lock is acquired again in __ufshcd_send_uic_cmd(). So it causes recursive deadlock. Correct I forgot to

Re: [PATCH] USB: Remove .owner field for driver

2014-09-25 Thread Ivan T. Ivanov
On Wed, 2014-09-24 at 16:48 +0530, Kiran Padwal wrote: There is no need to init .owner field. Based on the patch from Peter Griffin peter.grif...@linaro.org mmc: remove .owner field for drivers using module_platform_driver This patch removes the superflous .owner field for drivers which

[PATCH v4] power: reset: use restart_notifier mechanism for msm-poweroff

2014-09-25 Thread Pramod Gurav
This change replaces use of arm_pm_restart with recently introduced reset mechanism in Linux kernel called restart_notifier. Choosing priority 128, which is default priority, as according to documentation, this mechanism is sufficient to restart the entire system. Cc: Guenter Roeck

[PATCH V6 01/18] scsi: fixing the type for well known LUs

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani subha...@codeaurora.org Some devices may respond with wrong type for well-known logical units. This patch forces well-known type for devices which doesn't report it correct. Signed-off-by: Subhash Jadavani subha...@codeaurora.org Signed-off-by: Sujit Reddy Thumma

[PATCH/RESEND V6 00/18] UFS: Power management support

2014-09-25 Thread Dolev Raviv
This patch seies introduces support for power management in the driver as well as vendor specific initialization - registers, clocks, voltage regulators etc. It includes also a rework for the init sequence and other PM pre-requisite such as write protection support, handling well-known LUN,

[PATCH/RESEND V6 04/18] scsi: ufs: Add regulator enable support

2014-09-25 Thread Dolev Raviv
From: Sujit Reddy Thumma sthu...@codeaurora.org UFS devices are powered by at most three external power supplies - - VCC - The flash memory core power supply, 2.7V to 3.6V or 1.70V to 1.95V - VCCQ - The controller and I/O power supply, 1.1V to 1.3V - VCCQ2 - Secondary controller and/or I/O power

[PATCH/RESEND V6 06/18] scsi: ufs: add voting support for host controller power

2014-09-25 Thread Dolev Raviv
From: Raviv Shvili rshv...@codeaurora.org Add the support for voting of the regulator powering the host controller logic. Signed-off-by: Raviv Shvili rshv...@codeaurora.org Signed-off-by: Subhash Jadavani subha...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org diff --git

[PATCH/RESEND V6 07/18] scsi: ufs: refactor query descriptor API support

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani subha...@codeaurora.org Currently reading query descriptor is more tightened to each descriptor type. This patch generalize the approach and allows reading any parameter from any query descriptor. Signed-off-by: Subhash Jadavani subha...@codeaurora.org Signed-off-by: Dolev

[PATCH/RESEND V6 08/18] scsi: ufs: improve init sequence

2014-09-25 Thread Dolev Raviv
From: Sujit Reddy Thumma sthu...@codeaurora.org In -hce_enable_notify() callback the vendor specific initialization may carry out additional DME configuration using UIC commands and hence the UIC command completion interrupt enable bit should be set before the post reset notification. Add retries

[PATCH/RESEND V6 03/18] scsi: ufs: Allow vendor specific initialization

2014-09-25 Thread Dolev Raviv
From: Sujit Reddy Thumma sthu...@codeaurora.org Some vendor specific controller versions might need to configure vendor specific - registers, clocks, voltage regulators etc. to initialize the host controller UTP layer and Uni-Pro stack. Provide some common initialization operations that can be

[PATCH/RESEND V6 05/18] scsi: ufs: Add clock initialization support

2014-09-25 Thread Dolev Raviv
From: Sujit Reddy Thumma sthu...@codeaurora.org Add generic clock initialization support for UFSHCD platform driver. The clock info is read from device tree using standard clock bindings. A generic max-clock-frequency-hz property is defined to save information on maximum operating clock frequency

[PATCH V6 11/18] scsi: ufs: introduce well known logical unit in ufs

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani subha...@codeaurora.org UFS device may have standard LUs and LUN id could be from 0x00 to 0x7F. UFS device specification use Peripheral Device Addressing Format (SCSI SAM-5) for standard LUs. UFS device may also have the Well Known LUs (also referred as W-LU) which again

[PATCH/RESEND V6 17/18] scsi: ufs: tune bkops while power managment events

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani subha...@codeaurora.org Add capability to control the auto bkops during suspend. If host explicitly enables the auto bkops (background operation) on device then only device would perform the bkops on its own. If auto bkops is not enabled explicitly and if the device reaches

[PATCH/RESEND V6 18/18] scsi: ufs: definitions for phy interface

2014-09-25 Thread Dolev Raviv
- Adding some of the definitions missing in unipro.h, including power enumeration. - Read Modify Write Line helper function - Indication for the type of suspend Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Subhash Jadavani subha...@codeaurora.org Signed-off-by: Yaniv Gardi

[PATCH/RESEND V6 14/18] scsi: ufs: Add support for clock gating

2014-09-25 Thread Dolev Raviv
From: Sahitya Tummala stumm...@codeaurora.org The UFS controller clocks can be gated after certain period of inactivity, which is typically less than runtime suspend timeout. In addition to clocks the link will also be put into Hibern8 mode to save more power. The clock gating can be turned on

[PATCH/RESEND V6 16/18] scsi: ufs: Add support for clock scaling using devfreq framework

2014-09-25 Thread Dolev Raviv
From: Sahitya Tummala stumm...@codeaurora.org The clocks for UFS device will be managed by generic DVFS (Dynamic Voltage and Frequency Scaling) framework within kernel. This devfreq framework works with different governors to scale the clocks. By default, UFS devices uses simple_ondemand governor

[PATCH/RESEND V6 09/18] scsi: ufs: Active Power Mode - configuring bActiveICCLevel

2014-09-25 Thread Dolev Raviv
From: Yaniv Gardi yga...@codeaurora.org The maximum power consumption in active is determined by bActiveICCLevel. The configuration is done by reading max current supported by the regulators connected to VCC, VCCQ and VCCQ2 rails on the boards, and reading the current consumption levels from the

[PATCH V6 12/18] scsi: ufs: add UFS power management support

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani subha...@codeaurora.org This patch adds support for UFS device and UniPro link power management during runtime/system PM. Main idea is to define multiple UFS low power levels based on UFS device and UFS link power states. This would allow any specific platform or pci

[PATCH/RESEND V6 13/18] scsi: ufs: refactor configuring power mode

2014-09-25 Thread Dolev Raviv
Sometimes, the device shall report its maximum power and speed capabilities, but we might not wish to configure it to use those maximum capabilities. This change adds support for the vendor specific host driver to implement power change notify callback. To enable configuring different power modes

[PATCH/RESEND V6 15/18] scsi: ufs: Add freq-table-hz property for UFS device

2014-09-25 Thread Dolev Raviv
From: Sahitya Tummala stumm...@codeaurora.org Add freq-table-hz propery for UFS device to keep track of min max frequencies supported by UFS clocks. Signed-off-by: Sahitya Tummala stumm...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org diff --git

Re: [PATCH v3 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-09-25 Thread Ivan T. Ivanov
Hi Stan, few comment bellow. On Wed, 2014-09-24 at 15:56 +0300, Stanimir Varbanov wrote: The voltage ADC is peripheral of Qualcomm SPMI PMIC chips. It has 15bits resolution and register space inside PMIC accessible across SPMI bus. The vadc driver registers itself through IIO interface.

[PATCH] ARM: multi_v7_defconfig: Add Support for QCOM APQ8074 reset

2014-09-25 Thread Pramod Gurav
This change adds support for reset driver for apq8074 based platform. With this we should be able to reboot the board from command prompt. Cc: Russell King li...@arm.linux.org.uk Cc: linux-arm-ker...@lists.infradead.org Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Pramod Gurav

[PATCH v2] thermal: Add QPNP PMIC temperature alarm driver

2014-09-25 Thread Ivan T. Ivanov
Add support for the temperature alarm peripheral found inside Qualcomm plug-and-play (QPNP) PMIC chips. The temperature alarm peripheral outputs a pulse on an interrupt line whenever the thermal over temperature stage value changes. Implement an ISR to manage this interrupt. Register a thermal

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Russell King - ARM Linux
On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd,

Re: [PATCH v3 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-09-25 Thread Stanimir Varbanov
Hi Ivan, On 09/25/2014 03:47 PM, Ivan T. Ivanov wrote: Hi Stan, few comment bellow. On Wed, 2014-09-24 at 15:56 +0300, Stanimir Varbanov wrote: The voltage ADC is peripheral of Qualcomm SPMI PMIC chips. It has 15bits resolution and register space inside PMIC accessible across SPMI bus.

Re: [PATCH/RESEND V6 00/18] UFS: Power management support

2014-09-25 Thread David Miller
Please stop putting listname-owner (in this case linux-scsi-owner) in the CC: list, that goes to me not the list. -- To unsubscribe from this list: send the line unsubscribe linux-arm-msm in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Catalin Marinas
On Thu, Sep 25, 2014 at 03:31:42PM +0100, Russell King - ARM Linux wrote: On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can

Re: [PATCH v5 1/1] iommu-api: Add map_sg/unmap_sg functions

2014-09-25 Thread Joerg Roedel
On Mon, Aug 11, 2014 at 03:45:50PM -0700, Olav Haugan wrote: +static inline int iommu_map_sg(struct iommu_domain *domain, unsigned long iova, +struct scatterlist *sg, unsigned int nents, +int prot, unsigned long flags) +{ + return

[PATCH v3 3/3] watchdog: qcom: register a restart notifier

2014-09-25 Thread Josh Cartwright
The WDT's BITE_TIME warm-reset behavior can be leveraged as a last resort mechanism for triggering chip reset. Usually, other restart methods (such as PS_HOLD) are preferrable for issuing a more complete reset of the chip. As such, keep the priority of the watchdog notifier low. Signed-off-by:

[PATCH v3 0/3] watchdog: add support for QCOM WDT

2014-09-25 Thread Josh Cartwright
This patchset provides support for the Watchdog Timer (WDT) found in the Krait Processor Sub-system (KPSS) of the MSM8960, APQ8064, and IPQ8064 chips. This driver is implemented ontop of WATCHDOG_CORE, and therefore its primary interface is through userspace. The implemantion is currently very

[PATCH v3 1/3] watchdog: qcom: add support for KPSS WDT

2014-09-25 Thread Josh Cartwright
Add a driver for the watchdog timer block found in the Krait Processor Subsystem (KPSS) on the MSM8960, APQ8064, and IPQ8064. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/watchdog/Kconfig| 13 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/qcom-wdt.c | 189

[PATCH v3 2/3] watchdog: qcom: document device tree bindings

2014-09-25 Thread Josh Cartwright
The Qualcomm Krait Processor Sub-system (KPSS) contains one or more instances of the WDT. Provide documentation on how to describe these in the device tree. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- .../devicetree/bindings/watchdog/qcom-wdt.txt | 22 ++ 1

Re: [PATCH v3 1/3] watchdog: qcom: add support for KPSS WDT

2014-09-25 Thread Guenter Roeck
On Thu, Sep 25, 2014 at 12:48:51PM -0500, Josh Cartwright wrote: Add a driver for the watchdog timer block found in the Krait Processor Subsystem (KPSS) on the MSM8960, APQ8064, and IPQ8064. Signed-off-by: Josh Cartwright jo...@codeaurora.org Hi Josh, just a couple of minor comments this

Re: [PATCH v3 3/3] watchdog: qcom: register a restart notifier

2014-09-25 Thread Guenter Roeck
On Thu, Sep 25, 2014 at 12:48:53PM -0500, Josh Cartwright wrote: The WDT's BITE_TIME warm-reset behavior can be leveraged as a last resort mechanism for triggering chip reset. Usually, other restart methods (such as PS_HOLD) are preferrable for issuing a more complete reset of the chip. As

Re: [PATCH v3 2/3] watchdog: qcom: document device tree bindings

2014-09-25 Thread Guenter Roeck
On Thu, Sep 25, 2014 at 12:48:52PM -0500, Josh Cartwright wrote: The Qualcomm Krait Processor Sub-system (KPSS) contains one or more instances of the WDT. Provide documentation on how to describe these in the device tree. Signed-off-by: Josh Cartwright jo...@codeaurora.org ---

Re: [PATCH v3 1/3] watchdog: qcom: add support for KPSS WDT

2014-09-25 Thread Josh Cartwright
On Thu, Sep 25, 2014 at 11:38:57AM -0700, Guenter Roeck wrote: On Thu, Sep 25, 2014 at 12:48:51PM -0500, Josh Cartwright wrote: Add a driver for the watchdog timer block found in the Krait Processor Subsystem (KPSS) on the MSM8960, APQ8064, and IPQ8064. Signed-off-by: Josh Cartwright

Re: [PATCH v3 2/3] watchdog: qcom: document device tree bindings

2014-09-25 Thread Josh Cartwright
On Thu, Sep 25, 2014 at 11:43:14AM -0700, Guenter Roeck wrote: On Thu, Sep 25, 2014 at 12:48:52PM -0500, Josh Cartwright wrote: [..] +- timeout-sec : shall contain the default watchdog timeout in seconds, +if unset, the default timeout is 30 seconds Hi Josh, timeout-sec

Re: [PATCH v3 3/3] watchdog: qcom: register a restart notifier

2014-09-25 Thread Josh Cartwright
On Thu, Sep 25, 2014 at 11:41:49AM -0700, Guenter Roeck wrote: On Thu, Sep 25, 2014 at 12:48:53PM -0500, Josh Cartwright wrote: The WDT's BITE_TIME warm-reset behavior can be leveraged as a last resort mechanism for triggering chip reset. Usually, other restart methods (such as PS_HOLD)

Re: [PATCH v2] iio: iadc: Qualcomm SPMI PMIC current ADC driver

2014-09-25 Thread Ivan T. Ivanov
On Thu, 2014-09-25 at 17:02 +0100, Mark Rutland wrote: On Thu, Sep 25, 2014 at 10:47:15AM +0100, Ivan T. Ivanov wrote: Hi Mark, On Wed, 2014-09-24 at 18:05 +0100, Mark Rutland wrote: On Wed, Sep 24, 2014 at 05:00:42PM +0100, Ivan T. Ivanov wrote: On Wed, 2014-09-24 at 15:55 +0100,

Re: [PATCH v3 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-09-25 Thread Ivan T. Ivanov
On Thu, 2014-09-25 at 18:30 +0300, Stanimir Varbanov wrote: Hi Ivan, On 09/25/2014 03:47 PM, Ivan T. Ivanov wrote: Hi Stan, few comment bellow. On Wed, 2014-09-24 at 15:56 +0300, Stanimir Varbanov wrote: The voltage ADC is peripheral of Qualcomm SPMI PMIC chips. It has 15bits

Re: [GIT PULL] qcom SoC changes for v3.18 (updated)

2014-09-25 Thread Kumar Gala
On Sep 22, 2014, at 4:54 PM, Kumar Gala ga...@codeaurora.org wrote: [ some how scm-boot.c got dropped, fixed now ] The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9: Linux 3.17-rc1 (2014-08-16 10:40:26 -0600) are available in the git repository at:

[PATCH v4 0/3] watchdog: add support for QCOM WDT

2014-09-25 Thread Josh Cartwright
This patchset provides support for the Watchdog Timer (WDT) found in the Krait Processor Sub-system (KPSS) of the MSM8960, APQ8064, and IPQ8064 chips. This driver is implemented ontop of WATCHDOG_CORE, and therefore its primary interface is through userspace. The implemantion is currently very

[PATCH v4 3/3] watchdog: qcom: register a restart notifier

2014-09-25 Thread Josh Cartwright
The WDT's BITE_TIME warm-reset behavior can be leveraged as a last resort mechanism for triggering chip reset. Usually, other restart methods (such as PS_HOLD) are preferrable for issuing a more complete reset of the chip. As such, keep the priority of the watchdog notifier low. Signed-off-by:

[PATCH v4 1/3] watchdog: qcom: add support for KPSS WDT

2014-09-25 Thread Josh Cartwright
Add a driver for the watchdog timer block found in the Krait Processor Subsystem (KPSS) on the MSM8960, APQ8064, and IPQ8064. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- drivers/watchdog/Kconfig| 13 drivers/watchdog/Makefile | 1 + drivers/watchdog/qcom-wdt.c | 186

[PATCH v4 2/3] watchdog: qcom: document device tree bindings

2014-09-25 Thread Josh Cartwright
The Qualcomm Krait Processor Sub-system (KPSS) contains one or more instances of the WDT. Provide documentation on how to describe these in the device tree. Signed-off-by: Josh Cartwright jo...@codeaurora.org --- .../devicetree/bindings/watchdog/qcom-wdt.txt | 24 ++ 1

Re: [PATCH v2] soc: qcom: do not disable the iface clock in probe

2014-09-25 Thread Kevin Hilman
Srinivas Kandagatla srinivas.kandaga...@linaro.org writes: On 24/09/14 16:22, Kevin Hilman wrote: Srinivas Kandagatla srinivas.kandaga...@linaro.org writes: since commit 31964ffebbb9 (tty: serial: msm: Remove direct access to GSBI)' serial hangs if earlyprintk are enabled. This hang is

RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Wang, Yalin
On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of

Re: [PATCH v4 2/3] watchdog: qcom: document device tree bindings

2014-09-25 Thread Guenter Roeck
On 09/25/2014 03:51 PM, Josh Cartwright wrote: The Qualcomm Krait Processor Sub-system (KPSS) contains one or more instances of the WDT. Provide documentation on how to describe these in the device tree. Signed-off-by: Josh Cartwright jo...@codeaurora.org Reviewed-by: Guenter Roeck

Re: [PATCH v4 3/3] watchdog: qcom: register a restart notifier

2014-09-25 Thread Guenter Roeck
On 09/25/2014 03:51 PM, Josh Cartwright wrote: The WDT's BITE_TIME warm-reset behavior can be leveraged as a last resort mechanism for triggering chip reset. Usually, other restart methods (such as PS_HOLD) are preferrable for issuing a more complete reset of the chip. As such, keep the