From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 577DE3D349F for ; Thu, 7 May 2026 22:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778194216; cv=none; b=NIPuyWdlG9ucShA0MY7+mYrKpXs6akPPwjA3VqwwLfD5z1fMWKxAe5WSrVTeGLktJ+FSwHQSSbk5n0NfviovpBslp8m1BOliU4ytOizT8NfScVrSb5d5IvexPwC2kyfxj7GqspN1QkJdRsWBwjUmMoqOzjxGKSBH5Hy5RHLeo8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778194216; c=relaxed/simple; bh=d6sTldzr20rxqyeexiCHog1RigxMQcbtDegyP5w3YpA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u9OWlUhXdNYttNtCZA+QZBde3nw8OnVnU1oMbHUkRW1sjnbMVPhQ17A8PrdFv9UFYiUxKe8+ZNurcz9yW6UbazDlTTscknwBAizxtr37bnE/ihhf3Rva5qWGxW5faRc7ic1tryPEfi3D2TUj5Ncwfzazdbr58mv9banAWVFzNlU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=mi5j+ZlJ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ArQpPrT2; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="mi5j+ZlJ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ArQpPrT2" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 647JrWfw2199585 for ; Thu, 7 May 2026 22:50:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= dQvxefKofl/MWew8drQPijHpKnkbQHmoKvevMGmHYPQ=; b=mi5j+ZlJdbfKBhd1 Y6dLOtI2uozcHYMzVfe/0bwdeUBpGEvTuBh1uFUtEEdXlr0kkxbSjrZ0MbxG/Wc/ 2WiCDHULMGVuZe9n6J+HPk+eD1WZ4ycoo3v5d/bGEpJAmQbITKQb4hfRUYsrvfWA WYSkjH+OMJNTAfz/V5sjF1flMIS66yv1a06AWW5tTeimaa7FbUZxhubAmwWBbisq BEC8Xhipbp2t50SYtGzCtcJ/JgzuG8mF5ZFoPcW+2KPBYcJqaRl9zAhKnz5hUk3P Bq64Mit6uPyOUgzklRt6mkfNf6O7U+jDAzXrzMIStmfqAH+79bnQKQsd5g+D6Zz2 UPJlZQ== Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e119sgg66-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 07 May 2026 22:50:14 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-95cfcad1f82so1077402241.2 for ; Thu, 07 May 2026 15:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778194214; x=1778799014; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dQvxefKofl/MWew8drQPijHpKnkbQHmoKvevMGmHYPQ=; b=ArQpPrT2oMGZeCYJKXVyrIkUPhB6yI7Qm/Sze8dFw7bFuc/7albtp+Sj2JtJgjVhSJ FKTdh/ouj9RcIL/x95DsDVTNgRW6H+NO11ZVGfHwNC5NEheAqxxico7ws9SsL7/OzJAW xglhmxEgxuq2xu3WwhSOJk5BEEM9OV96yxQQ3nAKRBUNWpNgccWTjnVPsAwhQ02HKgjV P/koEXgJ28DdCVQYBUkUHl/sQuBGbnTfB1I8NDXOXjqNqDbz0RqlHqkKG4L6PsVoYoWP V1Ef8bxPL+3T+4jgxGAu6pZG+N+MzBJG3HM6wuP8CvXtGlLgaY3Tv+A/+ugJqsUQxHBE VfLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778194214; x=1778799014; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dQvxefKofl/MWew8drQPijHpKnkbQHmoKvevMGmHYPQ=; b=E0WJhZkxQQ+jnIPBOt53ZNSgwRmayCzRGn8XNk1dsIiWk7HFD0KTMKwma6XbgH4aSS GWsrWqszbg+auxquqs3hC5Mp2xM99v94h8VMTTHpRWdThCoX78WOMP1g8YjLjrsLO7G6 WuRGFigawvWHzh5bQUiZBOkVeMy8ulmq/vxerYsPCAk3UaZdx7Yp8j1yvC1ycrSHEQKS JxTV8vVClZ3F8eiGQ6PC53ze7Ls6DpvZAqFZPzlaOtb1eU+X35iVkmWdb6HKR7baSoVg 4a2noI82K9Rim3zURspCG96bx5uF6Cjbl2XOcFzpLOirNbWem7XaXPVDxGfTzoJOvJT9 4LOQ== X-Forwarded-Encrypted: i=1; AFNElJ9/QOYrO+dm78r1pHyGZ2NMdEUASgZmCz+bqS9gFbrpY3gT0DrApMlqCKVnweBtIfB+NOc/9Asi+O96b24=@vger.kernel.org X-Gm-Message-State: AOJu0YwNvAv7srPwX5b4m9KM3AUv3eo+ySDf6u9Hmm34YsSxYTZgjNkm /qA4ky/I6eLBx0vhryJN7ytHTFaCO3NLZe7L1v9WjCP9wc03UrWaFUgznMcgCeA38k1zSdltXjQ 3CyoWT7aidy7O9tkiZhxrkmNTLwBaWjBWGIVQtV16GjwTeeq+LjY+KnRmtlGnY6Uhg7c= X-Gm-Gg: AeBDievF06Bw3Oh6pyTyYUvKuM+MIvgkE4VhG/lc3udUprsrHPUSDsJgUFAHkCKpcZU 1sok7yJ1UwcZbaPzSUMQ6HOpihmjwGfYWj6wblXrNIQ8czPGQSHfJXLlsHplxkpoJNVzLUTc8qC QUuTtt9+NxUukcFusX5ASKYAy+mFdbkQkD7i3NiA/HrUA+FR4OFWRWXXjXuANyoL2gotxCAt6Bq LPGcpmyXZaJfhCVr3tBIzwtvkPQwPIpc/fubWb5iW7pLeSl6QimuqFxYV0ImcO+jBusoqOzk4uc wKGbwteaH2+1c8MPLkaX9pybWpIV6aQHv2NQDHnkqte6TkGuvdrXLvk0ykYjgJ9HXeWdwX0nr4/ VxZfkyUTdB0pQz6C1MMw5lOH0IM1ihuBz/Oxm2SSLnERGlLqS1741toJiGIV59RCz0E1z2f+fCr aomr+cxu29/ukuTKeI X-Received: by 2002:a05:6102:b01:b0:631:3b92:9dcc with SMTP id ada2fe7eead31-6313b92aa4emr424417137.27.1778194213788; Thu, 07 May 2026 15:50:13 -0700 (PDT) X-Received: by 2002:a05:6102:b01:b0:631:3b92:9dcc with SMTP id ada2fe7eead31-6313b92aa4emr424408137.27.1778194213371; Thu, 07 May 2026 15:50:13 -0700 (PDT) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com ([2a01:e0a:830:450:b16a:3475:ec42:bcfa]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bcac4359dbesm102466b.48.2026.05.07.15.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 15:50:12 -0700 (PDT) From: Loic Poulain Date: Fri, 08 May 2026 00:49:18 +0200 Subject: [PATCH v3 03/15] media: qcom: camss: Drop top_ahb/axi from QCM2290 subdevice clocks 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 Message-Id: <20260508-camss-isp-ope-v3-3-bb1055274603@oss.qualcomm.com> References: <20260508-camss-isp-ope-v3-0-bb1055274603@oss.qualcomm.com> In-Reply-To: <20260508-camss-isp-ope-v3-0-bb1055274603@oss.qualcomm.com> To: Bryan O'Donoghue , Vladimir Zapolskiy , Loic Poulain , Mauro Carvalho Chehab , Kees Cook , "Gustavo A. R. Silva" , Bryan O'Donoghue , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, devicetree@vger.kernel.org, laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com, johannes.goede@oss.qualcomm.com X-Mailer: b4 0.14.2 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTA3MDIzMSBTYWx0ZWRfX+lWGe0xUfwXK D8WF/v4SJealUaV93b/oK2VbbZkxi6Z2mcakfwcyfrj03QAberTzPRbomkdzZulHn9IPWL2bcS2 Da3gEknQAQq0Z4cKo0OOJ3dkuVGTkh1wBTfMm0UzhIg8LEdHWT3PTADx/hV5fbDOMWv/Zacgaju i3ScqpCkNlQYvLQONdqrVX+8DvS/dkL603gosmGbCbC8/EYiYx4ppAFTH3QCxX2FAuPs70ygMXC 0q4iuCZTRxfFG1K5h9e8IbcZ2ZwKfZS2cRUY58BJQrbFkN+lxcyEomy1Jay47VMbGQWYU6B3sKE uSym2SmOgS554ORbjhn9PyWQzBXeBI/3H5CzjRJv9niqTihzHBOXs79gUunqe32iUf2nNAOOwXo uLuk4hAHcmLEskwO0Z2YU22+DB8uhKPQ5z+ynCiBYsW5oHQoS/hAbhhNSNkCilFrn5KTJOH3bCD 6/q8PMBJ/PzU4FKXLkQ== X-Proofpoint-ORIG-GUID: qTz_HWnBzJWPuSnm_UfIr7LEiSIWfxNt X-Proofpoint-GUID: qTz_HWnBzJWPuSnm_UfIr7LEiSIWfxNt X-Authority-Analysis: v=2.4 cv=Dd4nbPtW c=1 sm=1 tr=0 ts=69fd1726 cx=c_pps a=KB4UBwrhAZV1kjiGHFQexw==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=yFrQIQtVvbDJ7NVWecMA:9 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-07_02,2026-05-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 impostorscore=0 phishscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605070231 Remove the top_ahb/axi clocks from QCM2290 subdevice clock lists. These clocks are now handled centrally as a global CAMSS PM clock and are automatically enabled when any CAMSS child is active. This avoids redundant clock references in individual subdevices and ensures consistent clock management across the CAMSS pipeline. Signed-off-by: Loic Poulain --- drivers/media/platform/qcom/camss/camss.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c index 3bde26c4750ea932ea69fdbf5c5da9f959e5e5e2..0ceab12d573ee7521d44b77d23ee563930d6aac3 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -663,9 +663,8 @@ static const struct camss_subdev_resources csiphy_res_2290[] = { /* CSIPHY0 */ { .regulators = { "vdd-csiphy-1p2", "vdd-csiphy-1p8" }, - .clock = { "top_ahb", "ahb", "csiphy0", "csiphy0_timer" }, + .clock = { "ahb", "csiphy0", "csiphy0_timer" }, .clock_rate = { { 0 }, - { 0 }, { 240000000, 341330000, 384000000 }, { 100000000, 200000000, 268800000 } }, .reg = { "csiphy0" }, @@ -680,9 +679,8 @@ static const struct camss_subdev_resources csiphy_res_2290[] = { /* CSIPHY1 */ { .regulators = { "vdd-csiphy-1p2", "vdd-csiphy-1p8" }, - .clock = { "top_ahb", "ahb", "csiphy1", "csiphy1_timer" }, + .clock = { "ahb", "csiphy1", "csiphy1_timer" }, .clock_rate = { { 0 }, - { 0 }, { 240000000, 341330000, 384000000 }, { 100000000, 200000000, 268800000 } }, .reg = { "csiphy1" }, @@ -699,9 +697,8 @@ static const struct camss_subdev_resources csid_res_2290[] = { /* CSID0 */ { .regulators = {}, - .clock = { "top_ahb", "ahb", "csi0", "vfe0_cphy_rx", "vfe0" }, + .clock = { "ahb", "csi0", "vfe0_cphy_rx", "vfe0" }, .clock_rate = { { 0 }, - { 0 }, { 192000000, 240000000, 384000000, 426400000 }, { 0 }, { 0 } }, @@ -717,9 +714,8 @@ static const struct camss_subdev_resources csid_res_2290[] = { /* CSID1 */ { .regulators = {}, - .clock = { "top_ahb", "ahb", "csi1", "vfe1_cphy_rx", "vfe1" }, - .clock_rate = { { 0 }, - { 0 }, + .clock = { "ahb", "csi1", "vfe1_cphy_rx", "vfe1" }, + .clock_rate = { { 0 }, { 192000000, 240000000, 384000000, 426400000 }, { 0 }, { 0 } }, @@ -737,10 +733,8 @@ static const struct camss_subdev_resources vfe_res_2290[] = { /* VFE0 */ { .regulators = {}, - .clock = { "top_ahb", "ahb", "axi", "vfe0", "camnoc_rt_axi", "camnoc_nrt_axi" }, + .clock = { "ahb", "vfe0", "camnoc_rt_axi", "camnoc_nrt_axi" }, .clock_rate = { { 0 }, - { 0 }, - { 0 }, { 19200000, 153600000, 192000000, 256000000, 384000000, 460800000 }, { 0 }, { 0 }, }, @@ -757,10 +751,8 @@ static const struct camss_subdev_resources vfe_res_2290[] = { /* VFE1 */ { .regulators = {}, - .clock = { "top_ahb", "ahb", "axi", "vfe1", "camnoc_rt_axi", "camnoc_nrt_axi" }, + .clock = { "ahb", "vfe1", "camnoc_rt_axi", "camnoc_nrt_axi" }, .clock_rate = { { 0 }, - { 0 }, - { 0 }, { 19200000, 153600000, 192000000, 256000000, 384000000, 460800000 }, { 0 }, { 0 }, }, -- 2.34.1