From: Benson Leung <bleung@google.com>
To: gregkh@linuxfoundation.org
Cc: heikki.krogerus@linux.intel.com, enric.balletbo@collabora.com,
pmalani@chromium.org, gregkh@linuxfoundation.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
kyletso@google.com, bleung@chromium.org
Subject: Re: [PATCH] platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision
Date: Tue, 2 Feb 2021 08:37:27 -0800 [thread overview]
Message-ID: <YBl/xzvxwDuhasw7@google.com> (raw)
In-Reply-To: <20210202163248.3981555-1-bleung@chromium.org>
[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]
Hi Greg,
On Tue, Feb 02, 2021 at 08:32:48AM -0800, Benson Leung wrote:
> typec_partner_set_pd_revision returns void now.
>
> Fixes: cefc011f8daf platform/chrome: cros_ec_typec: Set Partner PD revision from status
> Signed-off-by: Benson Leung <bleung@chromium.org>
This one needs to be taken too after Kyle's fix earlier this morning.
Thanks,
Benson
> ---
> drivers/platform/chrome/cros_ec_typec.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c
> index a7778258d0a0..7b93dfd02999 100644
> --- a/drivers/platform/chrome/cros_ec_typec.c
> +++ b/drivers/platform/chrome/cros_ec_typec.c
> @@ -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),
> --
> 2.30.0.365.g02bc693789-goog
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
bleung@google.com
Chromium OS Project
bleung@chromium.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2021-02-02 16:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 16:32 [PATCH] platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision Benson Leung
2021-02-02 16:37 ` Benson Leung [this message]
2021-02-02 16:37 ` Greg KH
2021-02-02 16:46 ` Benson Leung
Reply instructions:
You may reply publicly 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YBl/xzvxwDuhasw7@google.com \
--to=bleung@google.com \
--cc=bleung@chromium.org \
--cc=enric.balletbo@collabora.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=kyletso@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pmalani@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox