From patchwork Tue Dec 10 01:30:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 13900603 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1B3BE7717D for ; Tue, 10 Dec 2024 01:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tezk05kE8AmMcAHijBuKLx5Qhxg/Ncxi9eIQDGVXD34=; b=RgpGuM8pkBsS+2 O6A8citOftwVIw+GIwMkAhw+2CEJs9pmb7yLcCw44lNgg3UbtyrsuX7oZJICTEfZJ7SCWjCS8UHES cuI7GnLL+o97NH2DvGurmwEva8jORa0KLU2dgc+GAUbO9eiUIZA34jxPLWd9Gu2dk+ufiJQ8DrIyv zT+BOCFTWmdm1Ns0HfeXCBamIWON07D5qHPD235GzNT0Rdh0Rrrbwk5+FODsH27RYzGlZNLwateoM Yg3JYRFIclP2MpTq1Idfz74jBsWn4kry68fm7XUitG6iYy6UsbBXfp+TZoGLLsna3OGeWwYBFkplK kNgrlmFg1lYlszQXG4BQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tKp64-00000009q92-3SwH; Tue, 10 Dec 2024 01:31:32 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tKp50-00000009pqz-1k7M; Tue, 10 Dec 2024 01:30:27 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6d8a3e99e32so40114956d6.2; Mon, 09 Dec 2024 17:30:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733794225; x=1734399025; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yLptFqAMCqePRuk20SWKFsGYRWkZDJ2kBARfQHLQM5A=; b=bADtMyJNLKlkYT8YlIHcblJ+YYTqtSc88eBjuO8dOLikEZT6jh9HZ5DFOPDdij+JYh WPBRNqOLo2OkgoW24TWnJHEbLiLlq2ynhqPf6DQl/xazg3xve5oCeng6SJuTt0h7SYL2 ZVVZ1i00nHvo7EZX31Azt4EQB1AXDeiegt3WI6MZz7JvZcsZbtqy7B4ok5S5br+0G5A1 0L5izhGQetIIemkEzIBHynoSg7Es9emHm9/liIp7JalJTlaPrC0Rq61m2KA3vHW8S7z7 /QOeHrd/pLdRzvaabMHqWMoh9UFWYVBeaYT2Zxno3z0ANF0BhPBYSn1SHP51wQK4wGW2 t7GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733794225; x=1734399025; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yLptFqAMCqePRuk20SWKFsGYRWkZDJ2kBARfQHLQM5A=; b=pBlbkUeIJnYuLBc+mNrDg/mXosJhVQ7xujveH4jUjHOVv9Q3TKX4Qnj4yHPiNBjQRZ jEWajoTXJyq2cHOTCLv4E6P7VrJ5x0fxBVcfGL4kjxpqXPIrbnXSZ9WW4worn1EbrT4D 6p/6KDM/4gXPLmp1IPMdDt3pc6Cq+v4NgeA8UbYPCfkTq8a77Mx1nMgkgzfOPpwEJV6A TGf1OK40iR77zIajKtyc+5vufwvNYX6KU2N4ndUJqsgU3dGlAt9KsPtkeEBoCNHabWP6 X0rkV+GHHYQBvIciqnwIpfy1HwTVGOyXzrwZu6u21dr/y9Al22HgbflqGPqlSmIJCJwL hK1A== X-Forwarded-Encrypted: i=1; AJvYcCXXVV0KFqHSPBQ2cOjUxZfQmva1mHIrIHtYPYoNxlq9ZVxMoHEokxbU8Al7/TPFumsv2lW0727OOQK8YV4xN2k=@lists.infradead.org, AJvYcCXeD9IesQIK+/MEpOnNCdPbftLGVgemBb9nav7CFNUipVCCJjkFMsQINnsHV0AgCHoKqIa63EjV4ufE1rmCuEdK@lists.infradead.org X-Gm-Message-State: AOJu0YycdNtB1OzfcYawtjUelEF+gBojJDT1JFn681xSXcpaVaorHDNf foMcYiaiczeRdx2YvkcByXO33TUosC6RCsaiONmteBScrq7dUzPq X-Gm-Gg: ASbGncuS70+MrFe5l/FYeXHCOJXkvANS7BEXev55tC18G/yuC8HhTiHytRrZYqsd6UQ fmK5eX7/pxuYaDP/a7xPLtYndW5ehqqCqD/w2c2cD1PQ1IA4lh6WMwh7weU1CqxGfDoaws+CyhC 3Hi3pBmuYvBohABGsaFOU74zMpqrzRDSPU1S0z98q8rteMmTi95bRA2t6LzrIk+1FjenAL96zh6 Pf/S6xDzFEP5I5CRBIxIXi0SR4Z8q7ILsrTw6PiE061OtnfZuJRneIKxb7rzCAPAQ== X-Google-Smtp-Source: AGHT+IGl94+bcjaYHpUAJtAtPKM7ozTtuuRWPzM7fSjzKBKRwV5Bk+GTu1vmg7p1bUUPpYPUkPwp+Q== X-Received: by 2002:a05:6214:e6b:b0:6d4:1dc0:2620 with SMTP id 6a1803df08f44-6d91e4465a0mr47573006d6.40.1733794224737; Mon, 09 Dec 2024 17:30:24 -0800 (PST) Received: from master-x64.sparksnet ([204.111.53.234]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d8f429a79csm36834346d6.72.2024.12.09.17.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 17:30:23 -0800 (PST) From: Peter Geis To: Heiko Stuebner Cc: Peter Geis , Alex Bee , Caesar Wang , Conor Dooley , Detlev Casanova , Diederik de Haas , Dragan Simic , Elaine Zhang , Finley Xiao , Johan Jonker , Jonas Karlman , Jonathan Cameron , Kevin Hilman , Krzysztof Kozlowski , Krzysztof Kozlowski , Levin Du , Liang Chen , Michael Turquette , Rob Herring , Stephen Boyd , Ulf Hansson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-rockchip@lists.infradead.org, shironeko Subject: [PATCH 0/6] rockchip: rk3328 fixes in preparation for usb3-phy Date: Tue, 10 Dec 2024 01:30:04 +0000 Message-Id: <20241210013010.81257-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241209_173026_450677_F1EE16E3 X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This is a series of fixes I uncovered during my work on the next generation rk3328 usb3 phy driver. The first patch fixes the error handling of the pm-domain driver. I don't expect this to break anything, but it is entirely possible some driver code makes some bad assumptions on the fact that this has been broken from the very beginning. The second patch fixes the ref_usb3otg clock parent. This was preventing correct reclocking of the usb3 phy. The third patch fixes the ethernet alias that was accidentlly readded during the rk3328-roc dtsi conversion. The fourth patch fixes a race condition between power domains and clocks being shut off during boot, which would cause an ugly splat on rk3328 during boot on recent kernels. The fifth patch corrects the rk3328-roc fixed regulators and power input map. It also cleans up the fixed regulator flags to be consistent. The sixth patch removes address aligned beats and the redundant rxpbl and txpbl flags from the rk3328-roc, which are unnecessary now. Please examine and test these as necessary, especially the pm-domain fix patch. Very Respectfully, Peter Geis Peter Geis (6): pmdomain: rockchip: fix rockchip_pd_power error handling clk: rockchip: fix wrong clk_ref_usb3otg parent for rk3328 arm64: dts: rockchip: remove ethernet alias from rk3328-roc arm64: dts: rockchip: add hevc power domain clock to rk3328 arm64: dts: rockchip: correct rk3328-roc regulator map arm64: dts: rockchip: Remove address aligned beats from rk3328-roc arch/arm64/boot/dts/rockchip/rk3328-roc.dtsi | 27 +++++++++++--------- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 + drivers/clk/rockchip/clk-rk3328.c | 2 +- drivers/pmdomain/rockchip/pm-domains.c | 8 ++++-- 4 files changed, 23 insertions(+), 15 deletions(-)