From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Badhri Jagan Sridharan <badhri@google.com>
Cc: Guenter Roeck <linux@roeck-us.net>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] staging: typec: tcpm: Validate source and sink caps
Date: Fri, 8 Sep 2017 11:45:59 +0200 [thread overview]
Message-ID: <20170908094559.GC2914@kroah.com> (raw)
In-Reply-To: <20170908012214.19047-1-Badhri@google.com>
On Thu, Sep 07, 2017 at 06:22:13PM -0700, Badhri Jagan Sridharan wrote:
> The source and sink caps should follow the following rules.
> This patch validates whether the src_caps/snk_caps adheres
> to it.
>
> 6.4.1 Capabilities Message
> A Capabilities message (Source Capabilities message or Sink
> Capabilities message) shall have at least one Power
> Data Object for vSafe5V. The Capabilities message shall also
> contain the sending Port’s information followed by up to
> 6 additional Power Data Objects. Power Data Objects in a
> Capabilities message shall be sent in the following order:
>
> 1. The vSafe5V Fixed Supply Object shall always be the first object.
> 2. The remaining Fixed Supply Objects, if present, shall be sent
> in voltage order; lowest to highest.
> 3. The Battery Supply Objects, if present shall be sent in Minimum
> Voltage order; lowest to highest.
> 4. The Variable Supply (non-battery) Objects, if present, shall be
> sent in Minimum Voltage order; lowest to highest.
>
> Errors in source/sink_caps of the local port will prevent
> the port registration. Whereas, errors in source caps of partner
> device would only log them.
>
> Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
> ---
> drivers/staging/typec/pd.h | 2 +
> drivers/staging/typec/tcpm.c | 107 +++++++++++++++++++++++++++++++++++++++----
> drivers/staging/typec/tcpm.h | 16 +++----
> 3 files changed, 108 insertions(+), 17 deletions(-)
Before you add more stuff to this driver, what is needed to get it out
of staging? That would be more useful to do now, right?
thanks,
greg k-h
next prev parent reply other threads:[~2017-09-08 9:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-08 1:22 [PATCH 1/2] staging: typec: tcpm: Validate source and sink caps Badhri Jagan Sridharan
2017-09-08 1:22 ` [PATCH 2/2] staging: typec: tcpm: Only request matching pdos Badhri Jagan Sridharan
2017-09-08 9:36 ` Dan Carpenter
2017-09-08 17:43 ` Badhri Jagan Sridharan
2017-09-09 8:48 ` Dan Carpenter
2017-09-09 14:01 ` Guenter Roeck
2017-09-08 9:34 ` [PATCH 1/2] staging: typec: tcpm: Validate source and sink caps Dan Carpenter
2017-09-08 17:27 ` Badhri Jagan Sridharan
2017-09-08 19:38 ` Dan Carpenter
2017-09-08 9:45 ` Greg Kroah-Hartman [this message]
2017-09-08 17:29 ` Badhri Jagan Sridharan
2017-09-08 19:13 ` Greg Kroah-Hartman
2017-09-09 14:03 ` Guenter Roeck
2017-09-09 16:54 ` Guenter Roeck
2017-09-09 16:58 ` Guenter Roeck
2017-09-10 13:55 ` Greg Kroah-Hartman
2017-09-18 10:20 ` Greg Kroah-Hartman
2017-10-09 22:16 ` Badhri Jagan Sridharan
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=20170908094559.GC2914@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=badhri@google.com \
--cc=devel@driverdev.osuosl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/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