From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB15BC77B7F for ; Tue, 18 Apr 2023 12:54:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232311AbjDRMyH (ORCPT ); Tue, 18 Apr 2023 08:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232306AbjDRMx4 (ORCPT ); Tue, 18 Apr 2023 08:53:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E16714F7F for ; Tue, 18 Apr 2023 05:53:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EED296347C for ; Tue, 18 Apr 2023 12:53:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D99C4339B; Tue, 18 Apr 2023 12:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681822434; bh=CM2sExAnwfsEjvvUHWGScTZSC2ZVJtbTyg7/uo0KJ38=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1iimwit9pMjNb9ZnZ0DGDHGZHS8iJ4j+p5xPxlTy8apEZgEYXpBjjteLuHMmZIHN3 sxn0frrMu/3YuifxilA9DUueGhmFourQWjYdusIWqSBxYbfppgKMypMKWCJTFThPfY xHpo75c3K3MaQ47HJ/mPLpEmbrV8OWGS0E8b+yWU= Date: Tue, 18 Apr 2023 14:25:38 +0200 From: Greg Kroah-Hartman To: Udipto Goswami Cc: Thinh Nguyen , Pratham Pratap , Jack Pham , linux-usb@vger.kernel.org, Oliver Neukum , Johan Hovold Subject: Re: [PATCH v5] usb: dwc3: debugfs: Prevent any register access when devices Message-ID: <2023041821-oak-comrade-f859@gregkh> References: <20230418121835.17550-1-quic_ugoswami@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418121835.17550-1-quic_ugoswami@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, Apr 18, 2023 at 05:48:35PM +0530, Udipto Goswami wrote: > When the dwc3 device is runtime suspended, various required clocks would > get disabled and it is not guaranteed that access to any registers would > work. Depending on the SoC glue, a register read could be as benign as > returning 0 or be fatal enough to hang the system. > > In order to prevent such scenarios of fatal errors, make sure to resume > dwc3 then allow the function to proceed. > > Signed-off-by: Oliver Neukum > Signed-off-by: Johan Hovold Where did they sign off on this? I don't see that in the v4 thread, did I miss it somewhere? greg k-h