From patchwork Fri Dec 30 04:11:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9491783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED35D62AB9 for ; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC0C11FFD6 for ; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D08462018E; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6AAF21FFD6 for ; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMoY2-0005ua-Ir; Fri, 30 Dec 2016 04:12:06 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMoXx-0005o1-Lp for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2016 04:12:03 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIZ01732CZD2T00@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2016 13:11:37 +0900 (KST) Received: from epsmges5p3.samsung.com (unknown [182.195.40.65]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20161230041137epcas1p17af8a52cf4b7eebf10df1064748283cc~U7U5Czgr-0078900789epcas1p1s; Fri, 30 Dec 2016 04:11:37 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id 55.7C.27486.97ED5685; Fri, 30 Dec 2016 13:11:37 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef~U7U4KK2lE0062700627epcas5p4n; Fri, 30 Dec 2016 04:11:36 +0000 (GMT) X-AuditID: b6c32a2e-f79b36d000006b5e-57-5865de7966fc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 55.C1.28332.87ED5685; Fri, 30 Dec 2016 13:11:36 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIZ0035GCZCVT80@mmp2.samsung.com>; Fri, 30 Dec 2016 13:11:36 +0900 (KST) From: Chanwoo Choi To: kishon@ti.com, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH v2 2/2] phy: sun4i-usb: Replace the deprecated extcon API Date: Fri, 30 Dec 2016 13:11:29 +0900 Message-id: <1483071089-8362-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1483071089-8362-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLKsWRmVeSWpSXmKPExsWy7bCmpm7lvdQIgxUrNSwm3rjCYnH9y3N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L6l+es Fhee9rBZbHp8jdXi8q45bBZbX75jsti6aS+zxc9D55kcODw2PFrN6vFk00VGj02rOtk8Ni+p 9+jbsorR4/iN7UwenzfJBbBHudlkpCampBYppOYl56dk5qXbKoWGuOlaKCnkJeam2ipF6PqG BCkplCXmlAJ5RgZowME5wD1YSd8uwS3j3cplTAVruCoW3nnG1MD4gqOLkZNDQsBEYsHSh0wQ tpjEhXvr2boYuTiEBGYxSrx40MUOkhAS+MEosW2rM4jNJqAlsf/FDTYQW0TASWL58S9gDcwC yxklGv+tBJskLOApMf3bZDCbRUBV4v2DX6wgNq+Ai8Sh65+gtslJfNjzCGgBBwengKvE962s ELtcJJq2bmKdwMi7gJFhFaNEakFyQXFSeq5RXmq5XnFibnFpXrpecn7uJkZwuD+T3sF4eJf7 IUYBDkYlHt4fZakRQqyJZcWVuYcYJTiYlUR4C28DhXhTEiurUovy44tKc1KLDzGaAt01kVlK NDkfGIt5JfGGJuYm5sYGFuaWliZGSuK8jbOfhQsJpCeWpGanphakFsH0MXFwSjUwVs6ez9mQ mJW2ZwPnxK4pSjOZ+lvfNIWfD1yZNnl3jtistk+mObMT/q9aaiIxS1CL71TzHzurlJwnbQ+n anJ8mt926LXq9BX5H8xN5WsNLl//PDVZblO0bKyWfEv4gsWZDY9vyckd5dtdxvnvam9PWmeD +aQ/j3cz3LvpW63d/PxgjFlHwzc3JZbijERDLeai4kQAxgaKZo0CAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS9DaGFuZ2UgQWdlbnQ=?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTNS9TZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef X-RootMTR: 20161230041136epcas5p4719845a9e04914e91dd6dac1a5d257ef References: <1483071089-8362-1-git-send-email-cw00.choi@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161229_201201_950357_1BEB7000 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-renesas-soc@vger.kernel.org, Chanwoo Choi , chanwoo@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_set_state_sync() Cc: Kishon Vijay Abraham I Cc: Maxime Ripard Cc: Chen-Yu Tsai Signed-off-by: Chanwoo Choi Acked-by: Chen-Yu Tsai --- 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);