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 121D8C77B75 for ; Tue, 18 Apr 2023 13:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbjDRN0n (ORCPT ); Tue, 18 Apr 2023 09:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231327AbjDRN0m (ORCPT ); Tue, 18 Apr 2023 09:26:42 -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 7D8B0CC29 for ; Tue, 18 Apr 2023 06:26:41 -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 0A5D5634D1 for ; Tue, 18 Apr 2023 13:26:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB6FAC433D2; Tue, 18 Apr 2023 13:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681824400; bh=PZfpFPL5Cb6HHjASlKUEf5vSiBtwn9dcDzZWZv46xCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aowBiihdTv6tdqfFz4DvezkVqy5SV9cMV7Wyb93vx1aGwaYH9JlfALeixOYqdSnbC VTBQQEOhcC/0FevZvHCFEgAa8hnLA1bMtLA1X15AgQRCsGfJXx5W1oR8Eg6poyUhcQ zUYMmjohGvMSbK4ulCA6cM8fdK53FYmCr7P9yIN8= Date: Tue, 18 Apr 2023 15:26:37 +0200 From: Greg Kroah-Hartman To: Johan Hovold , 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: <2023041813-stowing-rug-710a@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: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, Apr 18, 2023 at 03:01:39PM +0200, Johan Hovold wrote: > On Tue, Apr 18, 2023 at 05:48:35PM +0530, Udipto Goswami wrote: > > First, the subject of this patch looks wrong. > > > 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 > > I did not sign-off on this patch (and neither did Oliver I presume). > > You must never add a SoB on behalf on someone else without their > permission. Please read Documentation/process/submitting-patches.rst and > make sure you understand what SoB means before sending any further > patches. Ah, I thought so :( Udipto, please go complete the developer legal training that I know your company provides for dealing with things like this as they take it very seriously, before you resubmit this, or any other kernel patches. thanks, greg k-h