linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chanwoo Choi <cw00.choi@samsung.com>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	jaewon02.kim@samsung.com,
	"myungjoo.ham@samsung.com" <myungjoo.ham@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>
Subject: Re: [PATCH 0/4] extcon: Modify the name of unused external connector
Date: Mon, 04 May 2015 14:37:21 +0900	[thread overview]
Message-ID: <55470591.7000600@samsung.com> (raw)
In-Reply-To: <55418F0B.5090404@samsung.com>

On 04/30/2015 11:10 AM, Krzysztof Kozlowski wrote:
> On 28.04.2015 17:40, Chanwoo Choi wrote:
>> On Tue, Apr 28, 2015 at 12:43 PM, Krzysztof Kozlowski
>> <k.kozlowski@samsung.com> wrote:
>>> On 27.04.2015 21:31, Chanwoo Choi wrote:
>>>>
>>>> This patchset alter the unused name of external connector (jig/dock/MHL)
>>>> as
>>>> following. The name of jig cable and dock device include the non-standard
>>>> H/W
>>>> information. On user-space side, this information are not necessary. The
>>>> extcon
>>>> core will support the other method to inform the specific H/W information
>>>> to
>>>> kernel device driver and framework. For example, extcon core have the plan
>>>> to add
>>>> the notifier chain for USB ID/VBUS pin state. If extcon consumer (kernel
>>>> device
>>>> driver and framework) use the notifer chain for USB ID/VBUS, they can get
>>>> the
>>>> state of both JIG and USB when JIG-USB-ON cable is attached.
>>>>
>>>> And last patch removes the unused 'num_cables' filed on extcon-adc-jack.c.
>>>>
>>>> 1. jig cable name
>>>> - JIG-USB-ON   -->|
>>>> - JIG-USB-OFF  -->|
>>>> - JIG-UART-ON  -->|
>>>> - JIG-UART-OFF -->|--> JIG
>>>>
>>>> 2. dock device name
>>>> - Dock-Smart   -->|
>>>> - Dock-Desk    -->|
>>>> - Dock-Audio   -->|
>>>> - Dock-Card    -->|--> DOCK
>>>>
>>>> 3. MHL-TA cable name
>>>> - MHL-TA -> TA
>>>
>>>
>>> Hi,
>>>
>>> That makes sense but isn't such change a break of interface with user-space?
>>> The user-space may expect Dock-xxx for Dock.
>>
>> I guess it's possible. But, the "Dock-{Smart|Desk|Audio}" device name are not
>> standard. Their name are only used for Samsung Galaxy S3 (releaesd 3.0
>> kernel) and it is not for mainline kernel.
>>
>> So, I want to make the standard cable name for mainline kernel and user-space.
>> The extcon driver will send the event of 'dock' device with specific
>> external connector which is connected to 'dock' device.
>>
>> For example, Dock-Smart means the Dock device with MHL cable. When
>> Dock-Smart is attached, extcon driver will send the two external
>> connector state of
>> both 'DOCK' and 'MHL'. So, the user-space process will detect the kind of dock
>> by catching both 'DOCK' and 'MHL' uevent.
> 
> Okay, one more concern - for Dock-Smart the extcon will send two consecutive events (first DOCK, then MHL). So to distinguish this from two separate connections of Dock and MHL (user first connects some Dock, disconnects, connects MHL), the driver always has to call extcon_set_cable_state(edev, "Dock", false) after disconnection.
> 
> Without the "disconnect" state this case would mean for userspace "Dock+MHL".
> 
> This looks like an important part of API for extcon and for driver implementations. So it should be documented somewhere?

There is no document about it. I'll send other patch for the sequence of two events as following:

- attached
1. DOCK is attached
2. MHL is attached
- detached
1. MHL is detached
2. DOCK is detached

Thanks,
Chanwoo Choi



      reply	other threads:[~2015-05-04  5:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27 12:31 [PATCH 0/4] extcon: Modify the name of unused external connector Chanwoo Choi
2015-04-27 12:31 ` [PATCH 1/4] extcon: Unify the jig cable names on RT8963 and MAX14577/77693/77843 Chanwoo Choi
2015-04-30  2:00   ` Krzysztof Kozlowski
2015-04-30  2:03     ` Chanwoo Choi
2015-04-27 12:31 ` [PATCH 2/4] extcon: Unify the dock device names on MAX8997/77693 Chanwoo Choi
2015-04-30  2:12   ` Krzysztof Kozlowski
2015-04-27 12:31 ` [PATCH 3/4] extcon: Alter MHL-TA cable name to TA cable name Chanwoo Choi
2015-04-30  2:11   ` Krzysztof Kozlowski
2015-04-27 12:31 ` [PATCH 4/4] extcon: adc-jack: Remove the unneeded num_cables field Chanwoo Choi
2015-04-28  3:43 ` [PATCH 0/4] extcon: Modify the name of unused external connector Krzysztof Kozlowski
2015-04-28  8:40   ` Chanwoo Choi
2015-04-30  2:10     ` Krzysztof Kozlowski
2015-05-04  5:37       ` Chanwoo Choi [this message]

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=55470591.7000600@samsung.com \
    --to=cw00.choi@samsung.com \
    --cc=jaewon02.kim@samsung.com \
    --cc=k.kozlowski@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).