Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1407903
| From | Lu Baolu <baolu.lu@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux |
| Date | 2016-05-27 10:10 +0200 |
| Message-ID | <rDl0e-Ub-27@gated-at.bofh.it> (permalink) |
| References | <rvkaZ-23G-3@gated-at.bofh.it> <rvkb0-23G-15@gated-at.bofh.it> <rCERj-he-15@gated-at.bofh.it> <rCRYd-87B-9@gated-at.bofh.it> <rDl0e-Ub-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On 05/27/2016 04:00 PM, Heikki Krogerus wrote: >> I agree with you that we should move extcon out of the framework. >> > >> > In order to support multiport systems, I have below proposal. >> > >> > Currently, we have below interfaces. >> > >> > struct portmux_dev *portmux_register(struct portmux_desc *desc); >> > void portmux_unregister(struct portmux_dev *pdev); >> > >> > I will add below ones. >> > >> > struct portmux_dev *portmux_lookup_by_name(char *name); >> > int portmux_switch(struct portmux_dev *pdev, enum port_role); >> > >> > The normal usage mode is >> > 1) the mux device is registered as soon as a mux is detected with >> > portmux_register(); >> > 2) In components like USB PHY or changer drivers, the mux could >> > be retrieved with portmux_lookup_by_name() and controlled via >> > portmux_switch(). >> > >> > Is this helpful? > It works for me, and we can improve it later if needed. Okay, thanks. Best regards, Lu Baolu
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2016-05-25 13:10 +0200
Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux Lu Baolu <baolu.lu@linux.intel.com> - 2016-05-26 03:10 +0200
Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2016-05-27 10:10 +0200
Re: [PATCH v8 2/7] usb: mux: add generic code for dual role port mux Lu Baolu <baolu.lu@linux.intel.com> - 2016-05-27 10:10 +0200
csiph-web