Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp488866yba; Mon, 1 Apr 2019 10:18:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNmjJR9oNtPKAE2RWQMQCDI7oWbH43Lk3dceU+O3ToeAvCKARdpt8zbEEbw0RVgCYvVhwI X-Received: by 2002:a63:3dc8:: with SMTP id k191mr45001709pga.286.1554139108419; Mon, 01 Apr 2019 10:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554139108; cv=none; d=google.com; s=arc-20160816; b=y2S7QGRyNQOW3syJfKci9OPpp4NiSo2TBV+kZUbZQxBc8WBjmEJZCj4jdW/ocJQYon +57Sm6uHm4TbQdmwzzEtIVpgaf18ryI9MmEAFINXQkNA3fBlnbMqCJvFrc6IgjYA/EIT 0QH1gl9xxWfBYo0Lb+f312W4IdGLi91CdZbuzAWCMNjR36cq0oMwznArSxfzRrv2pXIV U13dDHhJsoryiGcfm9lXfZSEvVU5RQUfBkdi0Cowh67iUac5bCOF96G9YOKhrq7iCI8O uqQm2BKgtZB5LMGcQAMIIhTgsN1HSNsy/tLFxFVpIFeTwiLYezMUTkpM/PDl0IWphWCz TFmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Hz+FzB7+XOKZvJ/ZefHXtkc3KP8cSOgTDsfAi3PyNdg=; b=g5Y38I+62Q772+rYf7xTmCzGHBzLELWBxd1uyXqJCBRErXk38gMJd9g1TS3rUTsBG+ 9ErMNnH91aYVTmAiWmi+dymtwhUEjB1xRMuzLdVHJ5UbzZdf348+++bASwiJ8LeKa9uu fCQ+fXgYagBctB8BZp3UaSb1QCOIa8JPsbQCpNFOmECPNaR4uAAKIf2d5PMFmborvddb iRcgGE0ow3tHI2obeqovOsU7jnr63Ilv/lwZ826pXp+U/VFT2ot1ZZsqhfGALoHZ8hLB aGj+X3M05tT/ZZkKCG/eVWs8F/7zBFfZW7ARX1B+uDuCJ20QKiVwM3SdyyWpC32lHqw8 LtTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y8t63eB0; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si9569518pfb.56.2019.04.01.10.18.13; Mon, 01 Apr 2019 10:18:28 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=y8t63eB0; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731205AbfDARRj (ORCPT + 99 others); Mon, 1 Apr 2019 13:17:39 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:59440 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730560AbfDARRf (ORCPT ); Mon, 1 Apr 2019 13:17:35 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x31HHQPJ006903; Mon, 1 Apr 2019 12:17:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554139046; bh=Hz+FzB7+XOKZvJ/ZefHXtkc3KP8cSOgTDsfAi3PyNdg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=y8t63eB0lF1QDLd21Qq/mzPPYU1a2Nn0xvoKw9eWrI6yKijWWWBLJMC31arF7DiU6 nLnDkPdhGyRBRufm5uSusoUsuil41sZ1Dp3ipAtPABEz0gQF/hkaKqvp0aSI6bYQQi WvgzZjDMSBWkF1/g4deOQh+KcxzrDy+vby5dlX+Y= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x31HHPIe100162 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Apr 2019 12:17:25 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Apr 2019 12:17:25 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 1 Apr 2019 12:17:25 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x31HHPe0122648; Mon, 1 Apr 2019 12:17:25 -0500 Date: Mon, 1 Apr 2019 12:17:25 -0500 From: Bin Liu To: Paul Cercueil CC: , , Subject: Re: [PATCH] usb: musb: Force-disable pullup on shutdown Message-ID: <20190401171725.GK25852@uda0271908> Mail-Followup-To: Bin Liu , Paul Cercueil , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me References: <20190321144246.3547-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190321144246.3547-1-paul@crapouillou.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 03:42:46PM +0100, Paul Cercueil wrote: > When the musb is shutdown, for instance when the driver is unloaded, > force-disable the pullup. Otherwise, the host will still see the gadget > device even after the shutdown. how would this happen? when musb-hdrc driver is unloaded, udc core removes the bound gadget driver which calls musb_gadget_pullup() to disable the pullup. Regards, -Bin.