RE: [PATCH v2 13/18] usb: typec: ucsi: ccg: Move to the new API

2019-10-23 Thread Ajay Gupta
Hi Heikki > -Original Message- > From: Heikki Krogerus > Sent: Wednesday, October 23, 2019 7:40 AM > To: Greg Kroah-Hartman > Cc: Guenter Roeck ; Ajay Gupta ; > linux-usb@vger.kernel.org > Subject: [PATCH v2 13/18] usb: typec: ucsi: ccg: Move to the new API >

RE: [PATCH 00/18] usb: typec: API improvements

2019-10-23 Thread Ajay Gupta
Hi Heikki > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Heikki Krogerus > Sent: Wednesday, October 23, 2019 1:06 AM > To: Ajay Gupta > Cc: Greg Kroah-Hartman ; Guenter Roeck > ; linux-usb@vger.kernel.org > Subject: Re: [PATC

RE: [PATCH 00/18] usb: typec: API improvements

2019-10-22 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Heikki Krogerus > Sent: Tuesday, October 22, 2019 12:41 AM > To: Ajay Gupta > Cc: Greg Kroah-Hartman ; Guenter Roeck > ; linux-usb@vger.kernel.org > Subject: Re: [PATC

Re: [PATCH 14/18] usb: typec: ucsi: Remove the old API

2019-10-22 Thread Ajay Gupta
Hi Heikki, > On Oct 22, 2019, at 12:04 AM, Heikki Krogerus > wrote: > > Hi Ajay, > >> On Mon, Oct 21, 2019 at 07:28:36PM +, Ajay Gupta wrote: >> Hi Heikki, >> >>> -Original Message- >>> From: linux-usb-ow...@vger.kernel.org

RE: [PATCH 00/18] usb: typec: API improvements

2019-10-21 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Heikki Krogerus > Sent: Monday, October 21, 2019 4:25 AM > To: Greg Kroah-Hartman > Cc: Guenter Roeck ; Ajay Gupta ; > linux-usb@vger.kernel.org > Subject: [PATCH 00/18] usb:

RE: [PATCH 14/18] usb: typec: ucsi: Remove the old API

2019-10-21 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Heikki Krogerus > Sent: Monday, October 21, 2019 4:25 AM > To: Greg Kroah-Hartman > Cc: Guenter Roeck ; Ajay Gupta ; > linux-usb@vger.kernel.org > Subject: [PATCH 14/18] usb:

RE: [PATCH 00/14] usb: typec: UCSI driver overhaul

2019-10-10 Thread Ajay Gupta
Hi Heikki, > > > > Hi Ajay, > > > > > > > > Here's the pretty much complete rewrite of the I/O handling that I > > > > was talking about. The first seven patches are not actually > > > > related to this stuff, but I'm including them here because the > > > > rest of the series is made on top of the

RE: [PATCH 00/14] usb: typec: UCSI driver overhaul

2019-10-03 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Thursday, October 3, 2019 7:25 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org > Subject: Re: [PATCH 00/14] usb: typec: UCSI driver overhaul > > Hi Ajay, > > On Tue, Oct 01, 2019 at 06:3

RE: [PATCH 00/14] usb: typec: UCSI driver overhaul

2019-10-01 Thread Ajay Gupta
Hi Heikki > -Original Message- > From: Heikki Krogerus > Sent: Thursday, September 26, 2019 3:07 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org > Subject: [PATCH 00/14] usb: typec: UCSI driver overhaul > > Hi Ajay, > > Here's the pretty much c

RE: [PATCH 00/14] usb: typec: UCSI driver overhaul

2019-09-27 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Friday, September 27, 2019 5:53 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org > Subject: Re: [PATCH 00/14] usb: typec: UCSI driver overhaul > > On Fri, Sep 27, 2019 at 12:13:57AM +,

RE: [PATCH 00/14] usb: typec: UCSI driver overhaul

2019-09-26 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Thursday, September 26, 2019 3:07 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org > Subject: [PATCH 00/14] usb: typec: UCSI driver overhaul > > Hi Ajay, > > Here's the pretty much c

RE: [RFC PATCH] usb: typec: ucsi: ccg: Remove run_isr flag

2019-09-24 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Heikki Krogerus > Sent: Tuesday, September 24, 2019 1:25 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org > Subject: Re: [RFC PATCH] usb: typec: ucsi: ccg: Remove run_isr flag

RE: [RFC PATCH] usb: typec: ucsi: ccg: Remove run_isr flag

2019-09-23 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Heikki Krogerus > Sent: Monday, September 23, 2019 6:31 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org > Subject: [RFC PATCH] usb: typec: ucsi: ccg: Remove run_isr flag >

RE: [PATCH v5] usb: typec: ucsi: add support for separate DP altmode devices

2019-09-17 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Friday, September 13, 2019 8:20 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org; Ajay Gupta > Subject: Re: [PATCH v5] usb: typec: ucsi: add support for separate DP altmode > devices > > H

[PATCH v5] usb: typec: ucsi: add support for separate DP altmode devices

2019-09-06 Thread Ajay Gupta
From: Ajay Gupta CCGx controller used on NVIDIA GPU card has two separate display altmode for two DP pin assignments. UCSI specification doesn't prohibits using separate display altmode. Current UCSI Type-C framework expects only one display altmode for all DP pin assignment. This

RE: [PATCH v4] usb: typec: ucsi: add support for separate DP altmode devices

2019-09-06 Thread Ajay Gupta
Hi Heikki, > > CCGx controller used on NVIDIA GPU card has two separate display > > altmode for two DP pin assignments. UCSI specification doesn't > > prohibits using separate display altmode. > > > > Current UCSI Type-C framework expects only one display altmode for all > > DP pin assignment. Thi

[PATCH v4] usb: typec: ucsi: add support for separate DP altmode devices

2019-09-04 Thread Ajay Gupta
From: Ajay Gupta CCGx controller used on NVIDIA GPU card has two separate display altmode for two DP pin assignments. UCSI specification doesn't prohibits using separate display altmode. Current UCSI Type-C framework expects only one display altmode for all DP pin assignment. This

[PATCH v3] usb: typec: ucsi: add support for separate DP altmode devices

2019-08-29 Thread Ajay Gupta
From: Ajay Gupta CCGx controller used on NVIDIA GPU card has two separate display altmode for two DP pin assignments. UCSI specification doesn't prohibits using separate display altmode. Current UCSI Type-C framework expects only one display altmode for all DP pin assignment. This

RE: [PATCH v2] usb: typec: ucsi: add support for separate DP altmode devices

2019-08-19 Thread Ajay Gupta
Hi Heikki > On Mon, Aug 05, 2019 at 11:24:13AM -0700, Ajay Gupta wrote: > > From: Ajay Gupta > > > > CCGx controller used on NVIDIA GPU card has two separate display > > altmode for two DP pin assignments. UCSI specification doesn't > > prohibits using sep

[PATCH v2] usb: typec: ucsi: add support for separate DP altmode devices

2019-08-05 Thread Ajay Gupta
From: Ajay Gupta CCGx controller used on NVIDIA GPU card has two separate display altmode for two DP pin assignments. UCSI specification doesn't prohibits using separate display altmode. Current UCSI Type-C framework expects only one display altmode for all DP pin assignment. This

[PATCH] usb: typec: ucsi: add support for separate DP altmode devices

2019-06-28 Thread Ajay Gupta
From: Ajay Gupta CCGx controller used on NVIDIA GPU card has two separate display altmode for two DP pin assignments. UCSI specification doesn't prohibits using separate display altmode. Current UCSI Type-C framework expects only one display altmode for all DP pin assignment. This

Re: [RFC] usb: typec: ucsi: add support for separate DP altmode devices

2019-06-28 Thread Ajay Gupta
Hi Heikki, > On Jun 28, 2019, at 3:47 AM, Heikki Krogerus > wrote: > >> On Thu, Jun 27, 2019 at 10:45:47PM -0700, Ajay Gupta wrote: >> CCGx controller used on NVIDIA GPU card has two separate display >> altmode for two DP pin assignments. UCSI specification doesn&#x

[RFC] usb: typec: ucsi: add support for separate DP altmode devices

2019-06-27 Thread Ajay Gupta
modes into one. Signed-off-by: Ajay Gupta --- drivers/usb/typec/ucsi/ucsi.c | 191 +- drivers/usb/typec/ucsi/ucsi.h | 12 +++ 2 files changed, 199 insertions(+), 4 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index ba288b9

[PATCH v5 2/5] i2c: nvidia-gpu: add runtime pm support

2019-06-07 Thread Ajay Gupta
From: Ajay Gupta Enable runtime pm support with autosuspend delay of three second. This is to make sure I2C client device Cypress CCGx has completed all transaction. Signed-off-by: Ajay Gupta --- Changes from v4->v5: - Removed extra comments for gpu_i2c_suspend() based

[PATCH v5 4/5] i2c: nvidia-gpu: resume ccgx i2c client

2019-06-07 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v5 3/5] usb: typec: ucsi: ccg: enable runtime pm support

2019-06-07 Thread Ajay Gupta
From: Ajay Gupta The change enables runtime pm support to UCSI CCG driver. Added ucsi_resume() function to enable notification after system reusme. Exported both ucsi_resume() and ucsi_send_command() symbols in ucsi.c for modular build. Signed-off-by: Ajay Gupta Acked-by: Heikki Krogerus

[PATCH v5 5/5] usb: typec: ucsi: ccg: add runtime pm workaround

2019-06-07 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v5 1/5] i2c: nvidia-gpu: refactor master_xfer

2019-06-07 Thread Ajay Gupta
From: Ajay Gupta Added a local variable "send_stop" to simplify "goto" statements. The "send_stop" handles below two case 1) When first i2c start fails and so i2c stop is not sent before exiting 2) When i2c stop failed after all transfers and we do not need to se

[PATCH v5 0/5] usb: typec: ucsi: ccg: add runtime pm support

2019-06-07 Thread Ajay Gupta
mware with the known issue. All the five patches should go together since ucsi_ccg driver is dependent on i2c driver for runtime pm wokaround. I would prefer it to go through usb-tree since usb ucsi_ccg driver is the main driver getting runtime pm functionality with the series. Thanks Ajay Ajay

RE: [PATCH v4 2/5] i2c: nvidia-gpu: add runtime pm support

2019-06-07 Thread Ajay Gupta
Hi Wolfram, > -Original Message- > From: linux-i2c-ow...@vger.kernel.org > On Behalf Of Wolfram Sang > Sent: Friday, June 7, 2019 1:33 AM > To: Ajay Gupta > Cc: heikki.kroge...@linux.intel.com; linux-usb@vger.kernel.org; linux- > i...@vger.kernel.org; Ajay Gupta

RE: [PATCH v4 1/5] i2c: nvidia-gpu: refactor master_xfer

2019-06-07 Thread Ajay Gupta
Hi Wolfram, > -Original Message- > From: Wolfram Sang > Sent: Friday, June 7, 2019 1:33 AM > To: Ajay Gupta > Cc: heikki.kroge...@linux.intel.com; linux-usb@vger.kernel.org; linux- > i...@vger.kernel.org; Ajay Gupta > Subject: Re: [PATCH v4 1/5] i2c: nvidia-gpu:

RE: [PATCH v4 3/5] usb: typec: ucsi: ccg: enable runtime pm support

2019-06-07 Thread Ajay Gupta
Hi Heikki and Wolfram, > -Original Message- > From: linux-i2c-ow...@vger.kernel.org > On Behalf Of Wolfram Sang > Sent: Friday, June 7, 2019 1:27 AM > To: Heikki Krogerus > Cc: Ajay Gupta ; linux-usb@vger.kernel.org; linux- > i...@vger.kernel.org; Ajay Gupta >

[PATCH v4 3/5] usb: typec: ucsi: ccg: enable runtime pm support

2019-06-03 Thread Ajay Gupta
From: Ajay Gupta The change enables runtime pm support to UCSI CCG driver. Added ucsi_resume() function to enable notification after system reusme. Exported both ucsi_resume() and ucsi_send_command() symbols in ucsi.c for modular build. Signed-off-by: Ajay Gupta --- Changes from v3->v4 : N

[PATCH v4 1/5] i2c: nvidia-gpu: refactor master_xfer

2019-06-03 Thread Ajay Gupta
From: Ajay Gupta Added a local variable "send_stop" to simplify "goto" statements. The "send_stop" handles below two case 1) When first i2c start fails and so i2c stop is not sent before exiting 2) When i2c stop failed after all transfers and we do not need to se

[PATCH v4 2/5] i2c: nvidia-gpu: add runtime pm support

2019-06-03 Thread Ajay Gupta
From: Ajay Gupta Enable runtime pm support with autosuspend delay of three second. This is to make sure I2C client device Cypress CCGx has completed all transaction. Signed-off-by: Ajay Gupta --- Changes from v3->v4: - Added comment on why stub gpu_i2c_suspend() is needed

[PATCH v4 4/5] i2c: nvidia-gpu: resume ccgx i2c client

2019-06-03 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v4 5/5] usb: typec: ucsi: ccg: add runtime pm workaround

2019-06-03 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v4 0/5] usb: typec: ucsi: ccg: add runtime pm support

2019-06-03 Thread Ajay Gupta
tches should go together since ucsi_ccg driver is dependent on i2c driver for runtime pm wokaround. I would prefer it to go through usb-tree since usb ucsi_ccg driver is the main driver getting runtime pm functionality with the series. Thanks Ajay Ajay Gupta (5): i2c: nvidia-gpu: ref

RE: [PATCH v3 2/5] i2c: nvidia-gpu: add runtime pm support

2019-05-31 Thread Ajay Gupta
Hi Wolfram, > > -Original Message- > > From: linux-usb-ow...@vger.kernel.org ow...@vger.kernel.org> > > On Behalf Of Wolfram Sang > > Sent: Saturday, May 25, 2019 12:57 PM > > To: Ajay Gupta > > Cc: heikki.kroge...@linux.intel.com;

RE: [PATCH v3 2/5] i2c: nvidia-gpu: add runtime pm support

2019-05-28 Thread Ajay Gupta
Hi Wolfram, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > On Behalf Of Wolfram Sang > Sent: Saturday, May 25, 2019 12:57 PM > To: Ajay Gupta > Cc: heikki.kroge...@linux.intel.com; linux-usb@vger.kernel.org; linux- > i...@vger.kernel.org; Ajay

[PATCH v3 5/5] usb: typec: ucsi: ccg: add runtime pm workaround

2019-05-22 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v3 3/5] usb: typec: ucsi: ccg: enable runtime pm support

2019-05-22 Thread Ajay Gupta
From: Ajay Gupta The change enables runtime pm support to UCSI CCG driver. Added ucsi_resume() function to enable notification after system reusme. Exported both ucsi_resume() and ucsi_send_command() symbols in ucsi.c for modular build. Signed-off-by: Ajay Gupta --- Changes from v2->v3 : N

[PATCH v3 0/5] usb: typec: ucsi: ccg: add runtime pm support

2019-05-22 Thread Ajay Gupta
me pm wokaround. I would prefer it to go through usb-tree since usb ucsi_ccg driver is the main driver getting runtime pm functionality with the series. Thanks Ajay Ajay Gupta (5): i2c: nvidia-gpu: refactor master_xfer i2c: nvidia-gpu: add runtime pm support usb: typec: ucsi: ccg: enable runti

[PATCH v3 2/5] i2c: nvidia-gpu: add runtime pm support

2019-05-22 Thread Ajay Gupta
From: Ajay Gupta Enable runtime pm support with autosuspend delay of three second. This is to make sure I2C client device Cypress CCGx has completed all transaction. Signed-off-by: Ajay Gupta --- Changes from v1->v2: - Added __maybe_unused in gpu_i2c_suspend to avoid warn

[PATCH v3 1/5] i2c: nvidia-gpu: refactor master_xfer

2019-05-22 Thread Ajay Gupta
From: Ajay Gupta Added a local variable "send_stop" to simplify "goto" statements. The "send_stop" handles below two case 1) When first i2c start fails and so i2c stop is not sent before exiting 2) When i2c stop failed after all transfers and we do not need to se

[PATCH v3 4/5] i2c: nvidia-gpu: resume ccgx i2c client

2019-05-22 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

RE: [PATCH v2 3/5] usb: typec: ucsi: ccg: enable runtime pm support

2019-05-21 Thread Ajay Gupta
Hi Heikki > > +static int ucsi_ccg_resume(struct device *dev) { > > + struct i2c_client *client = to_i2c_client(dev); > > + struct ucsi_ccg *uc = i2c_get_clientdata(client); > > + struct ucsi *ucsi = uc->ucsi; > > + struct ucsi_control c; > > + int ret; > > + > > + /* restore UCSI noti

[PATCH v2 0/5] usb: typec: ucsi: ccg: add runtime pm support

2019-05-20 Thread Ajay Gupta
eries. Thanks Ajay Ajay Gupta (5): i2c: nvidia-gpu: refactor master_xfer i2c: nvidia-gpu: add runtime pm support usb: typec: ucsi: ccg: enable runtime pm support i2c: nvidia-gpu: resume ccgx i2c client usb: typec: ucsi: ccg: add runtime pm workaround drivers/i2c/busses/i2c-nvidia-

[PATCH v2 5/5] usb: typec: ucsi: ccg: add runtime pm workaround

2019-05-20 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v2 1/5] i2c: nvidia-gpu: refactor master_xfer

2019-05-20 Thread Ajay Gupta
From: Ajay Gupta Added a local variable "send_stop" to simplify "goto" statements. The "send_stop" handles below two case 1) When first i2c start fails and so i2c stop is not sent before exiting 2) When i2c stop failed after all transfers and we do not need to se

[PATCH v2 3/5] usb: typec: ucsi: ccg: enable runtime pm support

2019-05-20 Thread Ajay Gupta
From: Ajay Gupta The change enables runtime pm support to UCSI CCG driver. ucsi_send_command() is used in resume path and so exported ucsi_send_command() symbol in ucsi.c for modular build. Signed-off-by: Ajay Gupta --- Changes from v1->v2 : None drivers/usb/typec/ucsi/ucsi.c |

[PATCH v2 4/5] i2c: nvidia-gpu: resume ccgx i2c client

2019-05-20 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware version 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. If any GPU card gets latest kernel with runtime pm support but

[PATCH v2 2/5] i2c: nvidia-gpu: add runtime pm support

2019-05-20 Thread Ajay Gupta
From: Ajay Gupta Enable runtime pm support with autosuspend delay of three second. This is to make sure I2C client device Cypress CCGx has completed all transaction. Signed-off-by: Ajay Gupta --- Changes from v1->v2: None drivers/i2c/busses/i2c-nvidia-gpu.c | 19 ++- 1 f

RE: [PATCH 3/4] i2c: nvidia-gpu: resume ccgx i2c client

2019-05-20 Thread Ajay Gupta
Hi Wolfram, > -Original Message- > From: Wolfram Sang > Sent: Sunday, May 19, 2019 7:49 AM > To: Ajay Gupta > Cc: heikki.kroge...@linux.intel.com; linux-usb@vger.kernel.org; linux- > i...@vger.kernel.org; Ajay Gupta > Subject: Re: [PATCH 3/4] i2c: nvidia-gpu: r

RE: [PATCH 1/4] i2c: nvidia-gpu: add runtime pm support

2019-05-20 Thread Ajay Gupta
Hi Wolfram, > -Original Message- > From: Wolfram Sang > Sent: Sunday, May 19, 2019 7:47 AM > To: Ajay Gupta > Cc: heikki.kroge...@linux.intel.com; linux-usb@vger.kernel.org; linux- > i...@vger.kernel.org; Ajay Gupta > Subject: Re: [PATCH 1/4] i2c: nvidia-gpu: a

[PATCH 3/4] i2c: nvidia-gpu: resume ccgx i2c client

2019-05-17 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. Many of these cards may get latest kernel but may not get latest fixed

[PATCH 1/4] i2c: nvidia-gpu: add runtime pm support

2019-05-17 Thread Ajay Gupta
From: Ajay Gupta Enable runtime pm support with autosuspend delay of three second. This is to make sure I2C client device Cypress CCGx has completed all transaction. Signed-off-by: Ajay Gupta --- drivers/i2c/busses/i2c-nvidia-gpu.c | 24 +--- 1 file changed, 21 insertions

[PATCH 4/4] usb: typec: ucsi: ccg: add runtime pm workaround

2019-05-17 Thread Ajay Gupta
From: Ajay Gupta Cypress USB Type-C CCGx controller firmware verson 3.1.10 (which is being used in many NVIDIA GPU cards) has known issue of not triggering interrupt when a USB device is hot plugged to runtime resume the controller. Many of these cards may get latest kernel but may not get

[PATCH 0/4] usb: typec: ucsi: ccg: add runtime pm support

2019-05-17 Thread Ajay Gupta
s new kernel then also it should continue to work. Thanks Ajay Ajay Gupta (4): i2c: nvidia-gpu: add runtime pm support usb: typec: ucsi: ccg: enable runtime pm support i2c: nvidia-gpu: resume ccgx i2c client usb: typec: ucsi: ccg: add runtime pm workaround drivers/i2c/busses/i2c-nvidia-gpu.c

[PATCH 2/4] usb: typec: ucsi: ccg: enable runtime pm support

2019-05-17 Thread Ajay Gupta
From: Ajay Gupta The change enables runtime pm support to UCSI CCG driver. ucsi_send_command() is used in resume path and so exported ucsi_send_command() symbol in ucsi.c for modular build. Signed-off-by: Ajay Gupta --- drivers/usb/typec/ucsi/ucsi.c | 1 + drivers/usb/typec/ucsi

RE: [PATCH -next] usb: typec: ucsi: ccg: fix missing unlock on error in ccg_cmd_write_flash_row()

2019-04-29 Thread Ajay Gupta
Hi Wei > -Original Message- > From: Wei Yongjun > Sent: Monday, April 29, 2019 5:27 AM > To: Heikki Krogerus ; Greg Kroah-Hartman > ; Ajay Gupta ; Wolfram Sang > > Cc: Wei Yongjun ; linux-usb@vger.kernel.org; > kernel-janit...@vger.kernel.org > Subject: [PA

[PATCH v8 0/3] Add support for firmware update on Cypres CCGx

2019-04-16 Thread Ajay Gupta
://marc.info/?l=linux-usb&m=15554931927&w=2 [2] https://marc.info/?l=linux-usb&m=155006182508289&w=2 Ajay Gupta (2): usb: typec: ucsi: ccg: add get_fw_info function usb: typec: ucsi: ccg: add firmware flashing support Heikki Krogerus (1): i2c: nvidia-gpu: Supply CCGx driver t

[PATCH v8 1/3] usb: typec: ucsi: ccg: add get_fw_info function

2019-04-16 Thread Ajay Gupta
From: Ajay Gupta Function is to get the details of ccg firmware and device version. It will be useful in debugging and also during firmware update. Signed-off-by: Ajay Gupta Signed-off-by: Heikki Krogerus --- Changes from v7 -> v8 - None drivers/usb/typec/ucsi/ucsi_ccg.c |

[PATCH v8 2/3] i2c: nvidia-gpu: Supply CCGx driver the fw build info

2019-04-16 Thread Ajay Gupta
From: Ajay Gupta Adding device property "ccgx,firmware-build" for the CCGx device, so the CCGx driver knows which firmware binary to use for a specific vendor. Suggested-by: Heikki Krogerus Signed-off-by: Ajay Gupta Signed-off-by: Heikki Krogerus --- Changes from v7->v8

[PATCH v8 3/3] usb: typec: ucsi: ccg: add firmware flashing support

2019-04-16 Thread Ajay Gupta
From: Ajay Gupta CCGx has two copies of the firmware in addition to the bootloader. If the device is running FW1, FW2 can be updated with the new version. Dual firmware mode allows the CCG device to stay in a PD contract and support USB PD and Type-C functionality while a firmware update is in

RE: [PATCH v2 6/7] usb: typec: displayport: Export probe and remove functions

2019-04-15 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Heikki Krogerus > Sent: Monday, April 15, 2019 5:10 AM > To: Greg Kroah-Hartman > Cc: Ajay Gupta ; linux-usb@vger.kernel.org > Subject: [PATCH v2 6/7] usb: typec: displayport: Ex

[PATCH v7 2/3] i2c: nvidia-gpu: Supply CCGx driver the fw build info

2019-04-12 Thread Ajay Gupta
From: Heikki Krogerus Adding device property "ccgx,firmware-build" for the CCGx device, so the CCGx driver knows which firmware binary to use for a specific vendor. Signed-off-by: Heikki Krogerus Signed-off-by: Ajay Gupta --- drivers/i2c/busses/i2c-nvidia-gpu.c | 7 +++ 1 file

[PATCH v7 3/3] usb: typec: ucsi: ccg: add firmware flashing support

2019-04-12 Thread Ajay Gupta
port number information is added which is required while sending PD_PORT_ENABLE command Signed-off-by: Ajay Gupta --- Changes from v6 -> v7 - Read fw_build from device property - remove unused level ccg_check_fw_version() drivers/usb/typec/ucsi/ucsi_ccg.c |

[PATCH v7 0/3] Add support for firmware update on Cypres CCGx

2019-04-12 Thread Ajay Gupta
tails are at [2]. Please help review this set. Thanks Ajay [1] https://marc.info/?l=linux-usb&m=155508466310059&w=2 [2] https://marc.info/?l=linux-usb&m=155006182508289&w=2 Ajay Gupta (2): usb: typec: ucsi: ccg: add get_fw_info function usb: typec: ucsi: ccg: add firmware flashi

[PATCH v7 1/3] usb: typec: ucsi: ccg: add get_fw_info function

2019-04-12 Thread Ajay Gupta
Function is to get the details of ccg firmware and device version. It will be useful in debugging and also during firmware update. Signed-off-by: Ajay Gupta Signed-off-by: Heikki Krogerus --- Changes from v6 to v7 - None drivers/usb/typec/ucsi/ucsi_ccg.c | 66

RE: [PATCH v6 2/2] usb: typec: ucsi: ccg: add firmware flashing support

2019-04-12 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Heikki Krogerus > Sent: Friday, April 12, 2019 8:02 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org; Ajay Gupta > Subject: Re: [PATCH v6 2/2] usb: typec: ucsi: ccg:

RE: [PATCH 2/4] usb: typec: ucsi: ccg: add firmware flashing support

2019-04-11 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Thursday, April 11, 2019 12:40 AM > To: Ajay Gupta > Cc: kbuild test robot ; kbuild-...@01.org; Greg Kroah-Hartman > ; linux-usb@vger.kernel.org > Subject: Re: [PATCH 2/4] usb: typec: ucsi: ccg:

[PATCH v6 2/2] usb: typec: ucsi: ccg: add firmware flashing support

2019-04-11 Thread Ajay Gupta
port number information is added which is required while sending PD_PORT_ENABLE command Signed-off-by: Ajay Gupta --- Changes from v5 to v6 - Fixed below sparse warnings "restricted __le16 degrades to integer" drivers/usb/typec/ucsi/ucsi_c

[PATCH v6 1/2] usb: typec: ucsi: ccg: add get_fw_info function

2019-04-11 Thread Ajay Gupta
Function is to get the details of ccg firmware and device version. It will be useful in debugging and also during firmware update. Signed-off-by: Ajay Gupta Signed-off-by: Heikki Krogerus --- Changes from v5 to v6 - None drivers/usb/typec/ucsi/ucsi_ccg.c | 66

[PATCH v6 0/2] Add support for firmware update on Cypres CCGx

2019-04-11 Thread Ajay Gupta
://marc.info/?l=linux-usb&m=155491396220133&w=2 [2] https://marc.info/?l=linux-usb&m=155006182508289&w=2 Ajay Gupta (2): usb: typec: ucsi: ccg: add get_fw_info function usb: typec: ucsi: ccg: add firmware flashing support drivers/usb/typec/ucsi/ucsi_ccg.c | 887 +

[PATCH 0/2] Add VirtualLink display altmode support

2019-04-10 Thread Ajay Gupta
l and patches at [1] forwarded to Greg from you. [1] https://marc.info/?l=linux-usb&m=155488414908414&w=2 Thanks Ajay Ajay Gupta (1): usb: typec: Add driver for NVIDIA Alt Modes Heikki Krogerus (1): usb: typec: displayport: Export probe and remove functions drivers/usb/typec/alt

[PATCH 1/2] usb: typec: displayport: Export probe and remove functions

2019-04-10 Thread Ajay Gupta
d two warnings from checkpatch.pl script -Ajay] Signed-off-by: Heikki Krogerus Signed-off-by: Ajay Gupta Tested-by: Ajay Gupta --- drivers/usb/typec/altmodes/displayport.c | 12 +++- drivers/usb/typec/altmodes/displayport.h | 8 2 files changed, 15 insertions(+), 5 deletions(-) c

[PATCH 2/2] usb: typec: Add driver for NVIDIA Alt Modes

2019-04-10 Thread Ajay Gupta
From: Ajay Gupta Latest NVIDIA GPUs support VirtualLink device. Since USBIF has not assigned a Standard ID (SID) for VirtualLink so using NVIDA VID 0x955 as SVID. Signed-off-by: Ajay Gupta --- drivers/usb/typec/altmodes/Kconfig | 10 +++ drivers/usb/typec/altmodes/Makefile | 2

RE: [PATCH v2 0/2] usb: typec: ucsi: Support for DP alt mode

2019-03-25 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Heikki Krogerus > Sent: Wednesday, March 20, 2019 4:45 AM > To: Ajay Gupta ; Michael Hsu > Cc: linux-usb@vger.kernel.org > Subject: [PATCH v2 0/2] usb: typec: ucsi: Support fo

RE: [GIT,PULL] add Cypress CCGx type-C controller firmware

2019-02-12 Thread Ajay Gupta
Hi Josh > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Josh Boyer > Sent: Tuesday, February 12, 2019 4:51 AM > To: Ajay Gupta > Cc: linux-firmw...@kernel.org; Heikki Krogerus > ; linux-usb@vger.kernel.org > Subject: Re: [GIT,PULL]

RE: [PATCH] nvidia: add TU10x typec controller firmware

2019-02-12 Thread Ajay Gupta
Hi Josh, > On Wed, Feb 6, 2019 at 3:14 PM Ajay Gupta wrote: > > > > From: Ajay Gupta > > > > These NVIDIA-signed firmwares are required to enable the Cypress > > Type-C controller on TU10x GPUs. > > > > FW versions: > > Secondary: 4

[PATCH v5 1/2] usb: typec: ucsi: add get_fw_info function

2019-02-07 Thread Ajay Gupta
From: Ajay Gupta Function is to get the details of ccg firmware and device version. It will be useful in debugging and also during firmware update. Signed-off-by: Ajay Gupta --- Changes from v4 to v5 - None drivers/usb/typec/ucsi/ucsi_ccg.c | 66 ++- 1

[PATCH v5 2/2] usb: typec: ucsi: add firmware flashing support

2019-02-07 Thread Ajay Gupta
From: Ajay Gupta CCGx has two copies of the firmware in addition to the bootloader. If the device is running FW1, FW2 can be updated with the new version. Dual firmware mode allows the CCG device to stay in a PD contract and support USB PD and Type-C functionality while a firmware update is in

[PATCH v5 0/2] Add support for firmware update on Cypres CCGx

2019-02-07 Thread Ajay Gupta
://marc.info/?l=linux-usb&m=154948878626598&w=2 Ajay Gupta (2): usb: typec: ucsi: add get_fw_info function usb: typec: ucsi: add firmware flashing support drivers/usb/typec/ucsi/ucsi_ccg.c | 884 +- 1 file changed, 874 insertions(+), 10 deletions(-) -- 2.17.1

RE: [PATCH v4 2/2] usb: typec: ucsi: add firmware flashing support

2019-02-07 Thread Ajay Gupta
specific mutex lock is also added to sync between driver and > > user threads. > > > > PD port number information is added which is required while sending > > PD_PORT_ENABLE command > > > > Signed-off-by: Ajay Gupta > > [..] > > > +struct ccg_cmd { > >

[PATCH v4 1/2] usb: typec: ucsi: add get_fw_info function

2019-02-06 Thread Ajay Gupta
From: Ajay Gupta Function is to get the details of ccg firmware and device version. It will be useful in debugging and also during firmware update. Signed-off-by: Ajay Gupta --- Changes from v3 to v4 - None drivers/usb/typec/ucsi/ucsi_ccg.c | 66 ++- 1

[PATCH v4 2/2] usb: typec: ucsi: add firmware flashing support

2019-02-06 Thread Ajay Gupta
From: Ajay Gupta CCGx has two copies of the firmware in addition to the bootloader. If the device is running FW1, FW2 can be updated with the new version. Dual firmware mode allows the CCG device to stay in a PD contract and support USB PD and Type-C functionality while a firmware update is in

[PATCH v4 0/2] Add support for firmware update on Cypres CCGx

2019-02-06 Thread Ajay Gupta
-request is posted to linux-firmware.git at [1]. Please help review this set. Thanks Ajay [1] https://marc.info/?l=linux-usb&m=154948878626598&w=2 Ajay Gupta (2): usb: typec: ucsi: add get_fw_info function usb: typec: ucsi: add firmware flashing support drivers/usb/typec/ucsi/ucsi_ccg

[GIT,PULL] add Cypress CCGx type-C controller firmware

2019-02-06 Thread Ajay Gupta
itory at: https://github.com/ajaykuee/linux-firmware.git for you to fetch changes up to 2c139fe800f56c73c3e60932eb8cdbf1a7c2e1de: nvidia: add TU10x typec controller firmware (2019-02-06 12:07:22 -0800) -------- Ajay Gupta (1): nvidi

RE: [PATCH v3 0/6] Add support for firmware update on Cypres CCGx

2019-02-06 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Wednesday, February 6, 2019 4:12 AM > To: Ajay Gupta > Cc: linux-usb@vger.kernel.org; Ajay Gupta > Subject: Re: [PATCH v3 0/6] Add support for firmware update on Cypres CCGx > > Hi Ajay, > >

RE: [PATCH 5/5] usb: typec: ucsi: Support for DisplayPort alt mode

2019-02-05 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Heikki Krogerus > Sent: Friday, February 1, 2019 2:48 AM > To: Greg Kroah-Hartman ; Ajay Gupta > ; Michael Hsu > Cc: linux-usb@vger.kernel.org > Subject: [PATCH 5/5] usb:

RE: [PATCH 5/5] usb: typec: ucsi: Support for DisplayPort alt mode

2019-02-04 Thread Ajay Gupta
Hi Heikki, > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Heikki Krogerus > Sent: Friday, February 1, 2019 2:48 AM > To: Greg Kroah-Hartman ; Ajay Gupta > ; Michael Hsu > Cc: linux-usb@vger.kernel.org > Subject: [PATCH 5/5] usb:

RE: [PATCH 4/5] usb: typec: ucsi: Preliminary support for alternate modes

2019-02-04 Thread Ajay Gupta
Hi Heikki > -Original Message- > From: linux-usb-ow...@vger.kernel.org On > Behalf Of Heikki Krogerus > Sent: Friday, February 1, 2019 2:48 AM > To: Greg Kroah-Hartman ; Ajay Gupta > ; Michael Hsu > Cc: linux-usb@vger.kernel.org > Subject: [PATCH 4/5] usb:

[PATCH v3 5/6] usb: typec: ucsi: add fw update needed check

2019-02-01 Thread Ajay Gupta
From: Ajay Gupta Here we read the currently flashed firmware version of both primary and secondary firmware and then compare it with version of firmware file to determine if flashing is required. Signed-off-by: Ajay Gupta --- Changes from v2 to v3 - Moved enum_fw_mode enum to patch [1

[PATCH v3 4/6] usb: typec: ucsi: add cmd used for fw flashing

2019-02-01 Thread Ajay Gupta
From: Ajay Gupta Adding support for below commands which will be used during firmware flashing. - ENTER_FLASHING - RESET - PDPORT_ENABLE - JUMP_TO_BOOT - FLASH_ROW_RW - VALIDATE_FW I command specific mutex lock is also added to sync between driver

[PATCH v3 6/6] usb: typec: ucsi: add firmware flashing support

2019-02-01 Thread Ajay Gupta
From: Ajay Gupta CCGx has two copies of the firmware in addition to the bootloader. If the device is running FW1, FW2 can be updated with the new version. Dual firmware mode allows the CCG device to stay in a PD contract and support USB PD and Type-C functionality while a firmware update is in

[PATCH v3 0/6] Add support for firmware update on Cypres CCGx

2019-02-01 Thread Ajay Gupta
Ajay Gupta (6): usb: typec: ucsi: add get_fw_info function usb: typec: ucsi: add ccg command framework usb: typec: ucsi: add port num info usb: typec: ucsi: add cmd used for fw flashing usb: typec: ucsi: add fw update needed check usb: typec: ucsi: add firmware flashing support drivers

[PATCH v3 2/6] usb: typec: ucsi: add ccg command framework

2019-02-01 Thread Ajay Gupta
From: Ajay Gupta Used to send various commands to ccg controller. They are mainly used during firmware update process. We wait for response after sending the command and then read the response from RAB_RESPONSE register. Signed-off-by: Ajay Gupta --- Changes from v2 to v3 - Removed

[PATCH v3 3/6] usb: typec: ucsi: add port num info

2019-02-01 Thread Ajay Gupta
From: Ajay Gupta Read PD port number information and save. It will be required while sending PD_PORT_ENABLE command. Signed-off-by: Ajay Gupta --- Changes from v2 to v3 - Fixed comments from Heikki on removing SHIFT drivers/usb/typec/ucsi/ucsi_ccg.c | 6 ++ 1 file changed, 6

[PATCH v3 1/6] usb: typec: ucsi: add get_fw_info function

2019-02-01 Thread Ajay Gupta
From: Ajay Gupta Function is to get the details of ccg firmware and device version. It will be useful in debugging and also during firmware update. Signed-off-by: Ajay Gupta --- Changes from v2 to v3 - Fixed comments from Greg on using __le16 and __packed - Added enum_fw_mode

  1   2   3   >