From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA2324EFFD7; Mon, 28 Sep 2026 17:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790617367; cv=none; b=ryGZ2qND0RTF2weIzCoXP2Qvs7i4BLRWZrqDOnPoxoyMEZgDZ/pifXTkKlCxHA5cR6AZEV6Piw4KMv4NhBMdE32GtGAAgBlzhczsBxXpHrL0Te37n2KwsWrI8HrlKUDZ5PH4sxO1M2J8XXAqDhUJImYzXcyhN644PDgC2sxNNBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790617367; c=relaxed/simple; bh=UgHcAAifO+PHlPWDmTFaARyXgKchbIalMKJEuI385eU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rckXGCLOR3lK9VAp2GXboWjurS5zcySjD2gE8zQQI9IK+GxDUk5LH7y7jW5LJSmjQAsz45czzDBVUOWIWFPwVM21Yjg2DAm8qHVij8392En8pwWPB0ubOuclgCUXuclaQ2CuA06efnWoJuPQRxErI7zkyb0RhPUSOcyp0tzUj7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EB8i0e3+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EB8i0e3+" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7C946C2BCB3; Mon, 28 Sep 2026 17:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790617367; bh=UgHcAAifO+PHlPWDmTFaARyXgKchbIalMKJEuI385eU=; h=From:Subject:Date:To:Cc:Reply-To:From; b=EB8i0e3+Ed8JLPfEzPYn+cbwZkkTk4CzMkCh9F6dJ2SdAaV2QNzLhOuvc+upJESWt Wv63hhzvv0+ykebE4T1nUfni4uzEEYBl+7WYXmIUgYgjPG+9pZkJ0OBFKGS2aOj3NV ekycbXz3g41WjA1Xla51HdBXGlK+XztcoL7oZLTuelMxyQLMD5VLRZaHf8W3KMBgdT DUmhXyo2MSM8sRsfnXpE42uT/ktT9Qmyn+bWzATuaTNLZ2NjkeTzz8kqXvDr53kYiB dk+8V5xP/+GZPzArh2VyghmmOWDGgxNVFFi2x33HuaGDESngcrhBqrCwpFjcxPq655 Kt5i1luCAFREw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58DB3CA5FA6; Mon, 28 Sep 2026 17:42:47 +0000 (UTC) From: Fabricio Akio via B4 Relay Subject: [PATCH 0/2] clk: qcom: sdm660: keep USB across suspend, give mdss_axi_clk its parent Date: Mon, 28 Sep 2026 14:41:42 -0300 Message-Id: <20260928-sdm660-clk-fixes-v1-0-5d5bb84e3258@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDSyML3eKUXDMzA93knGzdtMyK1GJdSwvTFHPjNMsUAwtjJaC2gqJUsAR QV3QshF9cmpSVmlwCMkepthYAAAW52nQAAAA= X-Change-ID: 20260928-sdm660-clk-fixes-985d73f9d083 To: Bjorn Andersson , Abel Vesa , Stephen Boyd , Brian Masney , Jerome Brunet , Konrad Dybcio , AngeloGioacchino Del Regno , Martin Botka Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Fabricio Akio X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790617365; l=1346; i=fabricioakio@gmail.com; s=20260928; h=from:subject:message-id; bh=UgHcAAifO+PHlPWDmTFaARyXgKchbIalMKJEuI385eU=; b=oSW+5Bw6ht+5p4LJMdS/Dwc0QdWnJhTto3uB59qRWjjNWyLbnT6t1rBf8u8VA9XhT0z/1TAso /wUQA6IgrC7AmBVuUO9SH4evIaq+RPSKJxhgh5cTIlftM73kNKUF3An X-Developer-Key: i=fabricioakio@gmail.com; a=ed25519; pk=TlMUT8bPI/ZQzp2q24BIQTb2qSx/jdUTBlGEXIRCm54= X-Endpoint-Received: by B4 Relay for fabricioakio@gmail.com/20260928 with auth_id=1076 X-Original-From: Fabricio Akio Reply-To: fabricioakio@gmail.com Two independent fixes to the SDM660 clock controllers, found while bringing up the Motorola Moto X4 (payton, SDM630). The first keeps the USB GDSC in retention across system suspend, as msm8996, msm8998 and sm6375 already do. Switching it off loses the DWC3 glue's QSCRATCH configuration, and USB does not come back after resume. The second sets num_parents on mdss_axi_clk. Without it the branch is registered with no parent, reports 0 Hz, and enabling it takes no reference on axi_clk_src. Tested on a Motorola Moto X4 (XT1900-6) with the sdm660-mainline 7.2.3 tree, where its board file lives. Without the first patch the USB gadget is gone after an RTC-woken suspend; with it, it re-enumerates over repeated cycles. With the second, clk_summary shows mdss_axi_clk at 384 MHz under axi_clk_src instead of 0 Hz with no parent. Both apply unchanged to next-20260928. --- Fabricio Akio (2): clk: qcom: gcc-sdm660: Keep the USB GDSC in retention clk: qcom: mmcc-sdm660: set num_parents on mdss_axi_clk drivers/clk/qcom/gcc-sdm660.c | 3 ++- drivers/clk/qcom/mmcc-sdm660.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) --- base-commit: 6375e61c01e93e35ee7acd336a689ac1fae4b509 change-id: 20260928-sdm660-clk-fixes-985d73f9d083 Best regards, -- Fabricio Akio