* [PATCH v2 0/2] phy: Replace the deprecated extcon API [not found] <CGME20161230041136epcas5p4e0229714cd00961e5d3cb5ef9923b7aa@epcas5p4.samsung.com> @ 2016-12-30 4:11 ` Chanwoo Choi [not found] ` <CGME20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4@epcas5p4.samsung.com> ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Chanwoo Choi @ 2016-12-30 4:11 UTC (permalink / raw) To: kishon, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo, Chanwoo Choi This patches just replace the deprecated extcon API without any change of extcon operation and use the resource-managed function for extcon_register_notifier(). The new extcon API instead of deprecated API. - extcon_set_cable_state_() -> extcon_set_state_sync(); - extcon_get_cable_state_() -> extcon_get_state(); Changes from v1: - Rebase these patches based on v4.10-rc1. - Drop the usb/power-supply/chipidea patches. Chanwoo Choi (2): phy: rcar-gen3-usb2: Replace the deprecated extcon API phy: sun4i-usb: Replace the deprecated extcon API drivers/phy/phy-rcar-gen3-usb2.c | 8 ++++---- drivers/phy/phy-sun4i-usb.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) -- 1.9.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CGME20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4@epcas5p4.samsung.com>]
* [PATCH v2 1/2] phy: rcar-gen3-usb2: Replace the deprecated extcon API [not found] ` <CGME20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4@epcas5p4.samsung.com> @ 2016-12-30 4:11 ` Chanwoo Choi 0 siblings, 0 replies; 8+ messages in thread From: Chanwoo Choi @ 2016-12-30 4:11 UTC (permalink / raw) To: kishon, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo, Chanwoo Choi This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_set_state_sync() Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/phy/phy-rcar-gen3-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/phy-rcar-gen3-usb2.c b/drivers/phy/phy-rcar-gen3-usb2.c index c63da1b955c1..54a83675f0a8 100644 --- a/drivers/phy/phy-rcar-gen3-usb2.c +++ b/drivers/phy/phy-rcar-gen3-usb2.c @@ -94,11 +94,11 @@ static void rcar_gen3_phy_usb2_work(struct work_struct *work) work); if (ch->extcon_host) { - extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, true); - extcon_set_cable_state_(ch->extcon, EXTCON_USB, false); + extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); + extcon_set_state_sync(ch->extcon, EXTCON_USB, false); } else { - extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, false); - extcon_set_cable_state_(ch->extcon, EXTCON_USB, true); + extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); + extcon_set_state_sync(ch->extcon, EXTCON_USB, true); } } -- 1.9.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
[parent not found: <CGME20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef@epcas5p4.samsung.com>]
* [PATCH v2 2/2] phy: sun4i-usb: Replace the deprecated extcon API [not found] ` <CGME20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef@epcas5p4.samsung.com> @ 2016-12-30 4:11 ` Chanwoo Choi 2017-01-05 6:42 ` Chen-Yu Tsai 2017-01-16 9:09 ` Kishon Vijay Abraham I 0 siblings, 2 replies; 8+ messages in thread From: Chanwoo Choi @ 2016-12-30 4:11 UTC (permalink / raw) To: kishon, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo, Chanwoo Choi This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_set_state_sync() Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- drivers/phy/phy-sun4i-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c index bf28a0fdd569..eae171e18043 100644 --- a/drivers/phy/phy-sun4i-usb.c +++ b/drivers/phy/phy-sun4i-usb.c @@ -534,7 +534,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) mutex_unlock(&phy0->mutex); if (id_notify) { - extcon_set_cable_state_(data->extcon, EXTCON_USB_HOST, + extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, !id_det); /* When leaving host mode force end the session here */ if (force_session_end && id_det == 1) { @@ -547,7 +547,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) } if (vbus_notify) - extcon_set_cable_state_(data->extcon, EXTCON_USB, vbus_det); + extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); if (sun4i_usb_phy0_poll(data)) queue_delayed_work(system_wq, &data->detect, POLL_TIME); -- 1.9.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] phy: sun4i-usb: Replace the deprecated extcon API 2016-12-30 4:11 ` [PATCH v2 2/2] phy: sun4i-usb: " Chanwoo Choi @ 2017-01-05 6:42 ` Chen-Yu Tsai 2017-01-16 9:09 ` Kishon Vijay Abraham I 1 sibling, 0 replies; 8+ messages in thread From: Chen-Yu Tsai @ 2017-01-05 6:42 UTC (permalink / raw) To: Chanwoo Choi Cc: Kishon Vijay Abraham I, Maxime Ripard, Chen-Yu Tsai, linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo On Fri, Dec 30, 2016 at 12:11 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote: > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Cc: Kishon Vijay Abraham I <kishon@ti.com> > Cc: Maxime Ripard <maxime.ripard@free-electrons.com> > Cc: Chen-Yu Tsai <wens@csie.org> > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Chen-Yu Tsai <wens@csie.org> > --- > drivers/phy/phy-sun4i-usb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c > index bf28a0fdd569..eae171e18043 100644 > --- a/drivers/phy/phy-sun4i-usb.c > +++ b/drivers/phy/phy-sun4i-usb.c > @@ -534,7 +534,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) > mutex_unlock(&phy0->mutex); > > if (id_notify) { > - extcon_set_cable_state_(data->extcon, EXTCON_USB_HOST, > + extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, > !id_det); > /* When leaving host mode force end the session here */ > if (force_session_end && id_det == 1) { > @@ -547,7 +547,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) > } > > if (vbus_notify) > - extcon_set_cable_state_(data->extcon, EXTCON_USB, vbus_det); > + extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); > > if (sun4i_usb_phy0_poll(data)) > queue_delayed_work(system_wq, &data->detect, POLL_TIME); > -- > 1.9.1 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] phy: sun4i-usb: Replace the deprecated extcon API 2016-12-30 4:11 ` [PATCH v2 2/2] phy: sun4i-usb: " Chanwoo Choi 2017-01-05 6:42 ` Chen-Yu Tsai @ 2017-01-16 9:09 ` Kishon Vijay Abraham I 1 sibling, 0 replies; 8+ messages in thread From: Kishon Vijay Abraham I @ 2017-01-16 9:09 UTC (permalink / raw) To: Chanwoo Choi, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo On Friday 30 December 2016 09:41 AM, Chanwoo Choi wrote: > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Cc: Kishon Vijay Abraham I <kishon@ti.com> > Cc: Maxime Ripard <maxime.ripard@free-electrons.com> > Cc: Chen-Yu Tsai <wens@csie.org> > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> merged both the patches in this series. Thanks Kishon > --- > drivers/phy/phy-sun4i-usb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c > index bf28a0fdd569..eae171e18043 100644 > --- a/drivers/phy/phy-sun4i-usb.c > +++ b/drivers/phy/phy-sun4i-usb.c > @@ -534,7 +534,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) > mutex_unlock(&phy0->mutex); > > if (id_notify) { > - extcon_set_cable_state_(data->extcon, EXTCON_USB_HOST, > + extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, > !id_det); > /* When leaving host mode force end the session here */ > if (force_session_end && id_det == 1) { > @@ -547,7 +547,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) > } > > if (vbus_notify) > - extcon_set_cable_state_(data->extcon, EXTCON_USB, vbus_det); > + extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); > > if (sun4i_usb_phy0_poll(data)) > queue_delayed_work(system_wq, &data->detect, POLL_TIME); > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] phy: Replace the deprecated extcon API 2016-12-30 4:11 ` [PATCH v2 0/2] phy: Replace the deprecated extcon API Chanwoo Choi [not found] ` <CGME20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4@epcas5p4.samsung.com> [not found] ` <CGME20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef@epcas5p4.samsung.com> @ 2017-01-10 8:16 ` Chanwoo Choi 2017-01-16 9:10 ` Chanwoo Choi 2 siblings, 1 reply; 8+ messages in thread From: Chanwoo Choi @ 2017-01-10 8:16 UTC (permalink / raw) To: kishon, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo Hi Kishon, Could you review these patches or pick up them if there is no any comment? On 2016년 12월 30일 13:11, Chanwoo Choi wrote: > This patches just replace the deprecated extcon API without any change > of extcon operation and use the resource-managed function for > extcon_register_notifier(). > > The new extcon API instead of deprecated API. > - extcon_set_cable_state_() -> extcon_set_state_sync(); > - extcon_get_cable_state_() -> extcon_get_state(); > > Changes from v1: > - Rebase these patches based on v4.10-rc1. > - Drop the usb/power-supply/chipidea patches. > > Chanwoo Choi (2): > phy: rcar-gen3-usb2: Replace the deprecated extcon API > phy: sun4i-usb: Replace the deprecated extcon API > > drivers/phy/phy-rcar-gen3-usb2.c | 8 ++++---- > drivers/phy/phy-sun4i-usb.c | 4 ++-- > 2 files changed, 6 insertions(+), 6 deletions(-) > -- Best Regards, Chanwoo Choi S/W Center, Samsung Electronics ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] phy: Replace the deprecated extcon API 2017-01-10 8:16 ` [PATCH v2 0/2] phy: " Chanwoo Choi @ 2017-01-16 9:10 ` Chanwoo Choi 2017-01-16 9:44 ` Kishon Vijay Abraham I 0 siblings, 1 reply; 8+ messages in thread From: Chanwoo Choi @ 2017-01-16 9:10 UTC (permalink / raw) To: kishon, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo Hi Kishon, On 2017년 01월 10일 17:16, Chanwoo Choi wrote: > Hi Kishon, > > Could you review these patches or pick up them if there is no any comment? If there are no comments, could you apply these patches? > > On 2016년 12월 30일 13:11, Chanwoo Choi wrote: >> This patches just replace the deprecated extcon API without any change >> of extcon operation and use the resource-managed function for >> extcon_register_notifier(). >> >> The new extcon API instead of deprecated API. >> - extcon_set_cable_state_() -> extcon_set_state_sync(); >> - extcon_get_cable_state_() -> extcon_get_state(); >> >> Changes from v1: >> - Rebase these patches based on v4.10-rc1. >> - Drop the usb/power-supply/chipidea patches. >> >> Chanwoo Choi (2): >> phy: rcar-gen3-usb2: Replace the deprecated extcon API >> phy: sun4i-usb: Replace the deprecated extcon API >> >> drivers/phy/phy-rcar-gen3-usb2.c | 8 ++++---- >> drivers/phy/phy-sun4i-usb.c | 4 ++-- >> 2 files changed, 6 insertions(+), 6 deletions(-) >> > -- Best Regards, Chanwoo Choi S/W Center, Samsung Electronics ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/2] phy: Replace the deprecated extcon API 2017-01-16 9:10 ` Chanwoo Choi @ 2017-01-16 9:44 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 8+ messages in thread From: Kishon Vijay Abraham I @ 2017-01-16 9:44 UTC (permalink / raw) To: Chanwoo Choi, maxime.ripard, wens Cc: linux-kernel, linux-renesas-soc, linux-arm-kernel, chanwoo On Monday 16 January 2017 02:40 PM, Chanwoo Choi wrote: > Hi Kishon, > > On 2017년 01월 10일 17:16, Chanwoo Choi wrote: >> Hi Kishon, >> >> Could you review these patches or pick up them if there is no any comment? > > If there are no comments, could you apply these patches? merged it already. You should see it phy -next before tomorrow. Thanks Kishon > >> >> On 2016년 12월 30일 13:11, Chanwoo Choi wrote: >>> This patches just replace the deprecated extcon API without any change >>> of extcon operation and use the resource-managed function for >>> extcon_register_notifier(). >>> >>> The new extcon API instead of deprecated API. >>> - extcon_set_cable_state_() -> extcon_set_state_sync(); >>> - extcon_get_cable_state_() -> extcon_get_state(); >>> >>> Changes from v1: >>> - Rebase these patches based on v4.10-rc1. >>> - Drop the usb/power-supply/chipidea patches. >>> >>> Chanwoo Choi (2): >>> phy: rcar-gen3-usb2: Replace the deprecated extcon API >>> phy: sun4i-usb: Replace the deprecated extcon API >>> >>> drivers/phy/phy-rcar-gen3-usb2.c | 8 ++++---- >>> drivers/phy/phy-sun4i-usb.c | 4 ++-- >>> 2 files changed, 6 insertions(+), 6 deletions(-) >>> >> > > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-01-16 9:44 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CGME20161230041136epcas5p4e0229714cd00961e5d3cb5ef9923b7aa@epcas5p4.samsung.com> 2016-12-30 4:11 ` [PATCH v2 0/2] phy: Replace the deprecated extcon API Chanwoo Choi [not found] ` <CGME20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4@epcas5p4.samsung.com> 2016-12-30 4:11 ` [PATCH v2 1/2] phy: rcar-gen3-usb2: " Chanwoo Choi [not found] ` <CGME20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef@epcas5p4.samsung.com> 2016-12-30 4:11 ` [PATCH v2 2/2] phy: sun4i-usb: " Chanwoo Choi 2017-01-05 6:42 ` Chen-Yu Tsai 2017-01-16 9:09 ` Kishon Vijay Abraham I 2017-01-10 8:16 ` [PATCH v2 0/2] phy: " Chanwoo Choi 2017-01-16 9:10 ` Chanwoo Choi 2017-01-16 9:44 ` Kishon Vijay Abraham I
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).