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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03FD1C4332F for ; Sun, 11 Dec 2022 05:20:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5731F8530E; Sun, 11 Dec 2022 06:20:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1670736045; bh=Z4Y5seck4jWCJDXvaJiE/YavNJh6qrr0H0LoqIrI3iY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QYU59joJtfePC713U9qwI7haijeoOYLT3Cid8inyOXLs8YXHWk/lTAi98uylyMGHn iwdNgW5TLgl0S0cxKIZVLgy1WnFX8gzTkxyO7uQhoEmNqs7IAUny8etnKFp9iS7Ndi 160o/N2cz1YrIDqjWSJhMdTDFIypWxrmho2PYFQmC7CgUxcrqVVEt+v415/J1Bxhhi 8Tq4HuFwFsoqtozuzbbhtlj7uJnZeBtSuyIxSwz6DX7TBYyDwbSNHpF4DZTlFbS3YW psI+JWDdT5b2owwzC9P0ZwAsg3mWRZEqmtXU95Bt3d9FSald41AaiCRsdclhz3qm4o QEpxJxIYAFQWg== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 8D9AB85290; Sun, 11 Dec 2022 06:20:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1670736043; bh=Z4Y5seck4jWCJDXvaJiE/YavNJh6qrr0H0LoqIrI3iY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=zF3cWHX7q4BZCe5dABZfhneR+LXP3p3ESu2xb2TiZLb4sz5XZz3tq0XPh3X2Y2fli rV2E6gDtjPoh2kbT2sDoqdjOWNGH3OZUA4hdWLkhGPKvLFlnAuU1+ggCN1v7HdeEDD 8LsGZbJtoEL3CpicCx47ImScPl/rGPSlq282uIA/hIqTH1sCK9wTv7RRxJe860Ir6L UeyhvqMl138PPwsS7jvGMqmiE0fIalxRFiGVMJorTpXaWhF/FOCuwenHCdYqMypBWO ZFfIAXOAC0IQ/ORR6litCtlqWn4guDw1If30oXy13TNvF1pU/CxeW2BqPUP7pnMrBt KzTB4mprmZzZA== Message-ID: <1f0e75c7-e4f3-5332-03fa-6f08f7378b08@denx.de> Date: Sun, 11 Dec 2022 06:20:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v4 2/2] arm: rk3399: usb2phy: phy-rockchip-inno-usb2.c: Implement operations for the 480MHz usb2phy clock in rk3399. Content-Language: en-US To: Xavier Drudis Ferran , u-boot@lists.denx.de Cc: Simon Glass , Philipp Tomsich , Kever Yang , Lukasz Majewski , Sean Anderson References: From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 12/9/22 16:47, Xavier Drudis Ferran wrote: > This clock has no users but appears in a phandle list used by > ehci-generic.c to bulk enable it. The phandle list comes from linux, > where it is needed for suspend/resume to work [1]. > > My tests give the same results with or without this patch, but Marek > Vasut found it weird to declare an empty clk_ops[2]. > > So I adapted the code from linux 6.1-rc8 so that it hopefully works > if it ever has some user. For now, without real users, it seems to > at least not give any errors. You might want to squash 1/2 and 2/2 together, since it's one change (add clock operations to a phy driver). Since 1/2 works without any clock operations, who does enable these usb clock on this SoC ? Is there any driver or platform code for that ? If so, you can drop that platform code with this driver-side implementation in place (which is nice). btw I am still hoping some of the rockchip people will have a look at this series.