Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1837764imm; Thu, 19 Jul 2018 08:38:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc9gYCBmFELbhzafmm30nYIoEBmxfmbNlOBNXzFhCt/ABLfYqPeIateK0tVvVLMfFPDnzKs X-Received: by 2002:a17:902:d692:: with SMTP id v18-v6mr10767565ply.59.1532014718125; Thu, 19 Jul 2018 08:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532014718; cv=none; d=google.com; s=arc-20160816; b=HEgq/wE4DDCbcP90+380UfKabzTVHVzN+brek1LpJpSbDAkpTokLfrlsoek/bM4o07 cEsjushB2T4ApCsh6Tu+Oiram7fm8R3j9k29Wpz/EkzRzL0rMwXoAfAxe52k3C6Q2eRG MjapRdniTg9rZ1nfO73+SoyuUpkOkBftrP+Rp2G7RR5hlUerP1q+05CFVhF6VXUgaVbN C4WzvYJ41zV7klYUr++R1TVnZJjD8yPXhKd86R9DV2Ijq/OV4pTDQU2mhoLKrn8KfjuP HIza9mp82KkkbNGWgjcNRJ/kxyJZz8f3JGnd6Ri3oQTLwx4mHWz9sJzhpkJO/bmKmlDH TgGg== 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 :arc-authentication-results; bh=qLs5H+V5lzXJqHTDURgJR5YjnJ/WqxI/TVZ18ZhX9VM=; b=tsMyxD7grQ3zxsBp/4LbELaEw4FZdc+takoEzIZOIwYW/1GUfcbVidmOKpsSkS0cl/ 1D4fpzNagHHOhN0JVlb//aNI9IvR026sU/b39x71yT2niwsc5sHZU6Ew10oshhiaJwWm ACiYZ3cM36+/4k+uEqOV0fjh4Bd6bA2QPuZKCjr8cBmLzwBh/TxIX7QwMt5eT1aRQTFt JZiJPAKIlPOEmWFSpbi0nuQO2zqA9dJEYlWU9CsJzQY4NpBJa7EhkbFIn56TxnlWqlqP IUAVtsxW9FxgVH/3P+YLsDgKnSpuPq09IVdY3CtePRFTrenDCIqm2xjsU98oTcj7Nd7J hcLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NB7ZxnPj; 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 v18-v6si6209326pgl.171.2018.07.19.08.38.22; Thu, 19 Jul 2018 08:38:38 -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=NB7ZxnPj; 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 S1731984AbeGSQUx (ORCPT + 99 others); Thu, 19 Jul 2018 12:20:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:34216 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731732AbeGSQUw (ORCPT ); Thu, 19 Jul 2018 12:20:52 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w6JFb7ua099312; Thu, 19 Jul 2018 10:37:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1532014627; bh=qLs5H+V5lzXJqHTDURgJR5YjnJ/WqxI/TVZ18ZhX9VM=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=NB7ZxnPjkQsf7AV1nl0Gy5Iulzk+FPVtyphkoMjpqy5vRcJlD9BoadOxIi1W8FLAT VmP/EJsCI0J6hWdkh6F+k4ATxh4rxf4bFk5W9iTwOgMbOfnmwg9oGCe38396uKwgkh m0ZBRKdFLqT8qcuX9tQ+4We6XZ513TTPSdTWZ5Dc= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w6JFb77h026955; Thu, 19 Jul 2018 10:37:07 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 19 Jul 2018 10:37:06 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 19 Jul 2018 10:37:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w6JFb6Tl025937; Thu, 19 Jul 2018 10:37:06 -0500 Date: Thu, 19 Jul 2018 10:37:06 -0500 From: Bin Liu To: Jagan Teki CC: Greg Kroah-Hartman , , Subject: Re: [PATCH] usb: musb: Call musb_platform_exit from musb_stop Message-ID: <20180719153706.GD3949@uda0271908> Mail-Followup-To: Bin Liu , Jagan Teki , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180719101038.9465-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180719101038.9465-1-jagan@amarulasolutions.com> 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 Hi, On Thu, Jul 19, 2018 at 03:40:38PM +0530, Jagan Teki wrote: > musb stop is musb core call during unregister or shutting down > gadget or host musb. For graceful exit add musb_platform_exit > on musb_stop so-that it can exit the musb platform driver as well. Thanks for the patch. but musb_stop() is called in the .udc_stop() and host .stop() hooks, which can stop (and restart) at any time by the udc or host core, not really during unregister. musb_platform_init() is not called in .udc_start() and .start() hooks, so we shouldn't add musb_platform_exit() in musb_stop(). Regards, -Bin.