RE: [PATCH v6 5/6] usb: typec: mux: add typec switch via general mux control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
> -----Original Message-----
> From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Sent: Monday, November 23, 2020 11:31 PM
> To: Jun Li <jun.li@xxxxxxx>
> Cc: heikki.krogerus@xxxxxxxxxxxxxxx; robh+dt@xxxxxxxxxx;
> rafael@xxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx; hdegoede@xxxxxxxxxx;
> lee.jones@xxxxxxxxxx; mika.westerberg@xxxxxxxxxxxxxxx;
> dmitry.torokhov@xxxxxxxxx; prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx;
> laurent.pinchart+renesas@xxxxxxxxxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx;
> devicetree@xxxxxxxxxxxxxxx; dl-linux-imx <linux-imx@xxxxxxx>; Peter Chen
> <peter.chen@xxxxxxx>
> Subject: Re: [PATCH v6 5/6] usb: typec: mux: add typec switch via general
> mux control
> 
> On Mon, Nov 23, 2020 at 10:01:35PM +0800, Li Jun wrote:
> > The general mux controller can be easily extended to support various
> > mux selection, this especially fits typec orientation switch block
> > with a dedicated driver.
> 
> ...
> 
> > @@ -42,10 +43,8 @@ static void *typec_switch_match(struct
> device_connection *con, int ep,
> >  	if (con->id && !fwnode_is_compatible(con->fwnode, con->id) &&
> >  		       !fwnode_property_present(con->fwnode, con->id))
> >  		return NULL;
> > -
> >  	dev = class_find_device(&typec_mux_class, NULL, con->fwnode,
> >  				switch_fwnode_match);
> > -
> >  	return dev ? to_typec_switch(dev) : ERR_PTR(-EPROBE_DEFER);  }
> >
> 
> Not related change.

Oops, above 2 blank lines should be kept, I will remove the changes.

> 
> ...
> 
> > +	if (sw->mux_ctrl)
> > +		return typec_switch_mux_ctrl(sw->mux_ctrl, orientation);
> 
> > +	else
> 
> Redundant.

will remove it.

Thanks
Li Jun
> 
> > +		return sw->set(sw, orientation);
> 
> --
> With Best Regards,
> Andy Shevchenko
> 





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux