Linux-USB Archive on
 help / color / Atom feed
From: Ajay Gupta <>
Cc:, Ajay Gupta <>
Subject: [PATCH 2/2] usb: ucsi: ccg: disable runtime pm during fw flashing
Date: Wed, 15 Jan 2020 17:32:47 -0800
Message-ID: <> (raw)
In-Reply-To: <>

From: Ajay Gupta <>

Ucsi ppm is unregistered during fw flashing so disable
runtime pm also and reenable after fw flashing is completed
and ppm is re-registered.

Signed-off-by: Ajay Gupta <>
 drivers/usb/typec/ucsi/ucsi_ccg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c
index a5b8530490db..2658cda5da11 100644
--- a/drivers/usb/typec/ucsi/ucsi_ccg.c
+++ b/drivers/usb/typec/ucsi/ucsi_ccg.c
@@ -1219,6 +1219,7 @@ static int ccg_restart(struct ucsi_ccg *uc)
 		return status;
+	pm_runtime_enable(uc->dev);
 	return 0;
@@ -1234,6 +1235,7 @@ static void ccg_update_firmware(struct work_struct *work)
 	if (flash_mode != FLASH_NOT_NEEDED) {
+		pm_runtime_disable(uc->dev);
 		free_irq(uc->irq, uc);
 		ccg_fw_update(uc, flash_mode);

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16  1:32 [PATCH 1/2] usb: typec: ucsi: register DP only for NVIDIA DP VDO Ajay Gupta
2020-01-16  1:32 ` Ajay Gupta [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-USB Archive on

Archives are clonable:
	git clone --mirror linux-usb/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-usb linux-usb/ \
	public-inbox-index linux-usb

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone