Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1610941 > unrolled thread

Re: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister

Started byFelipe Balbi <balbi@kernel.org>
First post2017-03-28 15:50 +0200
Last post2017-03-30 05:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister Felipe Balbi <balbi@kernel.org> - 2017-03-28 15:50 +0200
    Re: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant  extcon register/unregister Baolin Wang <baolin.wang@linaro.org> - 2017-03-30 05:30 +0200

#1610941 — Re: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister

FromFelipe Balbi <balbi@kernel.org>
Date2017-03-28 15:50 +0200
SubjectRe: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister
Message-ID<tpZFx-8kZ-51@gated-at.bofh.it>
Hi,

Baolin Wang <baolin.wang@linaro.org> writes:
> Since usb phy core has added common code to register or unregister
> extcon device, then phy-qcom-8x16-usb driver does not need its own
> code to register/unregister extcon device, then remove them.
>
> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

so previous patch helped *ONE* single user? Was it really beneficial if
it's all for a single user? Which duplicated code did it remove?

-- 
balbi

[toc] | [next] | [standalone]


#1612517 — Re: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister

FromBaolin Wang <baolin.wang@linaro.org>
Date2017-03-30 05:30 +0200
SubjectRe: [PATCH v2 2/2] usb: phy: phy-qcom-8x16-usb: Remove redundant extcon register/unregister
Message-ID<tqyWC-5f-3@gated-at.bofh.it>
In reply to#1610941
Hi,

On 28 March 2017 at 21:42, Felipe Balbi <balbi@kernel.org> wrote:
>
> Hi,
>
> Baolin Wang <baolin.wang@linaro.org> writes:
>> Since usb phy core has added common code to register or unregister
>> extcon device, then phy-qcom-8x16-usb driver does not need its own
>> code to register/unregister extcon device, then remove them.
>>
>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>
> so previous patch helped *ONE* single user? Was it really beneficial if
> it's all for a single user? Which duplicated code did it remove?

Now only 3 USB phy drivers (phy-qcom-8x16-usb.c, phy-omap-otg.c and
phy-msm-usb.c) had registered an extcon, mostly did not.
phy-omap-otg.c did not add one usb phy, so I did not convert it.
phy-msm-usb.c had 2 separate extcon devices, but my last patch did not
support separate extcon devices which need to modify again. Moreover
in future usb phy drivers do not need to implement extcon things in
their own drivers.

-- 
Baolin.wang
Best Regards

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web