From patchwork Tue Jul 19 11:45:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 72289 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp32723qga; Tue, 19 Jul 2016 04:44:32 -0700 (PDT) X-Received: by 10.66.255.42 with SMTP id an10mr65660979pad.57.1468928671990; Tue, 19 Jul 2016 04:44:31 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si28706611pai.277.2016.07.19.04.44.31; Tue, 19 Jul 2016 04:44:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753168AbcGSLo2 (ORCPT + 5 others); Tue, 19 Jul 2016 07:44:28 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:26898 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753110AbcGSLo1 (ORCPT ); Tue, 19 Jul 2016 07:44:27 -0400 X-Greylist: delayed 683 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Jul 2016 07:44:27 EDT Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id u6JBhIkV003075; Tue, 19 Jul 2016 20:43:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u6JBhIkV003075 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1468928599; bh=nW+xgY55w8okiUZHzCRPjv3N2XDrJUnrfe4rcxt1hJM=; h=From:To:Cc:Subject:Date:From; b=V7BAaJX1Tq733UA7yQKs/DCaBMm49kkzDDwgPBtug5fK6xGhGGJdgcOAXse3Lw9Ab T0GMRRyjDHJY3FpqmyUOD3UaqnCpiOMvKH2QzYbx6MMUzcqJhYGEBfdVjuoSKWF1Da SQ5afdiokZllEum0q+Rm7ISRS/g7Gk4B1+1C+vcaJTvZHlEDPiCSQqYmiYffubyV2N 3vMRIaHDlyavv0SzJzjt867/jb+rHM6jusHHtmBH0W7jLxjeHkn2gfNPnBg1CfO3bJ KWWw5gmN+NUjemStdhTcX1pWM1DFj7Sv2SwSLfzOQhBxpf8eJBlDEcJIGj7m9n0nCb DfMutSnQlitfg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-usb@vger.kernel.org Cc: Hans de Goede , Philipp Zabel , Lee Jones , Masahiro Yamada , Greg Kroah-Hartman , Alan Stern , linux-kernel@vger.kernel.org Subject: [PATCH] usb: ohci-platform: switch over to shared reset Date: Tue, 19 Jul 2016 20:45:02 +0900 Message-Id: <1468928702-992-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The recent update in the reset subsystem requires all reset consumers to be explicit when requesting reset lines. For detail, see the log of commit 3c35f6edc09b ("reset: Reorder inline reset_control_get*() wrappers"). The devm_reset_control_get_optional() is deprecated, and falls into the _exclusive variant during the migration, but the reset control in this driver is apparently shared-tolerate. Besides, this driver is for generic platforms, so actually should be able to work with a shared reset line. Signed-off-by: Masahiro Yamada --- drivers/usb/host/ohci-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index ae1c988..57ee42d 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -198,7 +198,7 @@ static int ohci_platform_probe(struct platform_device *dev) } - priv->rst = devm_reset_control_get_optional(&dev->dev, NULL); + priv->rst = devm_reset_control_get_optional_shared(&dev->dev, NULL); if (IS_ERR(priv->rst)) { err = PTR_ERR(priv->rst); if (err == -EPROBE_DEFER)