Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1635441ybv; Fri, 21 Feb 2020 00:43:36 -0800 (PST) X-Google-Smtp-Source: APXvYqx0hh0cCGybgPvP4bOgtJ5mx4YILNelcO2inAJSzajf0zeUNPNPbSIb3iYDZBfgKZpkG9/D X-Received: by 2002:a05:6830:16d8:: with SMTP id l24mr27314445otr.268.1582274616835; Fri, 21 Feb 2020 00:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582274616; cv=none; d=google.com; s=arc-20160816; b=V3J4SMVGxfudK0VhlPNuw6e4NBCYXMyxqlS3FMEAGLaIeP+ncUdVLEgci71S/n0J3E Qb1d17xv5YwMTn8YUiM9xp0GE04Dl7EvoDHkhS6uNXzyI5Yb55b414ekrfJppAq+AY95 VMduKXRlsxHEJoFwK2b1ayEBiDcoC7HUSG0gnK1QvyI0cQqxSrOWPh39epzFP+IKKd2b lJyWlFLmr0eEN5jLsDeJUju/ScL3ziqvvrWR669+eZjyOCLV2TswWFHh4ebRM12Ex8T5 +YvSj/GrBWEfb3VGiXEz86IUIDSRIVTPccGRr2+CmIaaF/G3a8hARSBdFD0+rQW56Nll C86g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RHSKAz8xtnvYd71Gvr9R5dE7Hdw3cP259UYTlx92QRE=; b=cdisciskcjwFL8me1mFjEOp6Vb1d4rfzknaW70480h/8+zUDN5gDaRasIqxmaLny7G t5NflZZGv0W4VmhkBgn374wLIm6JH2etwuaf19W0ApRXRqVogNVw9xVP2bzKTJ8Cdjij xk6Q3ph4lHj5gMBewRoXUWBiVkpLxM3mwlrJ8SyvcN1Md1YMKLWU4JGd+w4blNNQtazn l+MgVL2xbXgZs3QEvOtwpSvRbqvwRYsDcuwNWAEoiajFEVZkW5qe++IgjiJv6bOslI9q BwScAknItgA93StqL2L03hcF+6M4t4zt2kYFHGsC46q6adPrjmqYVmO1apzotw0WLFqG GVKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2sEd22wY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si1179393otq.23.2020.02.21.00.43.25; Fri, 21 Feb 2020 00:43:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2sEd22wY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729273AbgBUHzF (ORCPT + 99 others); Fri, 21 Feb 2020 02:55:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:53774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729608AbgBUHzD (ORCPT ); Fri, 21 Feb 2020 02:55:03 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B07F20801; Fri, 21 Feb 2020 07:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271702; bh=S8L5RthTJ+fg8I4Qt4oWmfh6Upifu+P+RmgF9/5QYys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2sEd22wYMQV/Bhan/PCsg7se5JXMWgOOLao4PTsK3pYP0olKZ8v795ls1XGe2wR0N lYMigMigfFlojVhQp/grM5bysPMDV5lduJKYASb8m2Pni8XLWz3QjHk+mJq25YI92O udMm/AonfYfU43IQ4hFmTyAvGIyj8Qeix1UZfcGg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pavel Machek , Tony Lindgren , Bin Liu , Sasha Levin Subject: [PATCH 5.5 265/399] usb: musb: omap2430: Get rid of musb .set_vbus for omap2430 glue Date: Fri, 21 Feb 2020 08:39:50 +0100 Message-Id: <20200221072428.097685216@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit 91b6dec32e5c25fbdbb564d1e5af23764ec17ef1 ] We currently have musb_set_vbus() called from two different paths. Mostly it gets called from the USB PHY via omap_musb_set_mailbox(), but in some cases it can get also called from musb_stage0_irq() rather via .set_vbus: (musb_set_host [musb_hdrc]) (omap2430_musb_set_vbus [omap2430]) (musb_stage0_irq [musb_hdrc]) (musb_interrupt [musb_hdrc]) (omap2430_musb_interrupt [omap2430]) This is racy and will not work with introducing generic helper functions for musb_set_host() and musb_set_peripheral(). We want to get rid of the busy loops in favor of usleep_range(). Let's just get rid of .set_vbus for omap2430 glue layer and let the PHY code handle VBUS with musb_set_vbus(). Note that in the follow-up patch we can completely remove omap2430_musb_set_vbus(), but let's do it in a separate patch as this change may actually turn out to be needed as a fix. Reported-by: Pavel Machek Acked-by: Pavel Machek Signed-off-by: Tony Lindgren Signed-off-by: Bin Liu Link: https://lore.kernel.org/r/20200115132547.364-5-b-liu@ti.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/musb/omap2430.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index a3d2fef677468..5c93226e0e20a 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -361,8 +361,6 @@ static const struct musb_platform_ops omap2430_ops = { .init = omap2430_musb_init, .exit = omap2430_musb_exit, - .set_vbus = omap2430_musb_set_vbus, - .enable = omap2430_musb_enable, .disable = omap2430_musb_disable, -- 2.20.1