RE: [PATCH v5 03/15] scsi: ufs: implement scsi host timeout handler

2016-03-08 Thread Dolev Raviv
gt;> goto out; >> } >> >> - err = ufshcd_hold(hba, true); >> + err = ufshcd_hold(hba, false); >> if (err) { >> err = SCSI_MLQUEUE_HOST_BUSY; >> clear_bit_unlock(tag, &hba->

RE: [PATCH v5 00/15] Big fixes, retries, handle a race condition

2015-10-28 Thread Dolev Raviv
Reviewed-by: Dolev Raviv Thanks, Dolev -- Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -Original Message- From: Yaniv Gardi [mailto:yga...@codeaurora.org] Sent

Re: [PATCH 0/6] various fixes for UFS-PM series

2014-11-20 Thread Dolev Raviv
> On Sun, Oct 26, 2014 at 11:04:06AM -0000, Dolev Raviv wrote: >> > Btw, MAINTAINERS doesn't mention you for the ufs driver, should it? >> >> No it shouldn't. > > It seems like I'm getting a lot of the series from you and your signoff, > why should

Re: [PATCH 0/6] various fixes for UFS-PM series

2014-10-26 Thread Dolev Raviv
> On Fri, Oct 24, 2014 at 07:53:23AM -0000, Dolev Raviv wrote: >> The first patch is Akinobu Mita's patch. >> You can add my ack on it. Sorry I meant 'reviewed-by'. > > Given that you passed them on to me you should normally sign off on them > as well. My

Re: [PATCH 0/6] various fixes for UFS-PM series

2014-10-24 Thread Dolev Raviv
> On Thu, Oct 23, 2014 at 01:25:11PM +0300, Dolev Raviv wrote: >> Contains a couple of bug fixes reported by Akinobu Mita, In adition to >> "static checker" warnings reported by Dan Carpenter. > > Any reason you didn't add a signoff to the first patch? The

[PATCH 6/6] scsi: ufs: fix static checker warning in ufshcd_parse_clock_info

2014-10-23 Thread Dolev Raviv
ee(clkfreq) statement. In addition we removed the redundant goto label. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 2cdec78..1c3467b 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -10

[PATCH 3/6] scsi: ufs: fix static checker errors in ufshcd_system_suspend

2014-10-23 Thread Dolev Raviv
HBA is not initialized or is not powered. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 77a4e38..d3f6ddb 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -5104,7 +5104,7 @@ int ufshcd_system_suspend(struct uf

[PATCH 4/6] scsi: ufs: fix static checker warning in ufshcd_populate_vreg

2014-10-23 Thread Dolev Raviv
o fix it we return -ENOMEM and skip the message print. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 8adf067..2cdec78 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -162,10 +162,8 @@ static i

[PATCH 1/6] scsi: ufs: fix reference counting of W-LUs

2014-10-23 Thread Dolev Raviv
Mita Cc: Vinayak Holikatti Cc: Santosh Y Cc: Dolev Raviv Cc: Subhash Jadavani Cc: Yaniv Gardi Cc: Christoph Hellwig Cc: "James E.J. Bottomley" Cc: linux-scsi@vger.kernel.org diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 497c38a..59b6544 100644 --- a/driver

[PATCH 2/6] scsi: ufs: fix power info after link start-up

2014-10-23 Thread Dolev Raviv
, power mode change won't execute again after driver initialization. This patch solves the problem by setting pwr_info to PWM G1 after link start-up. Signed-off-by: Yaniv Gardi Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 59b6544..77a4e38 1

[PATCH 0/6] various fixes for UFS-PM series

2014-10-23 Thread Dolev Raviv
Contains a couple of bug fixes reported by Akinobu Mita, In adition to "static checker" warnings reported by Dan Carpenter. Akinobu Mita (1): scsi: ufs: fix reference counting of W-LUs Dolev Raviv (4): scsi: ufs: fix static checker errors in ufshcd_system_suspend scsi: ufs:

[PATCH 5/6] scsi: ufs: fix static checker warning in __ufshcd_setup_clocks

2014-10-23 Thread Dolev Raviv
e condition. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index d3f6ddb..b9da446 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4473,7 +4473,7 @@ out: if (!IS_ERR_OR_NULL(clki-&g

RE: ufs: add UFS power management support

2014-10-23 Thread Dolev Raviv
Hi Dan, This seem like a false alarm, please let me know if it requires a fix. Thanks, Dolev -- Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -Original Messa

[PATCH 1/1] ufs: scsi: fix sparse errors in ufshcd_system_suspend

2014-10-05 Thread Dolev Raviv
HBA is not initialized or is not powered. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 497c38a..836ea72 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -5087,7 +5087,7 @@ int ufshcd_system_suspend(struct uf

[PATCH 2/2] scsi: ufs: fix sparse warning

2014-09-29 Thread Dolev Raviv
2025:5: sparse: symbol 'ufshcd_change_power_mode' was not declared. Should it be static? Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 5c78c3d..497c38a 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -214

[PATCH 1/2] scsi: fix sparse warning

2014-09-29 Thread Dolev Raviv
This patch fixes newly introduced sparse warning, introduced by "scis: fixing the "type" for well known LUs". Sparse warning: >> drivers/scsi/scsi_scan.c:825: warning: format '%16p' expects type 'void *', but argumen

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

2014-09-25 Thread Dolev Raviv
clocks up if the load is more than upthreshold and scales down if the load is less than downthreshold. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index f07f901..6e07b2a 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers

[PATCH V6 10/18] scsi: ufs: manually add well known logical units

2014-09-25 Thread Dolev Raviv
s patch adds the scsi device instances for each of all well known LUs (except "REPORT LUNS" LU). Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index dc89c48..692fd7a 100644 --- a/drivers/scsi/ufs/ufshcd.c +++

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

2014-09-25 Thread Dolev Raviv
From: Sahitya Tummala Add freq-table-hz propery for UFS device to keep track of frequencies supported by UFS clocks. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd

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

2014-09-25 Thread Dolev Raviv
gulators, phy) if the UFS device detection fails. This saves power while UFS device is not embedded into the system. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 3f2b30d..af29d4c 100644 --- a/drivers/scsi

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

2014-09-25 Thread Dolev Raviv
llapsed, full UFS reinitialization will be required on resume to re-establish the link between host and device. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 37d64c1..42c459a 100644

[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 Signed-off-by: Subhash Jadavani Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b

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

2014-09-25 Thread Dolev Raviv
ff-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 1679cbfb..60260e8 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4884,13 +4884,19 @@ static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op

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

2014-09-25 Thread Dolev Raviv
r this mapping. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 4ca99ed..37d64c1 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -49,9 +49,28 @@ #define UPIU_HEADER_DW

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

2014-09-25 Thread Dolev Raviv
and avoid reading them each link startup during resume. Signed-off-by: Raviv Shvili Signed-off-by: Yaniv Gardi Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index f76a304..4ca99ed 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -115,6

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

2014-09-25 Thread Dolev Raviv
sys/kernel/debug/tracing/trace_pipe Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 052f940..fe3511e 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -177,6 +177,11 @@ static

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

2014-09-25 Thread Dolev Raviv
: Dolev Raviv Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index fad039e..052f940 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -179,6 +179,8 @@ static void ufshcd_hba_exit(struct ufs_hba *hba); static int

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

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

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

2014-09-25 Thread Dolev Raviv
. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt index 65e3117..b0f791a 100644 --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt +++ b

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

2014-09-25 Thread Dolev Raviv
specifics. The methods can be extended in future, for example, for power mode transitions. The operations are vendor/board specific and hence determined with the help of compatible property in device tree. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi

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

2014-09-25 Thread Dolev Raviv
From: Raviv Shvili Add the support for voting of the regulator powering the host controller logic. Signed-off-by: Raviv Shvili Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings

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

2014-09-25 Thread Dolev Raviv
For some devices VCCQ or VCCQ2 are optional as they can be generated using internal LDO inside the UFS device. Add DT bindings for voltage regulators that can be controlled from host driver. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree

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

2014-09-25 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers

[PATCH V6 02/18] scsi: sysfs: don't add scsi_device if its already added

2014-09-25 Thread Dolev Raviv
scsi_sysfs_add_sdev() if it's already visible to rest of the kernel. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 1095d5a..c6c5716 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -1

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

2014-09-25 Thread Dolev Raviv
lt of further development and testing. Changes from V1: - 6 new patches apended at the end - Allow overriding power configuration with controller support and preferences/capabilities - Allow overriding power choice with controller capabilities - Add support for clock gating and clock scaling

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 comp

[PATCH/RESEND V5 07/17] scsi: ufs: refactor query descriptor API support

2014-09-24 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

[PATCH/RESEND V5 04/17] scsi: ufs: Add regulator enable support

2014-09-24 Thread Dolev Raviv
For some devices VCCQ or VCCQ2 are optional as they can be generated using internal LDO inside the UFS device. Add DT bindings for voltage regulators that can be controlled from host driver. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree

[PATCH/RESEND V5 05/17] scsi: ufs: Add clock initialization support

2014-09-24 Thread Dolev Raviv
. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt index 65e3117..b0f791a 100644 --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt +++ b

[PATCH/RESEND V5 09/17] scsi: ufs: Active Power Mode - configuring bActiveICCLevel

2014-09-24 Thread Dolev Raviv
and avoid reading them each link startup during resume. Signed-off-by: Raviv Shvili Signed-off-by: Yaniv Gardi Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index f76a304..4ca99ed 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -115,6

[PATCH V5 02/17] scsi: sysfs: don't add scsi_device if its already added

2014-09-24 Thread Dolev Raviv
of scsi_sysfs_add_sdev() to skip the device add if it's already visible to rest of the kernel. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 3524b68..00890b3 100644 --- a/drivers/scsi/scsi_sysfs.c

[PATCH/RESEND V5 03/17] scsi: ufs: Allow vendor specific initialization

2014-09-24 Thread Dolev Raviv
specifics. The methods can be extended in future, for example, for power mode transitions. The operations are vendor/board specific and hence determined with the help of compatible property in device tree. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi

[PATCH V5 10/17] scsi: ufs: manually add well known logical units

2014-09-24 Thread Dolev Raviv
t;RPMB" (Replay Protected Memory Block) LU so user space process can control this LU. User space may also want to have access to BOOT LU. This patch adds the scsi device instances for each of all well known LUs (except "REPORT LUNS" LU). Signed-off-by: Subhash Jadavani Signed-off-by:

[PATCH/RESEND V5 12/17] scsi: ufs: refactor configuring power mode

2014-09-24 Thread Dolev Raviv
: Dolev Raviv Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 11c6320..6bc4996 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -179,6 +179,8 @@ static void ufshcd_hba_exit(struct ufs_hba *hba); static int

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

2014-09-24 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers

[PATCH/RESEND V5 13/17] scsi: ufs: Add support for clock gating

2014-09-24 Thread Dolev Raviv
sys/kernel/debug/tracing/trace_pipe Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 6bc4996..ff889723 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -177,6 +177,11 @@ static

[PATCH/RESEND V5 17/17] scsi: ufs: definitions for phy interface

2014-09-24 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 Signed-off-by: Subhash Jadavani Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b

[PATCH/RESEND V5 15/17] scsi: ufs: Add support for clock scaling using devfreq framework

2014-09-24 Thread Dolev Raviv
clocks up if the load is more than upthreshold and scales down if the load is less than downthreshold. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index f07f901..6e07b2a 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers

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

2014-09-24 Thread Dolev Raviv
From: Raviv Shvili Add the support for voting of the regulator powering the host controller logic. Signed-off-by: Raviv Shvili Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings

[PATCH/RESEND V5 00/17] UFS: Power management support

2014-09-24 Thread Dolev Raviv
- Allow overriding power choice with controller capabilities - Add support for clock gating and clock scaling - Add capability to control the auto bkops during suspend - Add misc changes for phy/unipro driver usage Dolev Raviv (2): scsi: ufs: refactor configuring power mode scsi: uf

[PATCH/RESEND V5 08/17] scsi: ufs: improve init sequence

2014-09-24 Thread Dolev Raviv
gulators, phy) if the UFS device detection fails. This saves power while UFS device is not embedded into the system. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 3f2b30d..af29d4c 100644 --- a/drivers/scsi

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

2014-09-24 Thread Dolev Raviv
llapsed, full UFS reinitialization will be required on resume to re-establish the link between host and device. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 37d64c1..42c459a 100644

[PATCH/RESEND V5 16/17] scsi: ufs: tune bkops while power managment events

2014-09-24 Thread Dolev Raviv
ff-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index dcab003..d35719d 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4858,13 +4858,19 @@ static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op

[PATCH/RESEND V5 14/17] scsi: ufs: Add freq-table-hz property for UFS device

2014-09-24 Thread Dolev Raviv
From: Sahitya Tummala Add freq-table-hz propery for UFS device to keep track of frequencies supported by UFS clocks. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd

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

2014-09-23 Thread Dolev Raviv
>> /** >> * ufshcd_slave_alloc - handle initial SCSI device configurations >> * @sdev: pointer to SCSI device >> @@ -2232,6 +2403,21 @@ static int ufshcd_slave_alloc(struct scsi_device >> *sdev) >> >> ufshcd_set_queue_depth(sdev); >> >> +ufshcd_get_lu_power_on_wp_status(hba, sdev); >

Re: [PATCH V4 09/17] scsi: ufs: manually add well known logical units

2014-09-23 Thread Dolev Raviv
> None of the REPORT LUNS language makes sense as we're not using it. > > Can you respon the patch with a better description, and a little comment > in the code on why you're adding these wluns. ok. > > Also can I assume none of the later patches relies on their existance? In UFS power manageme

[PATCH/RESEND V4 17/17] scsi: ufs: definitions for phy interface

2014-09-23 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 Signed-off-by: Subhash Jadavani Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b

[PATCH V4 13/17] scsi: ufs: Add support for clock gating

2014-09-23 Thread Dolev Raviv
sys/kernel/debug/tracing/trace_pipe Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index e820262..b6043a6 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -177,6 +177,11 @@ static

[PATCH V4 12/17] scsi: ufs: refactor configuring power mode

2014-09-23 Thread Dolev Raviv
: Dolev Raviv Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index a621827..e820262 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -179,6 +179,8 @@ static void ufshcd_hba_exit(struct ufs_hba *hba); static int

[PATCH/RESEND V4 16/17] scsi: ufs: tune bkops while power managment events

2014-09-23 Thread Dolev Raviv
ff-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 70c1f5d..15ec238 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4816,13 +4816,19 @@ static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op

[PATCH/RESEND V4 10/17] scsi: ufs: introduce well known logical unit in ufs

2014-09-23 Thread Dolev Raviv
r this mapping. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 4ca99ed..37d64c1 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -49,9 +49,28 @@ #define UPIU_HEADER_DW

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

2014-09-23 Thread Dolev Raviv
llapsed, full UFS reinitialization will be required on resume to re-establish the link between host and device. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 37d64c1..42c459a 100644

[PATCH V4 09/17] scsi: ufs: manually add well known logical units

2014-09-23 Thread Dolev Raviv
with SELECT REPORT set to 00h hence this patch manually add the UFS well known logical units. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index dc89c48..1c5422b 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scs

[PATCH/RESEND V4 15/17] scsi: ufs: Add support for clock scaling using devfreq framework

2014-09-23 Thread Dolev Raviv
clocks up if the load is more than upthreshold and scales down if the load is less than downthreshold. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index f07f901..6e07b2a 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers

[PATCH/RESEND V4 04/17] scsi: ufs: Add clock initialization support

2014-09-23 Thread Dolev Raviv
. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt index 65e3117..b0f791a 100644 --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt +++ b

[PATCH V4 14/17] scsi: ufs: Add freq-table-hz property for UFS device

2014-09-23 Thread Dolev Raviv
From: Sahitya Tummala Add freq-table-hz propery for UFS device to keep track of frequencies supported by UFS clocks. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd

[PATCH/RESEND V4 08/17] scsi: ufs: Active Power Mode - configuring bActiveICCLevel

2014-09-23 Thread Dolev Raviv
and avoid reading them each link startup during resume. Signed-off-by: Raviv Shvili Signed-off-by: Yaniv Gardi Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index f76a304..4ca99ed 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -115,6

[PATCH V4 05/17] scsi: ufs: add voting support for host controller power

2014-09-23 Thread Dolev Raviv
From: Raviv Shvili Add the support for voting of the regulator powering the host controller logic. Signed-off-by: Raviv Shvili Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings

[PATCH/RESEND V4 00/17] UFS: Power management support

2014-09-23 Thread Dolev Raviv
abilities - Add support for clock gating and clock scaling - Add capability to control the auto bkops during suspend - Add misc changes for phy/unipro driver usage Dolev Raviv (2): scsi: ufs: refactor configuring power mode scsi: ufs: definitions for phy interface Raviv Shvili (1): scsi: u

[PATCH/RESEND V4 01/17] scsi: balance out autopm get/put calls in scsi_sysfs_add_sdev()

2014-09-23 Thread Dolev Raviv
et earlier in the function. - let drivers do paired get/put calls in their probe methods. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 8b4105a..3524b68 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/dr

[PATCH/RESEND V4 03/17] scsi: ufs: Add regulator enable support

2014-09-23 Thread Dolev Raviv
For some devices VCCQ or VCCQ2 are optional as they can be generated using internal LDO inside the UFS device. Add DT bindings for voltage regulators that can be controlled from host driver. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree

[PATCH/RESEND V4 02/17] scsi: ufs: Allow vendor specific initialization

2014-09-23 Thread Dolev Raviv
specifics. The methods can be extended in future, for example, for power mode transitions. The operations are vendor/board specific and hence determined with the help of compatible property in device tree. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi

[PATCH/RESEND V4 07/17] scsi: ufs: improve init sequence

2014-09-23 Thread Dolev Raviv
gulators, phy) if the UFS device detection fails. This saves power while UFS device is not embedded into the system. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 3f2b30d..af29d4c 100644 --- a/drivers/scsi

[PATCH/RESEND V4 06/17] scsi: ufs: refactor query descriptor API support

2014-09-23 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

Re: [PATCH V3 10/16] scsi: ufs: add UFS power management support

2014-09-21 Thread Dolev Raviv
Hi Kiran, Thanks for bringing it to my attention. Fortunately I already noticed it and fixed it. It will be sent soon when all comments on this series are addressed. Thanks, Dolev > Hi Dolev, > > On Wednesday 10 September 2014 05:24 PM, Dolev Raviv wrote: >> From: Subhash Jadav

Re: [PATCH V3 11/16] scsi: ufs: refactor configuring power mode

2014-09-15 Thread Dolev Raviv
> 2014-09-10 20:54 GMT+09:00 Dolev Raviv : >> +static int ufshcd_config_pwr_mode(struct ufs_hba *hba, >> + struct ufs_pa_layer_attr *desired_pwr_mode) >> +{ >> + struct ufs_pa_layer_attr final_params = { 0 }; >> + int ret; >> + >

Re: [PATCH V3 10/16] scsi: ufs: add UFS power management support

2014-09-15 Thread Dolev Raviv
> 2014-09-10 20:54 GMT+09:00 Dolev Raviv : >> +static inline void ufshcd_enable_irq(struct ufs_hba *hba) >> +{ >> + if (!hba->is_irq_enabled) { >> + enable_irq(hba->irq); >> + hba->is_irq_enabled = true; >

Re: [PATCH V3 09/16] scsi: ufs: introduce well known logical unit in ufs

2014-09-15 Thread Dolev Raviv
> 2014-09-10 20:54 GMT+09:00 Dolev Raviv : >> +static void ufshcd_set_queue_depth(struct scsi_device *sdev) >> +{ >> + int ret = 0; >> + u8 lun_qdepth; >> + struct ufs_hba *hba; >> + >> + hba = shost_priv(sdev->host); >>

[PATCH V3 12/16] scsi: ufs: Add support for clock gating

2014-09-10 Thread Dolev Raviv
sys/kernel/debug/tracing/trace_pipe Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index bfa9a75..c762a6a 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -177,6 +177,11 @@ static

[PATCH V3 09/16] scsi: ufs: introduce well known logical unit in ufs

2014-09-10 Thread Dolev Raviv
r this mapping. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index b0e1f62..bcc3a7f 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -49,9 +49,28 @@ #define UPIU_HEADER_DW

[PATCH V3 14/16] scsi: ufs: Add support for clock scaling using devfreq framework

2014-09-10 Thread Dolev Raviv
clocks up if the load is more than upthreshold and scales down if the load is less than downthreshold. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index f07f901..6e07b2a 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers

[PATCH V3 15/16] scsi: ufs: tune bkops while power managment events

2014-09-10 Thread Dolev Raviv
ff-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 0bbb933..33984cc 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4719,13 +4719,19 @@ static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op

[PATCH V3 10/16] scsi: ufs: add UFS power management support

2014-09-10 Thread Dolev Raviv
llapsed, full UFS reinitialization will be required on resume to re-establish the link between host and device. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index bcc3a7f..2a82959 100644

[PATCH V3 13/16] scsi: ufs: Add freq-table-hz property for UFS device

2014-09-10 Thread Dolev Raviv
From: Sahitya Tummala Add freq-table-hz propery for UFS device to keep track of frequencies supported by UFS clocks. Signed-off-by: Sahitya Tummala Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd

[PATCH V3 04/16] scsi: ufs: Add regulator enable support

2014-09-10 Thread Dolev Raviv
For some devices VCCQ or VCCQ2 are optional as they can be generated using internal LDO inside the UFS device. Add DT bindings for voltage regulators that can be controlled from host driver. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree

[PATCH V3 16/16] scsi: ufs: definitions for phy interface

2014-09-10 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 Signed-off-by: Subhash Jadavani Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b

[PATCH V3 11/16] scsi: ufs: refactor configuring power mode

2014-09-10 Thread Dolev Raviv
: Dolev Raviv Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 79ef312..bfa9a75 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -178,6 +178,8 @@ static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag); static void

[PATCH V3 07/16] scsi: ufs: improve init sequence

2014-09-10 Thread Dolev Raviv
gulators, phy) if the UFS device detection fails. This saves power while UFS device is not embedded into the system. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 57a8dbb..1fabff4 100644 --- a/drivers/scsi

[PATCH V3 06/16] scsi: ufs: refactor query descriptor API support

2014-09-10 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

[PATCH V3 05/16] scsi: ufs: Add clock initialization support

2014-09-10 Thread Dolev Raviv
. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt index 65e3117..b0f791a 100644 --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt +++ b

[PATCH V3 08/16] scsi: ufs: Active Power Mode - configuring bActiveICCLevel

2014-09-10 Thread Dolev Raviv
and avoid reading them each link startup during resume. Signed-off-by: Raviv Shvili Signed-off-by: Yaniv Gardi Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 7ea8e71..b0e1f62 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -115,6

[PATCH V3 03/16] scsi: ufs: Allow vendor specific initialization

2014-09-10 Thread Dolev Raviv
specifics. The methods can be extended in future, for example, for power mode transitions. The operations are vendor/board specific and hence determined with the help of compatible property in device tree. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi

[PATCH V3 01/16] scsi: support well known logical units

2014-09-10 Thread Dolev Raviv
1 then it would report only well known logical unit and if it's set to 2 then device would report both standard and well known logical units. Signed-off-by: Subhash Jadavani Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/scsi_scan.c b/drivers/sc

[PATCH V3 02/16] scsi: balance out autopm get/put calls in scsi_sysfs_add_sdev()

2014-09-10 Thread Dolev Raviv
et earlier in the function. - let drivers do paired get/put calls in their probe methods. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 8b4105a..3524b68 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/dr

[PATCH V3 00/16] UFS: Power management support

2014-09-10 Thread Dolev Raviv
ing suspend - Add misc changes for phy/unipro driver usage Dolev Raviv (2): scsi: ufs: refactor configuring power mode scsi: ufs: definitions for phy interface Sahitya Tummala (3): scsi: ufs: Add support for clock gating scsi: ufs: Add freq-table-hz property for UFS device scsi: ufs: Add

RE: [PATCH/RFC V2 10/16] scsi: ufs: add UFS power management support

2014-09-03 Thread Dolev Raviv
Hi all, Thanks for reviewing the patches, I'm sorry for the late replay. I was waiting for some comments before I address all at once and re-send the series. >> > +/** >> > + * ufshcd_resume - helper function for resume operations >> > + * @hba: per adapter instance >> > + * @pm_op: runtime PM or

RE: [PATCH/RFC V2 10/16] scsi: ufs: add UFS power management support

2014-09-03 Thread Dolev Raviv
Hi all, Thanks for reviewing the patches, I'm sorry for the late replay. I was waiting for some comments before I address all at once and re-send the series. >> >> +static int ufshcd_config_vreg_load(struct device *dev, struct ufs_vreg >> *vreg, >> + int ua) >> +{ >>

[PATCH/RFC V2 05/16] scsi: ufs: improve init sequence

2014-08-14 Thread Dolev Raviv
gulators, phy) if the UFS device detection fails. This saves power while UFS device is not embedded into the system. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 57a8dbb..1fabff4 100644 --- a/drivers/scsi

[PATCH/RFC V2 04/16] scsi: ufs: refactor query descriptor API support

2014-08-14 Thread Dolev Raviv
From: Subhash Jadavani 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 Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

[PATCH/RFC V2 16/16] scsi: ufs: definitions for phy interface

2014-08-14 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 Signed-off-by: Subhash Jadavani Signed-off-by: Yaniv Gardi diff --git a/drivers/scsi/ufs/ufshcd.c b

  1   2   3   >