Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3313224pxb; Sun, 29 Aug 2021 21:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPKDSYuGgQK5kxJ1koTsVdHnWFNThZnhjC8vzC/FKJtgmkAO37MmVAywSgNqAo1DPo+V1A X-Received: by 2002:a05:6638:419a:: with SMTP id az26mr18394331jab.70.1630298884122; Sun, 29 Aug 2021 21:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630298884; cv=none; d=google.com; s=arc-20160816; b=Bhg3C/lG6Gh+z7SH/gGSM0Gpp7qu+1RxEUDe0RupNFA/6mMYwzPGJhWFGGdMQmlFg/ /wkM+Ma4txfAKL0hBWzSlZWqRMA7O6c6nSMXEUrypP29DIPnL5mdzLcQGz+ZAvDjHwhN fty2L0a1D/z2Mmt+f43ti99fSi/o+MGHoleQztotDQ4rPQU29JLuKY8pekwNzkzXtoYQ uBxfdJ2LZUoCJnbOPLx2GHGxGYBKtQ6atQL8z5JxV7HS47OVowUZNtRV7AnLdBWjZmry jD6xmA6Q381chpeH/+o/j0SL+uwefAKza6tyI8YCWoYcG9sjKnpN38ryBdVKNR4C2Q2R WDEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=EzNbbLzp89C4vwZ1VHzMWl9Ex04tosDHheiya+MiwzU=; b=V3bjs4SvuoebDadxXdHQghjfbc5FyqOJqdbXri27MvCpLCPiPMLL8Z6ecm9tozExLZ Gn/XVw3gadk0pJDr6s0iVfj+1hvBIk/YQG+UCs3OXH0qvXuJKai13+g8F/8sJnPXAxix zBDON3OqawnfUf9IIBdmMLZeodDVrSuJ2rq2edzNx6CWEdQ4dMKi87BLRNoQzd4RIQ50 WMe/j41XIOkzAGYu+ZiTnC10y23TuR1mEmxcK1kSOWs+lVjBndte4N8M3OtZZzcus7X6 dB8LEhWjKlKEg7pH2J+K6IVXp4ml9vvgzWZ+09gQx9bW48pTr1RF9jsz2Jptkf7WhBja /loQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bp7P8EHL; 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 70si10522031jaj.18.2021.08.29.21.47.52; Sun, 29 Aug 2021 21:48:04 -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=Bp7P8EHL; 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 S231250AbhH3EsA (ORCPT + 99 others); Mon, 30 Aug 2021 00:48:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbhH3Er6 (ORCPT ); Mon, 30 Aug 2021 00:47:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8EDF5604D7; Mon, 30 Aug 2021 04:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630298825; bh=EzNbbLzp89C4vwZ1VHzMWl9Ex04tosDHheiya+MiwzU=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Bp7P8EHL35CXk34jRCKx/CRQ+4YsNxY0iG8ADCTlMfC/4eM7SjwV6gZo6rGy7rGgC kUzsx/F19Xdxq2bcLUExWEp5YZW/bo4+6LL02XP61rJusoKLQHLF7Pl1idiWMyCKyh B8H1lRlkJSPJYgnvc7R9udnCTKbwOwgBqx5LrN07MJlhTotLmmYH/QddQ9Znm8Bsln 6IAoYEH4NdhNEpPmuInGKme7m3dob+OIIRArrfISMjZsRl04kksdfXbsZqrKU+5y5S lUxLHFxgY1VH3RqRW+0CPPxcgh3K11tzY3PIq8UPfYMjCAmxOZ5/cfJp/O6BKoF2Gc jc970nR9qCeFg== References: <87bl63yqq8.fsf@kernel.org> <87eeaga39m.fsf@kernel.org> <7a6bf94b-91cd-15d5-dd9c-798e7a927727@codeaurora.org> User-agent: mu4e 1.6.5; 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: Mon, 30 Aug 2021 07:45:57 +0300 In-reply-to: <7a6bf94b-91cd-15d5-dd9c-798e7a927727@codeaurora.org> Message-ID: <87r1ebczei.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sandeep Maheswaram writes: > Hi, > > On 8/26/2021 4:13 PM, Felipe Balbi wrote: >> 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-ema= il-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.e= lisei@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@n= xp.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? > > Currently kexec is not supported on qcom devices.=C2=A0 Anything we can do > apart from kexec? Sure about that? I've been using kexec with 8150 for quite a while. --=20 balbi