From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Ajay Gupta <ajaykuee@gmail.com>
Cc: linux-usb@vger.kernel.org, Ajay Gupta <ajayg@nvidia.com>
Subject: Re: [PATCH v5] usb: typec: ucsi: add support for separate DP altmode devices
Date: Fri, 13 Sep 2019 18:20:09 +0300 [thread overview]
Message-ID: <20190913152009.GA26700@kuha.fi.intel.com> (raw)
In-Reply-To: <20190906165516.24006-1-ajayg@nvidia.com>
Hi Ajay,
On Fri, Sep 06, 2019 at 09:55:16AM -0700, Ajay Gupta wrote:
> From: Ajay Gupta <ajayg@nvidia.com>
>
> CCGx controller used on NVIDIA GPU card has two separate display
> altmode for two DP pin assignments. UCSI specification doesn't
> prohibits using separate display altmode.
>
> Current UCSI Type-C framework expects only one display altmode for
> all DP pin assignment. This patch squashes two separate display
> altmode into single altmode to support controllers with separate
> display altmode. We first read all the alternate modes of connector
> and then run through it to know if there are separate display
> altmodes. If so, it prepares a new port altmode set after squashing
> two or more separate altmodes into one.
I'm going to go over this one more time during the merge window. I
have an idea how to improve this. Please bear with me. I have to make
sure all options were considered.
I'm really sorry to block this for so long, but I'm just really really
afraid of mixing special case solutions like this into otherwise
generic code. They always make it difficult to modify the code later,
and unfortunately we have them all over the kernel. Look at the serial
driver 8250_core/port/*.cas an example. Ideally we should be able to
"modularize" the whole alternate mode handling in the ucsi driver
since there are now two different ways the PPMs can handle them
instead of simply mixing the support for the new method straight into
the existing structures.
thanks,
--
heikki
next prev parent reply other threads:[~2019-09-13 15:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 16:55 [PATCH v5] usb: typec: ucsi: add support for separate DP altmode devices Ajay Gupta
2019-09-13 15:20 ` Heikki Krogerus [this message]
2019-09-17 21:41 ` Ajay Gupta
2019-09-19 12:23 ` Heikki Krogerus
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=20190913152009.GA26700@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=ajayg@nvidia.com \
--cc=ajaykuee@gmail.com \
--cc=linux-usb@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.