mbox series

[RFC,v1,0/3] PCI: EPC: Add support to wake up host from D3 states

Message ID 1686754850-29817-1-git-send-email-quic_krichai@quicinc.com (mailing list archive)
Headers show
Series PCI: EPC: Add support to wake up host from D3 states | expand

Message

Krishna chaitanya chundru June 14, 2023, 3 p.m. UTC
Here we propose this patch series to add support in PCI endpoint
driver to wake up host from D3 states.

As endpoint cannot send any data/MSI when the device state is in
D3cold or D3hot. Endpoint needs to bring the device back to D0
to send any kind of data.

For this endpoint needs to send inband PME the device is in D3hot or
toggle wake when the device is D3 cold.

Comments and suggestions are welcome.

Krishna chaitanya chundru (3):
  PCI: endpoint: Add wakeup host API to EPC core
  pci: dwc: Add wakeup host op to pci_epc_ops
  PCI: qcom: ep: Add wake up host op to dw_pcie_ep_ops

 drivers/pci/controller/dwc/pcie-designware-ep.c | 11 ++++++++
 drivers/pci/controller/dwc/pcie-designware.h    |  2 ++
 drivers/pci/controller/dwc/pcie-qcom-ep.c       | 34 +++++++++++++++++++++++++
 drivers/pci/endpoint/pci-epc-core.c             | 29 +++++++++++++++++++++
 include/linux/pci-epc.h                         |  3 +++
 5 files changed, 79 insertions(+)

Comments

Manivannan Sadhasivam June 23, 2023, 6:19 a.m. UTC | #1
On Wed, Jun 14, 2023 at 08:30:46PM +0530, Krishna chaitanya chundru wrote:
> Here we propose this patch series to add support in PCI endpoint
> driver to wake up host from D3 states.
> 
> As endpoint cannot send any data/MSI when the device state is in
> D3cold or D3hot. Endpoint needs to bring the device back to D0
> to send any kind of data.
> 
> For this endpoint needs to send inband PME the device is in D3hot or
> toggle wake when the device is D3 cold.
> 
> Comments and suggestions are welcome.
> 

As Kishon noted, you should also submit the EPF change to justify the API
addition.

- Mani

> Krishna chaitanya chundru (3):
>   PCI: endpoint: Add wakeup host API to EPC core
>   pci: dwc: Add wakeup host op to pci_epc_ops
>   PCI: qcom: ep: Add wake up host op to dw_pcie_ep_ops
> 
>  drivers/pci/controller/dwc/pcie-designware-ep.c | 11 ++++++++
>  drivers/pci/controller/dwc/pcie-designware.h    |  2 ++
>  drivers/pci/controller/dwc/pcie-qcom-ep.c       | 34 +++++++++++++++++++++++++
>  drivers/pci/endpoint/pci-epc-core.c             | 29 +++++++++++++++++++++
>  include/linux/pci-epc.h                         |  3 +++
>  5 files changed, 79 insertions(+)
> 
> -- 
> 2.7.4
>