Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1945172ybv; Fri, 14 Feb 2020 08:39:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyV68U/iJwYpPSoRbBBYOiUSF99nr/2v6HMT+WAj/4UzC30AULkiopzUurBYArL6ajE92pL X-Received: by 2002:a54:4896:: with SMTP id r22mr2485811oic.30.1581698369412; Fri, 14 Feb 2020 08:39:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698369; cv=none; d=google.com; s=arc-20160816; b=bePI8lvQqLl1wwUz3P+X+SaCOrGUsAwUy5Gl4SIzZVtW9im6XjpoacpJxldXJkLLfc IfL9pviLVZSEEUz99p6JAhRAUOcC0K02DVb86BdxruBLuob8xd1UrPhb0WPhGjB9H+0r GBOIJnbOMHUVGR+fuN0EMytrIflYKm+QBuTRpHNLjpqdx1DgcQDkBPzGu6qVZqZTnksW sbhg+d+eMOMKTgjGPzcFzF1hCR1BCDvJeaOOzJBYoLRhhBuGahVUULi3tc4RHhWFw9ZH ZX9mUcFWuK1Ujj3am7UoMzYAs6OgtM2OqlxHUMzOhUPpzKC3uX1K5K/mg8rJl5xGtuls dNCg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tkhhwlADs83ziPJJ93yhewokCmtoCYAhS8/Q5m0+gUw=; b=qFVpxqkQ7DgB23ZPpUMmuEDEmD/dhlbYqMddXulznZ6f7Mx38P/Maxb6C+w+XxOJiY QGfgfUbIdsy57sZmkRtFe3Rmf3hwYA94plSysUwDeYQ3V5ie8Qy1tF8W/nTeY3iTROxy FaUxY6a31UN4HG83t9/2kCta4ZJ63ORALB9qu7kakskBvWsnkomi40kzwnkc25Ezw1Qo IYtyDy1bpcT0TD4SsXqX/8G7tgPP7818BtZTLzfWhy3npUbJPr4j6zTOlGmvpon7tQck p2mkFr9Nwi+CtsTE3sK0WJm9K0xfQeKtUOjqQVcVVuaKpg9TvK79exLNI5S2hqAcq/tZ 5XkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VBynMS1X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si3143428otn.53.2020.02.14.08.39.17; Fri, 14 Feb 2020 08:39:29 -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=VBynMS1X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388915AbgBNQi3 (ORCPT + 99 others); Fri, 14 Feb 2020 11:38:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:59780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405626AbgBNQX3 (ORCPT ); Fri, 14 Feb 2020 11:23:29 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A1F72477B; Fri, 14 Feb 2020 16:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697409; bh=q9B2fCZrysqb+v5XGLZAltzC00DdcE0gKtCJ9/GgzYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VBynMS1XR8dfIvMpyOCboDtNlxvWPTfpfAL504tvVl9x+Pm48Oil+RsqA1fk2krxd 8vPFo2ICEvZZry9LgRcPQp1kKOdyR/sQ8c35KerIhL5ujehPUDBY2ntf6Uq6ORDcmr bNQtHZJznO5ASaRvPRXhAbaAExbqcVa5gVAfjDM4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tony Lindgren , Pavel Machek , Bin Liu , Greg Kroah-Hartman , Sasha Levin , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 101/141] usb: musb: omap2430: Get rid of musb .set_vbus for omap2430 glue Date: Fri, 14 Feb 2020 11:20:41 -0500 Message-Id: <20200214162122.19794-101-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 e8be8e39ab8fb..457ad33f4caa8 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -388,8 +388,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