Skip to contentSkip to conversation

platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision

PATCH In review Benson Leung 3 participants 5 messages Feb 2, 2021

Subsystems (4)
lore
Share & tools
lore

Benson Leung

author maintainer
#0 lore raw

PATCH v2 1/1 platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision

typec_partner_set_pd_revision returns void now.

Fixes cefc011f8daf ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
---
 drivers/platform/chrome/cros_ec_typec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/platform/chrome/cros_ec_typec.c +1 -5
index a7778258d0a0..7b93dfd02999 100644
@@ -842,11 +842,7 @@ static int cros_typec_handle_sop_disc(struct cros_typec_data *typec, int port_nu
 		goto disc_exit;
 	}
 
-	ret = typec_partner_set_pd_revision(port->partner, pd_revision);
-	if (ret < 0) {
-		dev_err(typec->dev, "Failed to update partner PD revision, port: %d\n", port_num);
-		goto disc_exit;
-	}
+	typec_partner_set_pd_revision(port->partner, pd_revision);
 
 	memset(sop_disc, 0, EC_PROTO2_MAX_RESPONSE_SIZE);
 	ret = cros_typec_ec_command(typec, 0, EC_CMD_TYPEC_DISCOVERY, &req, sizeof(req),
Signature · 1 line
2.30.0.365.g02bc693789-goog
maintainer
#1 lore raw
Quoted 7 lines · Benson Leung

typec_partner_set_pd_revision returns void now.

Fixes cefc011f8daf ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
---
 drivers/platform/chrome/cros_ec_typec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

What changed from "v1"?

author maintainer
#2 lore raw

Hi Greg,

Quoted 4 lines · Greg KH
Quoted 2 lines · Benson Leung

typec_partner_set_pd_revision returns void now.

Quoted 8 lines
Quoted 5 lines
Fixes cefc011f8daf ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
---
 drivers/platform/chrome/cros_ec_typec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

What changed from "v1"?

Just the "Fixes" line in the commit message.

Signature · 7 lines
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
[email protected]
Chromium OS Project
[email protected]
maintainer
#3 lore raw
Quoted 13 lines · Benson Leung

Hi Greg,

Quoted 10 lines · Greg KH
Quoted 7 lines · Benson Leung

typec_partner_set_pd_revision returns void now.

Fixes cefc011f8daf ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
---
 drivers/platform/chrome/cros_ec_typec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
Quoted 4 lines
Quoted 2 lines

What changed from "v1"?

Just the "Fixes" line in the commit message.

That should always go below the --- line, remember, some of us deal with hundreds of patches a day :)

I'll go take this...

thanks,

greg k-h

#4 lore raw
Quoted 17 lines · Greg KH
Quoted 16 lines · Benson Leung

Hi Greg,

Quoted 12 lines · Greg KH
Quoted 7 lines · Benson Leung

typec_partner_set_pd_revision returns void now.

Fixes cefc011f8daf ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
---
 drivers/platform/chrome/cros_ec_typec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

What changed from "v1"?

Quoted 6 lines
Quoted 1 line

Just the "Fixes" line in the commit message.

That should always go below the --- line, remember, some of us deal with hundreds of patches a day :)

I'll go take this...

Thanks so much, Greg!

Benson

Quoted 4 lines

thanks,

greg k-h

Signature · 7 lines
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
[email protected]
Chromium OS Project
[email protected]