Re: [PATCH v10 1/9] device property: Add remote endpoint to devcon matcher

2023-01-20 Thread Prashant Malani
On Mon, Jan 16, 2023 at 5:07 AM Sakari Ailus wrote: > > Hi Prashant, > > On Thu, Jan 12, 2023 at 02:31:45PM -0800, Prashant Malani wrote: > > HI Sakari, > > > > On Thu, Jan 12, 2023 at 5:32 AM Sakari Ailus > > wrote: > > > > > > Hi Pin-yen

Re: [PATCH v10 1/9] device property: Add remote endpoint to devcon matcher

2023-01-12 Thread Prashant Malani
HI Sakari, On Thu, Jan 12, 2023 at 5:32 AM Sakari Ailus wrote: > > Hi Pin-yen, > > On Thu, Jan 12, 2023 at 12:20:56PM +0800, Pin-yen Lin wrote: > > From: Prashant Malani > > + /* > > + * Some drivers may register devices for endpoints.

Re: [PATCH v6 2/7] platform/chrome: cros_ec_typec: Purge blocking switch devlinks

2022-11-24 Thread Prashant Malani
Hi Andy, Thanks for taking a look at this patch. Pin-Yen beat me to the punch with comment responses, but I'll add mine anyway. On Thu, Nov 24, 2022 at 4:25 AM Andy Shevchenko wrote: > ... > > > + /* > > + * OF graph may have set up some device links with switches, since > > connector

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-09-16 Thread Prashant Malani
Hi folks, On Fri, Sep 2, 2022 at 12:41 AM Prashant Malani wrote: > > Hi Rob, > > On Jul 12 11:45, Rob Herring wrote: > > > > That's not the right interpretation. There should not be some Type-C > > specific child mux/switch node because the device has no such

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-09-02 Thread Prashant Malani
Hi Rob, On Jul 12 11:45, Rob Herring wrote: > > That's not the right interpretation. There should not be some Type-C > specific child mux/switch node because the device has no such h/w within > it. Assuming all the possibilities Stephen outlined are valid, it's > clear this lane selection has

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-07-13 Thread Prashant Malani
On Tue, Jul 12, 2022 at 10:45 AM Rob Herring wrote: > > > I agree with you; I'm saying my interpretation of the comments of this > > thread are that it's not the intended usage of the it6505 part, so the > > driver > > shouldn't be updated to support that. > > That's not the right interpretation.

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-07-06 Thread Prashant Malani
On Thu, Jun 30, 2022 at 4:38 PM Prashant Malani wrote: > > On Thu, Jun 30, 2022 at 4:21 PM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-28 13:56:22) > > > On Tue, Jun 28, 2022 at 1:40 PM Stephen Boyd wrote: > > > > > > > > I su

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-30 Thread Prashant Malani
On Thu, Jun 30, 2022 at 4:21 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-28 13:56:22) > > On Tue, Jun 28, 2022 at 1:40 PM Stephen Boyd wrote: > > > > > > I suppose none of those things matter though as long as there is some > > > typec sw

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-30 Thread Prashant Malani
(CC+ Bjorn) On Wed, Jun 29, 2022 at 4:55 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-29 15:55:10) > > On Wed, Jun 29, 2022 at 2:58 PM Stephen Boyd wrote: > > > > > > My understanding is there are 4 DP lanes on it6505 and two lanes are > > &g

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-29 Thread Prashant Malani
On Wed, Jun 29, 2022 at 2:58 PM Stephen Boyd wrote: > > > What device controls the switching in this case? Again, block diagrams > > please if you want advice on what the binding should look like. > > My understanding is there are 4 DP lanes on it6505 and two lanes are > connected to one usb-c-con

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Prashant Malani
On Tue, Jun 28, 2022 at 1:40 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-28 12:48:11) > > On Tue, Jun 28, 2022 at 12:25 PM Stephen Boyd wrote: > > > > > > Quoting Prashant Malani (2022-06-22 10:34:34) > > > > diff --git a/drivers/gp

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Prashant Malani
On Tue, Jun 28, 2022 at 12:25 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-22 10:34:34) > > From: Pin-Yen Lin > > > > Add the callback function when the driver receives state > > changes of the Type-C port. The callback function configures the > &

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-27 Thread Prashant Malani
Hello Rob, On Mon, Jun 27, 2022 at 2:04 PM Rob Herring wrote: > > On Wed, Jun 22, 2022 at 05:34:30PM +, Prashant Malani wrote: > > Introduce a binding which represents a component that can control the > > routing of USB Type-C data lines as well as address data line > &g

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-24 Thread Prashant Malani
On Fri, Jun 24, 2022 at 12:50 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-23 19:48:04) > > On Thu, Jun 23, 2022 at 7:13 PM Stephen Boyd wrote: > > > > > > Quoting Prashant Malani (2022-06-23 17:35:38) > > > > On Thu, Jun 23, 20

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Prashant Malani
On Thu, Jun 23, 2022 at 7:13 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-23 17:35:38) > > On Thu, Jun 23, 2022 at 4:14 PM Stephen Boyd wrote: > > > > > > I'm not aware of any documentation for the dos and don'ts here. Are > > >

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Prashant Malani
On Thu, Jun 23, 2022 at 5:35 PM Prashant Malani wrote: > > On Thu, Jun 23, 2022 at 4:14 PM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-23 12:08:21) > > > On Thu, Jun 23, 2022 at 11:30 AM Stephen Boyd wrote: > > > > > > >

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Prashant Malani
On Thu, Jun 23, 2022 at 4:14 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-23 12:08:21) > > On Thu, Jun 23, 2022 at 11:30 AM Stephen Boyd wrote: > > > > > > Quoting Prashant Malani (2022-06-22 10:34:30) > > > > diff --git a/Documentation

Re: [PATCH v5 6/9] dt/bindings: drm/bridge: it6505: Add mode-switch support

2022-06-23 Thread Prashant Malani
On Thu, Jun 23, 2022 at 12:08 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-23 11:37:08) > > On Thu, Jun 23, 2022 at 11:24 AM Stephen Boyd wrote: > > > > > > Quoting Prashant Malani (2022-06-22 10:34:35) > > > > From: Pin-Yen Lin > &g

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Prashant Malani
On Thu, Jun 23, 2022 at 11:30 AM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-22 10:34:30) > > diff --git a/Documentation/devicetree/bindings/usb/typec-switch.yaml > > b/Documentation/devicetree/bindings/usb/typec-switch.yaml > > new file mode 10064

Re: [PATCH v5 6/9] dt/bindings: drm/bridge: it6505: Add mode-switch support

2022-06-23 Thread Prashant Malani
On Thu, Jun 23, 2022 at 11:24 AM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-22 10:34:35) > > From: Pin-Yen Lin > > > > ITE IT6505 can be used in systems to switch USB Type-C DisplayPort > > alternate mode lane traffic between 2 Type-C ports. > &g

Re: [PATCH v4 0/7] usb: typec: Introduce typec-switch binding

2022-06-22 Thread Prashant Malani
On Wed, Jun 22, 2022 at 8:11 AM Greg Kroah-Hartman wrote: > > On Wed, Jun 22, 2022 at 04:53:40PM +0200, Krzysztof Kozlowski wrote: > > On 21/06/2022 15:17, Greg Kroah-Hartman wrote: > > > On Wed, Jun 15, 2022 at 11:13:33AM -0700, Prashant Malani wrote: > > >> I

[PATCH v5 9/9] drm/bridge: it6505: Add typec_mux_set callback function

2022-06-22 Thread Prashant Malani
From: Pin-Yen Lin Add the callback function when the driver receives state changes of the Type-C ports. The callback function configures the lane_swap state and ends up updating the lane swap registers of it6505 bridge chip. Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- v5 is

[PATCH v5 8/9] drm/bridge: it6505: Register Type-C mode switches

2022-06-22 Thread Prashant Malani
(like VDOs) related to that state. The callback function is currently a stub, but subsequent patches will implement the required functionality. Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- v5 is the first version for this patch. drivers/gpu/drm/brid

[PATCH v5 7/9] drm/bridge: it6505: Register number of Type C switches

2022-06-22 Thread Prashant Malani
for the actual registering of Type-C switches with the Type-C connector class framework. Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- v5 is the first version for this patch. drivers/gpu/drm/bridge/ite-it6505.c | 34 + 1 file changed, 30 insertions(

[PATCH v5 6/9] dt/bindings: drm/bridge: it6505: Add mode-switch support

2022-06-22 Thread Prashant Malani
From: Pin-Yen Lin ITE IT6505 can be used in systems to switch USB Type-C DisplayPort alternate mode lane traffic between 2 Type-C ports. Update the binding to accommodate this usage by introducing a switch property. Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- v5 is the

[PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-22 Thread Prashant Malani
Del Regno Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- Changes since v4: - Patch moved to 5/9 position (since Patch v4 1/7 and 2/7 were applied to usb-next). Changes since v3: - Added Reviewed-by tag from

[PATCH v5 4/9] drm/bridge: anx7625: Register Type-C mode switches

2022-06-22 Thread Prashant Malani
to that state. The callback function is currently a stub, but subsequent patches will implement the required functionality. Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v4: - Ad

[PATCH v5 3/9] drm/bridge: anx7625: Register number of Type C switches

2022-06-22 Thread Prashant Malani
s with the Type-C connector class framework. Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v4: - Added Reviewed-by tags. - Patch moved to 3/9 position (since Patch v4 1/7 and 2/7 we

[PATCH v5 2/9] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-22 Thread Prashant Malani
: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v4: - Added Reviewed-by tags. - Patch moved to 2/9 position (since Patch v4 1/7 and 2/7 were applied to usb-next). Changes since v3: - Fix unevaluatedProperties usage. - Add

[PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-22 Thread Prashant Malani
ested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v4: - Added Reviewed-by tags. - Patch moved to 1/9 position (since Patch v4 1/7 and 2/7 were applied to usb-next) Changes since v3: - No changes. Changes since v2: - Added Reviewed-by and Tested-by tags. Ch

[PATCH v5 0/9] usb: typec: Introduce typec-switch binding

2022-06-22 Thread Prashant Malani
es drm/bridge: it6505: Add typec_mux_set callback function Prashant Malani (4): dt-bindings: usb: Add Type-C switch binding dt-bindings: drm/bridge: anx7625: Add mode-switch support drm/bridge: anx7625: Register number of Type C switches drm/bridge: anx7625: Register Type-C mode switche

Re: [PATCH v4 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-21 Thread Prashant Malani
On Thu, Jun 16, 2022 at 12:57 PM Prashant Malani wrote: > > On Thu, Jun 16, 2022 at 12:34 PM Rob Herring wrote: > > > > On Thu, Jun 16, 2022 at 01:54:36AM -0700, Prashant Malani wrote: > > > On Thu, Jun 16, 2022 at 12:42 AM Stephen Boyd wrote: > > > > >

Re: [PATCH v4 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-16 Thread Prashant Malani
On Thu, Jun 16, 2022 at 12:34 PM Rob Herring wrote: > > On Thu, Jun 16, 2022 at 01:54:36AM -0700, Prashant Malani wrote: > > On Thu, Jun 16, 2022 at 12:42 AM Stephen Boyd wrote: > > > > > > Quoting Prashant Malani (2022-06-15 10:20:20) > > > > > &g

Re: [PATCH v4 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-16 Thread Prashant Malani
On Thu, Jun 16, 2022 at 12:42 AM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-15 10:20:20) > > > > .../display/bridge/analogix,anx7625.yaml | 64 +++ > > 1 file changed, 64 insertions(+) > > Can this file get a link to the product

Re: [PATCH v4 0/7] usb: typec: Introduce typec-switch binding

2022-06-15 Thread Prashant Malani
repo's usb-next branch after Patches 1-3 have been applied). (I"ll add the above to the cover letter if there is a v5). Thanks! On Wed, Jun 15, 2022 at 10:21 AM Prashant Malani wrote: > > This series introduces a binding for Type-C data lane switches. These > control the routing

[PATCH v4 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-15 Thread Prashant Malani
Del Regno Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- Changes since v3: - Added Reviewed-by tag from Angelo. Changes since v2: - Moved num_typec_switches check to beginning of function - Made dp_connected

[PATCH v4 6/7] drm/bridge: anx7625: Register Type-C mode switches

2022-06-15 Thread Prashant Malani
to that state. The callback function is currently a stub, but subsequent patches will implement the required functionality. Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v3: - No changes. Changes since v2: - Updated de

[PATCH v4 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-15 Thread Prashant Malani
s with the Type-C connector class framework. Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v3: - No changes. Changes since v2: - Move ret variable to Patch v3 6/7. - Make error print a dev_dbg, since it is noisy. - Added

[PATCH v4 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-15 Thread Prashant Malani
Analogix 7625 can be used in systems to switch USB Type-C DisplayPort alternate mode lane traffic between 2 Type-C ports. Update the binding to accommodate this usage by introducing a switch property. Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant

[PATCH v4 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-15 Thread Prashant Malani
Introduce a binding which represents a component that can control the routing of USB Type-C data lines as well as address data line orientation (based on CC lines' orientation). Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Ch

[PATCH v4 2/7] usb: typec: mux: Add CONFIG guards for functions

2022-06-15 Thread Prashant Malani
the Type C mux functions will be stub versions of the original calls. Reported-by: kernel test robot Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v3: - No changes. Changes since v2: - Fix up return types for some of

[PATCH v4 1/7] usb: typec: mux: Allow muxes to specify mode-switch

2022-06-15 Thread Prashant Malani
ype C port, but don't want to specify a particular alt mode. Signed-off-by: Prashant Malani Reviewed-by: Heikki Krogerus Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado --- Changes since v3: - No changes. Changes since v2: - In

[PATCH v4 0/7] usb: typec: Introduce typec-switch binding

2022-06-15 Thread Prashant Malani
up 1 more Reviewed-by tag. Pin-Yen Lin (1): drm/bridge: anx7625: Add typec_mux_set callback function Prashant Malani (6): usb: typec: mux: Allow muxes to specify mode-switch usb: typec: mux: Add CONFIG guards for functions dt-bindings: usb: Add Type-C switch binding dt-bindings: drm/bridge: an

Re: [PATCH v2 6/7] drm/bridge: anx7625: Register Type-C mode switches

2022-06-15 Thread Prashant Malani
On Wed, Jun 15, 2022 at 1:45 AM AngeloGioacchino Del Regno wrote: > > Il 14/06/22 18:57, Prashant Malani ha scritto: > > On Tue, Jun 14, 2022 at 1:18 AM AngeloGioacchino Del Regno > > wrote: > >> > >> Il 09/06/22 20:09, Prashant Malani ha scritto: > >&g

[PATCH v3 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-14 Thread Prashant Malani
. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Pin-Yen Lin Signed-off-by: Prashant Malani --- Changes since v2: - Moved num_typec_switches check to beginning of function - Made dp_connected assignments fit on one line (and removed unnecessary parentheses) - Added Reviewed-by and Tested

[PATCH v3 6/7] drm/bridge: anx7625: Register Type-C mode switches

2022-06-14 Thread Prashant Malani
to that state. The callback function is currently a stub, but subsequent patches will implement the required functionality. Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v2: - Updated dev_info() to dev_warn() print,

[PATCH v3 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-14 Thread Prashant Malani
s with the Type-C connector class framework. Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v2: - Move ret variable to Patch v3 6/7.. - Make error print a dev_dbg, since it is noisy. - Added Reviewed-by and Tested-by tags.

[PATCH v3 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-14 Thread Prashant Malani
Analogix 7625 can be used in systems to switch USB Type-C DisplayPort alternate mode lane traffic between 2 Type-C ports. Update the binding to accommodate this usage by introducing a switch property. Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant

[PATCH v3 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-14 Thread Prashant Malani
Introduce a binding which represents a component that can control the routing of USB Type-C data lines as well as address data line orientation (based on CC lines' orientation). Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Ch

[PATCH v3 2/7] usb: typec: mux: Add CONFIG guards for functions

2022-06-14 Thread Prashant Malani
the Type C mux functions will be stub versions of the original calls. Reported-by: kernel test robot Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado Signed-off-by: Prashant Malani --- Changes since v2: - Fix up return types for some of the stubs. Remove 1 unnecessary stu

[PATCH v3 1/7] usb: typec: mux: Allow muxes to specify mode-switch

2022-06-14 Thread Prashant Malani
ype C port, but don't want to specify a particular alt mode. Signed-off-by: Prashant Malani Reviewed-by: Heikki Krogerus Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Nícolas F. R. A. Prado Tested-by: Nícolas F. R. A. Prado --- Changes since v2: - Included Reviewed-by and Tested-

[PATCH v3 0/7] usb: typec: Introduce typec-switch binding

2022-06-14 Thread Prashant Malani
int when a device is actually listed in DT. - Moved num_typec_switches check to beginning of function. - Picked up Reviewed-by and Tested-by tags from v2. Pin-Yen Lin (1): drm/bridge: anx7625: Add typec_mux_set callback function Prashant Malani (6): usb: typec: mux: Allow muxes to specify m

Re: [PATCH v2 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-14 Thread Prashant Malani
On Tue, Jun 14, 2022 at 1:22 AM AngeloGioacchino Del Regno wrote: > > Il 09/06/22 20:09, Prashant Malani ha scritto: > > Parse the "switches" node, if available, and count and store the number > > of Type-C switches within it. Since we currently don't do anything

Re: [PATCH v2 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-14 Thread Prashant Malani
On Tue, Jun 14, 2022 at 2:08 AM Pin-yen Lin wrote: > > Hi AngeloGioacchino, > > > On Tue, Jun 14, 2022 at 4:15 PM AngeloGioacchino Del Regno > wrote: > > > > Il 09/06/22 20:09, Prashant Malani ha scritto: > > > From: Pin-Yen Lin > > > > >

Re: [PATCH v2 6/7] drm/bridge: anx7625: Register Type-C mode switches

2022-06-14 Thread Prashant Malani
On Tue, Jun 14, 2022 at 1:18 AM AngeloGioacchino Del Regno wrote: > > Il 09/06/22 20:09, Prashant Malani ha scritto: > > When the DT node has "switches" available, register a Type-C mode-switch > > for each listed "switch". This allows the driver to re

Re: [PATCH v2 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-13 Thread Prashant Malani
Hi Nícolas, On Mon, Jun 13, 2022 at 1:51 PM Nícolas F. R. A. Prado wrote: > > Hi Prashant, > > On Thu, Jun 09, 2022 at 06:09:46PM +0000, Prashant Malani wrote: > > From: Pin-Yen Lin > > > > Add the callback function when the driver receives state > > chan

Re: [PATCH v2 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-13 Thread Prashant Malani
Hi Nícolas, On Mon, Jun 13, 2022 at 1:45 PM Nícolas F. R. A. Prado wrote: > > Hi Prashant, > > On Thu, Jun 09, 2022 at 06:09:44PM +0000, Prashant Malani wrote: > > Parse the "switches" node, if available, and count and store the number > > of Type-C switches w

Re: [PATCH v2 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-13 Thread Prashant Malani
Hi Nícolas, On Mon, Jun 13, 2022 at 1:38 PM Nícolas F. R. A. Prado wrote: > > Hi Prashant, > > thanks for the patch. Please see sugestions below. > > On Thu, Jun 09, 2022 at 06:09:42PM +0000, Prashant Malani wrote: > > Introduce a binding which represents a compon

Re: [PATCH 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-09 Thread Prashant Malani
On Wed, Jun 8, 2022 at 11:41 PM Krzysztof Kozlowski wrote: > > On 08/06/2022 23:56, Prashant Malani wrote: > > On Wed, Jun 8, 2022 at 10:08 AM Prashant Malani > > wrote: > >> > >> Hi Krzysztof, > >> > >> Thank you for looking at the patch

[PATCH v2 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-09 Thread Prashant Malani
Signed-off-by: Prashant Malani --- Changes since v2: - No changes. drivers/gpu/drm/bridge/analogix/anx7625.c | 58 +++ drivers/gpu/drm/bridge/analogix/anx7625.h | 13 + 2 files changed, 71 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu

[PATCH v2 6/7] drm/bridge: anx7625: Register Type-C mode switches

2022-06-09 Thread Prashant Malani
to that state. The callback function is currently a stub, but subsequent patches will implement the required functionality. Signed-off-by: Prashant Malani --- Changes since v2: - No changes. drivers/gpu/drm/bridge/analogix/anx7625.c | 73 +++ drivers/gpu/drm/bridge/ana

[PATCH v2 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-09 Thread Prashant Malani
s with the Type-C connector class framework. Signed-off-by: Prashant Malani --- Changes since v1: - No changes. drivers/gpu/drm/bridge/analogix/anx7625.c | 20 drivers/gpu/drm/bridge/analogix/anx7625.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/

[PATCH v2 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-09 Thread Prashant Malani
Analogix 7625 can be used in systems to switch USB Type-C DisplayPort alternate mode lane traffic between 2 Type-C ports. Update the binding to accommodate this usage by introducing a switch property. Signed-off-by: Prashant Malani --- Changes since v1: - Introduced patternProperties for

[PATCH v2 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-09 Thread Prashant Malani
Introduce a binding which represents a component that can control the routing of USB Type-C data lines as well as address data line orientation (based on CC lines' orientation). Signed-off-by: Prashant Malani --- Changes since v1: - Removed "items" from compatible. - Fixed

[PATCH v2 2/7] usb: typec: mux: Add CONFIG guards for functions

2022-06-09 Thread Prashant Malani
the Type C mux functions will be stub versions of the original calls. Reported-by: kernel test robot Signed-off-by: Prashant Malani --- Changes since v1: - Added static inline to stub functions. - Updated function signature of stub functions from "struct typec_mux" to "struct typ

[PATCH v2 1/7] usb: typec: mux: Allow muxes to specify mode-switch

2022-06-09 Thread Prashant Malani
ype C port, but don't want to specify a particular alt mode. Signed-off-by: Prashant Malani --- Changes since v1: - No changes. drivers/usb/typec/mux.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c ind

[PATCH v2 0/7] usb: typec: Introduce typec-switch binding

2022-06-09 Thread Prashant Malani
quot;address-cells" and "size-cells" properties to "switches". Pin-Yen Lin (1): drm/bridge: anx7625: Add typec_mux_set callback function Prashant Malani (6): usb: typec: mux: Allow muxes to specify mode-switch usb: typec: mux: Add CONFIG guards for functions dt-bindin

Re: [PATCH 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-08 Thread Prashant Malani
On Wed, Jun 8, 2022 at 10:08 AM Prashant Malani wrote: > > Hi Krzysztof, > > Thank you for looking at the patch. > > On Jun 08 11:24, Krzysztof Kozlowski wrote: > > On 07/06/2022 21:00, Prashant Malani wrote: > > > Analogix 7625 can be used in systems

Re: [PATCH 2/7] usb: typec: mux: Add CONFIG guards for functions

2022-06-08 Thread Prashant Malani
On Jun 07 19:00, Prashant Malani wrote: > There are some drivers that can use the Type C mux API, but don't have > to. Introduce CONFIG guards for the mux functions so that drivers can > include the header file and not run into compilation errors on systems > which don't hav

Re: [PATCH 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-08 Thread Prashant Malani
Hi Krzysztof, On Jun 08 11:18, Krzysztof Kozlowski wrote: > On 07/06/2022 21:00, Prashant Malani wrote: > > Introduce a binding which represents a component that can control the > > routing of USB Type-C data lines as well as address data line > > orientation (based on

Re: [PATCH 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-08 Thread Prashant Malani
Hi Krzysztof, Thank you for looking at the patch. On Jun 08 11:24, Krzysztof Kozlowski wrote: > On 07/06/2022 21:00, Prashant Malani wrote: > > Analogix 7625 can be used in systems to switch USB Type-C DisplayPort > > alternate mode lane traffic between 2 Type-C ports. >

[PATCH 7/7] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-07 Thread Prashant Malani
Signed-off-by: Prashant Malani --- drivers/gpu/drm/bridge/analogix/anx7625.c | 58 +++ drivers/gpu/drm/bridge/analogix/anx7625.h | 13 + 2 files changed, 71 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index

[PATCH 6/7] drm/bridge: anx7625: Register Type-C mode switches

2022-06-07 Thread Prashant Malani
to that state. The callback function is currently a stub, but subsequent patches will implement the required functionality. Signed-off-by: Prashant Malani --- drivers/gpu/drm/bridge/analogix/anx7625.c | 73 +++ drivers/gpu/drm/bridge/analogix/anx7625.h | 6 ++ 2 files ch

[PATCH 5/7] drm/bridge: anx7625: Register number of Type C switches

2022-06-07 Thread Prashant Malani
s with the Type-C connector class framework. Signed-off-by: Prashant Malani --- drivers/gpu/drm/bridge/analogix/anx7625.c | 20 drivers/gpu/drm/bridge/analogix/anx7625.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/

[PATCH 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-07 Thread Prashant Malani
Analogix 7625 can be used in systems to switch USB Type-C DisplayPort alternate mode lane traffic between 2 Type-C ports. Update the binding to accommodate this usage by introducing a switch property. Signed-off-by: Prashant Malani --- .../display/bridge/analogix,anx7625.yaml | 56

[PATCH 3/7] dt-bindings: usb: Add Type-C switch binding

2022-06-07 Thread Prashant Malani
Introduce a binding which represents a component that can control the routing of USB Type-C data lines as well as address data line orientation (based on CC lines' orientation). Signed-off-by: Prashant Malani --- .../devicetree/bindings/usb/typec-switch.yaml | 76 +++ 1

[PATCH 2/7] usb: typec: mux: Add CONFIG guards for functions

2022-06-07 Thread Prashant Malani
the Type C mux functions will be stub versions of the original calls. Signed-off-by: Prashant Malani --- include/linux/usb/typec_mux.h | 38 +++ 1 file changed, 38 insertions(+) diff --git a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h index ee

[PATCH 1/7] usb: typec: mux: Allow muxes to specify mode-switch

2022-06-07 Thread Prashant Malani
ype C port, but don't want to specify a particular alt mode. Signed-off-by: Prashant Malani --- drivers/usb/typec/mux.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c index fd55c2c516a5..464330776cd6 100644 --- a/dr

[PATCH 0/7] usb: typec: Introduce typec-switch binding

2022-06-07 Thread Prashant Malani
as well as program its crosspoint switch depending on which Type-C port has a DisplayPort (DP) peripheral connected to it. Pin-Yen Lin (1): drm/bridge: anx7625: Add typec_mux_set callback function Prashant Malani (6): usb: typec: mux: Allow muxes to specify mode-switch usb: typec: mux: Add CONFIG

Re: [RFC] drm/msm/dp: Allow attaching a drm_panel

2021-10-07 Thread Prashant Malani
(CC+ Heikki) Hi, On Wed, Oct 6, 2021 at 8:19 AM Doug Anderson wrote: > > Hi, > > On Tue, Oct 5, 2021 at 7:27 PM Bjorn Andersson > wrote: > > > > > > For reference, this is how I thought one is supposed to tie the Type-C > > > > controller to the display driver: > > > > https://lore.kernel.org/a

Re: [PATCH] drm/bridge: anx7625: Add anx7625 port switching.

2020-11-13 Thread Prashant Malani
On Thu, Nov 12, 2020 at 05:07:05PM +0800, Pi-Hsun Shih wrote: > Hi Prashant, > > Please see inline reply as below. > > On Thu, Nov 12, 2020 at 4:59 PM Prashant Malani wrote: > > > > Hi Pi-Hsun, > > > > I haven't gone through the code, but did have

Re: [PATCH] drm/bridge: anx7625: Add anx7625 port switching.

2020-11-13 Thread Prashant Malani
Hi Pi-Hsun, I haven't gone through the code, but did have a high-level comment (kindly see inline) On Thu, Nov 12, 2020 at 02:40:40PM +0800, Pi-Hsun Shih wrote: > When output 2 lanes DP data, anx7625 can output to either TX1/RX1 or > TX2/RX2. In typical usage, these two TX/RX pairs corresponds to