Re: [RFC PATCH 0/3] introduce: Multistate Switch Class

From: MyungJoo Ham
Date: Wed Nov 30 2011 - 23:51:10 EST


On Thu, Dec 1, 2011 at 8:25 AM, Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
> On Wed, Nov 30, 2011 at 11:17:41PM +0000, Mark Brown wrote:
>> On Thu, Dec 01, 2011 at 09:56:33AM +1100, NeilBrown wrote:
>> > On Wed, 30 Nov 2011 15:40:48 +0900 MyungJoo Ham <myungjoo.ham@xxxxxxxxx>
>> > wrote:
>>
>> > > I'm focusing on an external connector or port that each physical port
>> > > may inhabit multiple cables at a time although it should support a
>> > > port that may inhabit a single cable only at a time. However, the
>> > > class could be used for other general "multistate mux" that connects
>> > > different device drivers.
>>
>> >  maybe I'm just slow, but I'm having a lot of trouble imagining a single port
>> >  that could have multiple cables plugged in at the same time.  And this
>> >  blockage is stopping me from reflecting usefully on your other points.
>>
>> >  Are you able to show me a picture or a diagram or something so I can
>> >  visualise what you are talking about?
>> >  To me: once you plug one cable into a port, it is full and there is no room
>> >  for any more cables.
>>
>> One obvious example is the sort of big multi-way docking connector that
>> many mobile devices have (iPod and friends being one of the most
>> common).  These are essentially the same as docking station connections
>> on a laptop in terms of what they bring out - a variety of audio, video
>> and communication connections - which may go to a docking station or
>> some kind of breakout or adaptor cable and may have sub-ports hanging
>> off them (eg, it's common for tablets to have docking stations with HDMI
>> and audio sockets on them).
>>
>> There are also lower pin count equivalents like the multiplexed "USB"
>> sockets on some phones which can also carry other functions with
>> adaptors, and even something like a headset is really a microphone and
>> headphones on a single jack.
>
> Physical jack does not have to map 1:1 on logical jack. So 1 physical
> docking connector can be represented by 1 logical video connector, line
> in, line out, microphone and maybe else.
>

Yes, we can implement that way.

However, the "mux" device (e.g., MAX8997 MUIC / MAX77693 / FSA9480 /
... / and some multipurpose earphone jacks maybe? ) still needs to
have one device driver to represent the physical jack; it has one IRQ,
one set of power controls, and one set of registers for all of these
connectors.


Cheers!
MyungJoo

> --
> Dmitry



--
MyungJoo Ham, Ph.D.
Mobile Software Platform Lab, DMC Business, Samsung Electronics
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/