Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1618890ybv; Fri, 21 Feb 2020 00:24:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxT9j30uz4huTkVT1E1eCZHHtAPp8tmCaJgC+uL6Mz3H2x9oiKo0hzYdDKSMOtlt6R4YkjH X-Received: by 2002:aca:4183:: with SMTP id o125mr974177oia.125.1582273453521; Fri, 21 Feb 2020 00:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273453; cv=none; d=google.com; s=arc-20160816; b=l7fH1bbqBXuDsTP/xfdVqMiqCZUYzjv3/pTg9YT3L4FaE2PQJRAoIiIhb7lLZttOSb SvmTqs3fNY4G+Hooeag4piqt2vGMSD6BRXX9Vn5eptM8S1p/n0kVBZqXWuySg9KoWkm5 lpgdnw5bE1BnqULFkHnoXTLZ2wHHMWnaq6LZsX4oNJmUxba0vfuTokNVJ0AGuXaJ1dq5 kX8WPO1GLd2mQRxwTB+um5cBUVChjhRMQg6kNLprVcTYhpUDg5cB8qGmbv9Lh7KEa03k S7dYAnb2TUCKIUQwCVYys81GtPyiSpNo62lOOmeJAkp5D6JCH4ZqDj62CaQe+2hKTaUx nd0w== 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=X6Y/NGvsTaEMBd0zp4tFcGFQkQj/uz7cMDQJgrwrgYg=; b=eAJgRK5Qbh8EVBJJM+EwA4rLj3yobw0JDGrfRLyNJV5meerb5HrltTAhSUf5f2ZvYU 7qEkQBAjpdeHkLyor0jq3uwZCv4hu2xtVj5HWIW5J7ecY5tD5yyyQh3u09ukc4AyHTO1 Mt1w1DwDGfhSjzfjaXlH0PJu5AlsYPqll1UXRm57jr0ieNk4+dF8sEJP1a5x5poaMTn8 3CqCPGQbYsGy6VQmHNtOWmcKmvOjhRTR115dGHhmBP7vqWxU0zjimudkxHea3T7mnL92 aRPT/oDCsHfswKe4VnA86CGuw+QXJ0OU/y+tgcnhjTzoE9DYTXthyaVHwIRqcs4i+o8h nLcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PGkpiLLR; 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 u3si481718oif.167.2020.02.21.00.24.01; Fri, 21 Feb 2020 00:24:13 -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=PGkpiLLR; 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 S2388463AbgBUIXV (ORCPT + 99 others); Fri, 21 Feb 2020 03:23:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:35310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388457AbgBUIXT (ORCPT ); Fri, 21 Feb 2020 03:23:19 -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 52BA224676; Fri, 21 Feb 2020 08:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273398; bh=vI7lV6bJSwFrfUSOqObJPGooulJ3EqcRpdA8ruW/WNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PGkpiLLRN0eAB8QP55wOzXd92M+4LN33VDOoVV0QGEcqGa2YkkmmL909iYplK2Pho QoMxKIUMoIOO4d+3gbvz7iwdtshZ9qr5DBLu5Niph/7KRZDuKicnq9qeB31YHs2hL5 WKAfy3HfHpw4jFhOWUxbuDK69YPYtLY/Z5yuyYdM= 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 4.19 129/191] usb: musb: omap2430: Get rid of musb .set_vbus for omap2430 glue Date: Fri, 21 Feb 2020 08:41:42 +0100 Message-Id: <20200221072306.356901772@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@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 b1dd81fb5f55e..24e622c056383 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