Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp310785pxb; Thu, 26 Aug 2021 03:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiceeaan+ClD5AyKPqooFchLW376zfPGMqCKI6CHZx71YDu87guG5vjWi/UXR3qs5xzxHO X-Received: by 2002:a02:cd89:: with SMTP id l9mr2907172jap.29.1629975123923; Thu, 26 Aug 2021 03:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629975123; cv=none; d=google.com; s=arc-20160816; b=gXdNNPyvLkjGpw0KLmXODDE6Btx+HILcXh3hUwTug/01ncH9te2IGxTxfYR7TaDaYr GqRZ0mqQA2UkBGe2XUHu3mmI73lSHSCL1r05ujPOSh3OTNBRlvMXP6fgOKZkWos3oQGU IgM6m+zHFpDFSp18RiRbBEVG6qGT41xad/my0sr/FPpgy7Iw0+5wYvKU3HmsZFnC6rbX zGzS0N8x5Li4uFa69/nFa5lVLKMbvNiIvxsCh5eq77mhT2GAqWoTEKVLNFvNs98YjU1g rCMan9SBnfH2bySTwE0Kis2VRSLXKf/wx3RU+4xnPoFyGXJkWu4Tl1RJPoga1Ughu382 xC1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=5ykydxGN+v4mHAnMHYl9GD91WpT7I6V/uwCqPF39ouA=; b=ZLr5vWGBrPBk9Y95elt0GD7yMidBEQ0fYP356migyIi7hIsf+92aVZbAgOHhmM2wXH S27dKvpaQO2oBS7MzXyJhc2mpeoQGN1AU0uCtYeE6smXHVoBQf8Q5AgpxgNnASsJBWJ5 uvXzpyvFL5EQFVL6Y2BOiXbBqJbtplFpjP87sVBKsSWRtdIMF/2Tylv2K18lsGq0EwjH H826mku26H5AjWLQyFNqbKTuaJotg9tQyFxI+cN0PN2zsVTw2U93C7x0g7QvRRHz1vHz gGd0RdWjXxYGJCxWhkcbEYwl0Cjl7i695LxP5ZGDLjw68+A/FTMeezRyp7Fwp0TcPLtC Uygw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="emO/LkNm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j10si2472015jat.46.2021.08.26.03.51.52; Thu, 26 Aug 2021 03:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="emO/LkNm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241704AbhHZKvV (ORCPT + 99 others); Thu, 26 Aug 2021 06:51:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:51640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234327AbhHZKvV (ORCPT ); Thu, 26 Aug 2021 06:51:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E19E6606A5; Thu, 26 Aug 2021 10:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629975034; bh=09c1tjsSoixex+O8jJiLxYsaqmIjwNXlEeH57q+wSKc=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=emO/LkNmsXwHX5hq2482q5F0m3lzEBYK0pcn/gIzx9OBMS85D6rNFOLCyuOUEtRjj drl6KaTXQBWVwcJwZ1WErXWbJYazv/h4zATFt2q/7p1/Mf7vN9hVAhr4B2hIi4FnIh P7K9b9e+XpsdxD9ci7LGQa/+v4wpIP4x4YRjnNgAlROUekKaAcNFruUa8adV3YLqzQ d2r/WE9t9NhoHoqnTmGmJdsgps4K9k7jthRX5psJIP+2v/4sEw8wMUPvlVInQGPR2C XZWTUh4KwJqzaC/yU+sKErvZ2Nm9hywqFi4GcCczEKMEZZNn0GxwAVXpMzJ9oQ7T4I HrfSAEPm/Ud/g== References: <87bl63yqq8.fsf@kernel.org> User-agent: mu4e 1.6.4; emacs 27.2 From: Felipe Balbi To: Sandeep Maheswaram Cc: Greg Kroah-Hartman , Mathias Nyman , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Pratham Pratap , Jack Pham , Stephen Boyd , Matthias Kaehlcke , Doug Anderson Subject: Re: Regarding usb dwc3 core shutdown callback Date: Thu, 26 Aug 2021 13:43:11 +0300 In-reply-to: Message-ID: <87eeaga39m.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sandeep Maheswaram writes: >> (why isn't this email plain/text? Content Type was set to multipart >> alternative, please configure your email client correctly :-) >> >> While at that, also make sure to break lines at 80-columns) >> >> Sandeep Maheswaram writes: >>> Hi, >>> >>> Earlier I have posted the patch for usb dwc3 core shutdown callback >>> >>> https://lore.kernel.org/linux-arm-msm/1618380209-20114-1-git-send-email-sanm@codeaurora.org/ >>> >>> and it was reverted due to issues. >> Right, as should be expected when we find regressions >> >>> https://lore.kernel.org/linux-usb/20210603151742.298243-1-alexandru.elisei@arm.com/ >>> >>> As we already have shutdown callback in xhci plat driver where we halt >>> the controller, so there will be no transactions with usb devices. >>> >>> https://lore.kernel.org/linux-usb/20200306092328.41253-1-ran.wang_1@nxp.com/ >>> >>> So I think dwc3 core shutdown may not be required at least when we are >>> using host mode. Let me know your opinion about this. >> If that's the case, then sure. Please validate the condition, though, >> and kindly report back on your findings > > I have enabled couple of logs in shutdown path and see no URBs > enqueued after xhci shut down. > > Hope this is enough for validation . Please suggest if anything more I > could do. how about writing a little script to kexec into another kernel for a few hundred iterations and make sure things still work after all that? -- balbi