usb: typec: ucsi: ccg: add runtime pm support
Status from this message: Applied the series to i2c/for-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest5 patches 1 replyApplied
- v45 patches 8 repliesSuperseded
- v35 patches 5 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 5 patches | 4 replies | Superseded | |
| v1 | 4 patches | 5 replies | Superseded |
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | i2c: nvidia-gpu: refactor master_xferdrivers/ | +16 | 0 replies | |
| 2/5 | i2c: nvidia-gpu: add runtime pm supportdrivers/ | +21 | 0 replies | |
| 3/5 | usb: typec: ucsi: ccg: enable runtime pm supportdrivers/ drivers/ drivers/ | +49 | 0 replies | |
| 4/5 | i2c: nvidia-gpu: resume ccgx i2c clientdrivers/ | +10 | 0 replies | |
| 5/5 | usb: typec: ucsi: ccg: add runtime pm workarounddrivers/ | +76 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Heikki Krogerus |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | A-b |
| 4/5 | |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/5] usb: typec: ucsi: ccg: add runtime pm support
Hi Heikki and Wolfram
The latest set (v5) fix comments from Wolfram on further refactoring master_xfer() function in i2c-nvidia-gpuc.c file and removing extra comments in patch 2/5.
Patches can go through either usb or i2c tree but since there are 3 out of 5 patches from i2c so may be better they go through i2c. They all should go together.
Thanks
Ajay
---- v4
These patches add support for runtime power management for UCSI CCGx driver. I have tested them with NVIDIA GPU card which has i2c interface to talk to CCG controller. I have added runtime pm support for the i2c bus driver as well.
Fourth version (v4) of patches fix comments from Wolfram on further refactoring master_xfer() function in i2c-nvidia-gpuc.c file. Also I have added comment on why we need a stub gpu_i2c_suspend() for runtime pm to work correctly.
First patch refactors master_xfer() of i2c driver fixing comment from Wolfram. Second and third patch add support for runtime pm in i2c bus driver and UCSI CCGx driver.
Last two patches add workaround for an old version of ccg firmware which has known issue of missing interrupt when a device is connected to runtime resume the ccg controller. The workaround is needed because if a GPU card doesn't get new firmware but gets new kernel then also it should continue to work. The workaround is to request runtime resume of i2c client which is UCSI Cypress CCGx driver. CCG driver will call the ISR for any connector change event only if NVIDIA GPU has old CCG firmware 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 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-gpu.c | 64 +++++++++++---- drivers/usb/typec/ucsi/ucsi.c | 10 +++ drivers/usb/typec/ucsi/ucsi.h | 1 + drivers/usb/typec/ucsi/ucsi_ccg.c | 118 +++++++++++++++++++++++++++- 4 files changed, 172 insertions(+), 21 deletions(-)
Signature · 1 line
2.17.1