From: Sergey Shtylyov <s.shtylyov@omp.ru>
To: Utkarsh Patel <utkarsh.h.patel@intel.com>,
<linux-kernel@vger.kernel.org>, <linux-usb@vger.kernel.org>
Cc: <heikki.krogerus@linux.intel.com>,
<andriy.shevchenko@linux.intel.com>, <pmalani@chromium.org>,
<bleung@chromium.org>
Subject: Re: [PATCH 4/4] usb: typec: intel_pmc_mux: Configure Displayport Alternate mode 2.1
Date: Sat, 12 Aug 2023 12:47:43 +0300 [thread overview]
Message-ID: <e9d83459-623e-34e1-ce9d-eb0b83ea170f@omp.ru> (raw)
In-Reply-To: <20230811210735.159529-5-utkarsh.h.patel@intel.com>
Hello!
On 8/12/23 12:07 AM, Utkarsh Patel wrote:
> Mux agent driver can configure cable details such as cable type and
> cable speed received as a part of displayport configuration to support
> Displayport Alternate mode 2.1.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Hm, I think the R-b tags should follow your signoff...
> Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
> ---
> drivers/usb/typec/mux/intel_pmc_mux.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/drivers/usb/typec/mux/intel_pmc_mux.c b/drivers/usb/typec/mux/intel_pmc_mux.c
> index 888632847a74..218f6e25518d 100644
> --- a/drivers/usb/typec/mux/intel_pmc_mux.c
> +++ b/drivers/usb/typec/mux/intel_pmc_mux.c
[...]
> @@ -282,6 +288,24 @@ pmc_usb_mux_dp(struct pmc_usb_port *port, struct typec_mux_state *state)
> req.mode_data |= (state->mode - TYPEC_STATE_MODAL) <<
> PMC_USB_ALTMODE_DP_MODE_SHIFT;
>
> + if (!is_pmc_mux_tbt(port->pmc->iom_adev)) {
> + u8 cable_speed = (data->conf & DP_CONF_SIGNALLING_MASK) >>
> + DP_CONF_SIGNALLING_SHIFT;
> +
> + u8 cable_type = (data->conf & DP_CONF_CABLE_TYPE_MASK) >>
> + DP_CONF_CABLE_TYPE_SHIFT;
> +
> + req.mode_data |= PMC_USB_ALTMODE_CABLE_SPD(cable_speed);
> +
> + if (cable_type == DP_CONF_CABLE_TYPE_OPTICAL)
> + req.mode_data |= PMC_USB_ALTMODE_CABLE_TYPE;
> + else if (cable_type == DP_CONF_CABLE_TYPE_RE_TIMER)
> + req.mode_data |= PMC_USB_ALTMODE_ACTIVE_CABLE |
> + PMC_USB_ALTMODE_RETIMER_CABLE;
> + else if (cable_type == DP_CONF_CABLE_TYPE_RE_DRIVER)
> + req.mode_data |= PMC_USB_ALTMODE_ACTIVE_CABLE;
The chain of the *if* statements above is asking to use *switch* instead...
[...]
MBR, Sergey
next prev parent reply other threads:[~2023-08-12 9:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 21:07 [PATCH 0/4] Displayport Alternate Mode 2.1 Support Utkarsh Patel
2023-08-11 21:07 ` [PATCH 1/4] usb: typec: Add " Utkarsh Patel
2023-08-11 21:07 ` [PATCH 2/4] platform/chrome: cros_ec: Add Displayport Alternatemode 2.1 feature flag Utkarsh Patel
2023-08-11 21:07 ` [PATCH 3/4] platform/chrome: cros_ec_typec: Add Displayport Alternatemode 2.1 Support Utkarsh Patel
2023-08-18 17:16 ` Prashant Malani
2023-08-21 17:34 ` Patel, Utkarsh H
2023-08-21 23:40 ` Prashant Malani
2023-08-25 0:02 ` Patel, Utkarsh H
2023-08-11 21:07 ` [PATCH 4/4] usb: typec: intel_pmc_mux: Configure Displayport Alternate mode 2.1 Utkarsh Patel
2023-08-12 9:47 ` Sergey Shtylyov [this message]
2023-08-14 14:48 ` Andy Shevchenko
2023-08-14 15:06 ` Andy Shevchenko
2023-08-22 12:09 ` [PATCH 0/4] Displayport Alternate Mode 2.1 Support Greg KH
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=e9d83459-623e-34e1-ce9d-eb0b83ea170f@omp.ru \
--to=s.shtylyov@omp.ru \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bleung@chromium.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pmalani@chromium.org \
--cc=utkarsh.h.patel@intel.com \
/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