Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1128999pxv; Fri, 16 Jul 2021 02:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDnq+rh+Y/mAXLclQK57aA4PirBM9Xopmryb0RAj6czYRM4cyg2eiyBIctxSjJqVfS9y90 X-Received: by 2002:a92:1944:: with SMTP id e4mr5819970ilm.186.1626426781986; Fri, 16 Jul 2021 02:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626426781; cv=none; d=google.com; s=arc-20160816; b=FOZVzM2sAtswLSH+cOAn2+mUCuydIcqf6KR58vZM/w5SzJMFLr8BNriTkNS/inhhTE qnkf74bd3Z3lx7wmbfgfcVkqh2qsp8Kjp/jKNrK8mn60MsWfeWxw2+sLneow/FRe8+J9 kdbNNMyAkUZqKN9hzo5IWA+fWxRTRgLFaq+4bsvkQ2vcf+5ivFD0m12gayajGA5mgDOb 3Jqdc2mT60u1BRAvZSlFLjttfGrmdqkUmWGPr0WH4x5mbxOEYa0HuGdNEGmMteVCxff7 V35qaGE5qSYKPgaX63AiLGSuuRcj/232qzKE7VoeFA0Avyz6Y14/+l+psvNPYm9u7+qP mlCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XxeFkpT94fzaqhSrGg614mOHSF8BqPdtoH/zJQ41EJ4=; b=SPvPhEGx1x7fvBGWFYTxZP03XPrA5ZCh6+ThfpgcFcb5YZBhisZd+kFU6IgSFRbMp+ NyKb80+clzp1ccKXv5a70RiYPPXHqnGNQnZIu8RJlg+JIV8InoyHtKP8Xb7oxdMPp2kC CeSbzsLGwAEPPiYBJHpXAFlctNdhbIrFBDztVPy5HkEiDQwTVePXpPkKC1aPjv3kSZ/h 7ZjsO+l8XKh87eyaSpXuwU9YlydmpMUqQ8gEkHqvUXPXJWToCWRQvyc29gyJywzW31pA uMdbtVnZ42wbyl5Wlb3t7UzEwx//HDrfpuWX8CreKzKPFof3aRxZMvmwX6md20KU/v1o CBSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Pq76nxvI; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si10343000iob.27.2021.07.16.02.12.49; Fri, 16 Jul 2021 02:13:01 -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=@canonical.com header.s=20210705 header.b=Pq76nxvI; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbhGPJPO (ORCPT + 99 others); Fri, 16 Jul 2021 05:15:14 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:47612 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbhGPJPN (ORCPT ); Fri, 16 Jul 2021 05:15:13 -0400 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id 78406409FA for ; Fri, 16 Jul 2021 09:12:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1626426738; bh=XxeFkpT94fzaqhSrGg614mOHSF8BqPdtoH/zJQ41EJ4=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=Pq76nxvIq2hFcvQY+SQJDr+Gvcv9UwOuE2M2EaqpYKZmLtgNIAJYn576PRI89JYjy NGt+iteD5LfyePmTfrLyW6SPPp6wA9ZcsuVbXyvgGwDLqrE3jeVmuT3r7JB+p/6MfM 9sc71ZaUdsIFFm7/41sUbUrRtR0Vokh64BFuMHhQVBlCqKqQ0DaedbNg1Tm2vuEiQ8 pTpALo5LpEelST3WddIOg88YWWcTDdQGidbomTzAzm9/415T002dadAXUrjC95S9g2 le5UEOb3rrkX1Sr24FC7GCmePLdQQ7ddgbVIlIcqP+ppyXrCAKvdbD8c/XHFWmeqan 2OAPGVO06fBXA== Received: by mail-ej1-f70.google.com with SMTP id k1-20020a17090666c1b029041c273a883dso3364827ejp.3 for ; Fri, 16 Jul 2021 02:12:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XxeFkpT94fzaqhSrGg614mOHSF8BqPdtoH/zJQ41EJ4=; b=EPx6lqF9mjLa0KEyintnLIFSZw3FX642crvnKYmFX2qFK6mxDr2wAi7FKPjGJYhRcE DR1ndYKOX3+dyPbcummavh3gTM20zzQVCNRuhL7iuksYXH7t1dgb8XxHWz5y96oI3ooW 7K4yqXQLhHRF5RLAXteNzmjJKW+NctXdAC4VFW164YkKJnoVtMRKj4xlYr1PVgT/FOa7 Vhu8+V+MQ17aMAnWdfaI6GprCQgwT++d8+nqkUFernRp7vcWiheulIj5IWALSDpMQhW8 tqUxzDq+XLE74UP/vp/m+zWom1eYibAchhD2lrnOkVsAtfLY7pWOEfh8GtkCyCpPTS8Y KfnQ== X-Gm-Message-State: AOAM532LFpa395k5NVygpWNUD2AF0yvpvfU+Hw1KG8twmGFkqa0vXw+b dylhi1LUqQkvR9QOQF4YXJIczllFlG2Vjq3ypqYlOK33Pql0JSk75k4hGlauZAJu9tm2BWyDbbG zVdsfHwykMxm7vA4QEkOMftUQNQHCk2p7tb4qUVCyjQ== X-Received: by 2002:a17:906:ecb3:: with SMTP id qh19mr2748279ejb.113.1626426738229; Fri, 16 Jul 2021 02:12:18 -0700 (PDT) X-Received: by 2002:a17:906:ecb3:: with SMTP id qh19mr2748267ejb.113.1626426738085; Fri, 16 Jul 2021 02:12:18 -0700 (PDT) Received: from [192.168.3.211] (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id d22sm2762654ejj.47.2021.07.16.02.12.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jul 2021 02:12:17 -0700 (PDT) Subject: Re: [PATCH] usb: dwc2: Skip clock gating on Samsung SoCs To: Minas Harutyunyan , Marek Szyprowski , "linux-usb@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: Felipe Balbi , Artur Petrosyan , Bartlomiej Zolnierkiewicz References: <20210716050127.4406-1-m.szyprowski@samsung.com> <6fb5313e-b2c0-7b3e-84f7-6333216f4292@synopsys.com> From: Krzysztof Kozlowski Message-ID: Date: Fri, 16 Jul 2021 11:12:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <6fb5313e-b2c0-7b3e-84f7-6333216f4292@synopsys.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/07/2021 11:07, Minas Harutyunyan wrote: > Hi Krzysztof, > > On 7/16/2021 12:10 PM, Krzysztof Kozlowski wrote: >> On 16/07/2021 07:01, Marek Szyprowski wrote: >>> Commit 0112b7ce68ea ("usb: dwc2: Update dwc2_handle_usb_suspend_intr >>> function.") changed the way the driver handles power down modes in a such >>> way that it uses clock gating when no other power down mode is available. >>> >>> This however doesn't work well on the DWC2 implementation used on the >>> Samsung SoCs. When a clock gating is enabled, system hangs. It looks that >>> the proper clock gating requires some additional glue code in the shared >>> USB2 PHY and/or Samsung glue code for the DWC2. To restore driver >>> operation on the Samsung SoCs simply skip enabling clock gating mode >>> until one finds what is really needed to make it working reliably. >>> >>> Fixes: 0112b7ce68ea ("usb: dwc2: Update dwc2_handle_usb_suspend_intr function.") >>> Signed-off-by: Marek Szyprowski >>> --- >>> drivers/usb/dwc2/core.h | 4 ++++ >>> drivers/usb/dwc2/core_intr.c | 3 ++- >>> drivers/usb/dwc2/hcd.c | 6 ++++-- >>> drivers/usb/dwc2/params.c | 1 + >>> 4 files changed, 11 insertions(+), 3 deletions(-) >>> >> >> >> Acked-by: Krzysztof Kozlowski >> > What mean your "Acked-by" tag? Do you want to mention that this commit > "Tested-by" or "Reviewed-by" by you? My "Acked-by" means exactly what Linux process defines: https://elixir.bootlin.com/linux/latest/source/Documentation/process/submitting-patches.rst#L426 Acked-by is neither Tested-by nor Reviewed-by. For the definition of these other tags, please also see link above. Best regards, Krzysztof