From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795755445; b=b2B0QK2scuhvsIEkIvZ8yZsQ1IDJ5nCUQ2ZZjqJecodI1MeN8EWgFO3R8+wBBPZxljvf 5/tOsPoqh5JmkAspUO1USGoU4WmvNHcjr49eYv/pMgZ4BRMLoHgthNlbTvda7gS9ubT+e CIThiocDL0Iv1EgBhDuVVkDVqM67c3KWWHlOWBZOMzlMeSd+VH8mgscihooT5kudvbIt7 aRtuEHtU26V2da9eMWFge7XCurO73FZceFNPtH2PEe++AyIvTh3v8WbvWuUs4AJndLtbX 9Pydi3PyS22rORFQ5l0xRmf5lIachTAylJJHpEfHDbeLjFkeaLr2jGlANp8b0Tp+x6w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795755445; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=uaerF5GYfxUofLkoNjb0f+t6pkLErAZHu2T58vS20sA=; b=FN6BCnxQVDC5XcUR7ZDdrI2+uOBFUC/qq7jaQWRXZI8mSYpXcVue0wYjNrZjiZSvX6tW 1i+UELPrPLvC5Yfy7YZ3rcgsblgA9krmxgDWDxFLWTUMgZesy8FR7DsyNQdiuSW6N1wvD NjuUYM2xVM9HmEXxEMcKfRWqNhU/lZfElQjXAHGafYDr2yqKKFsDLWrt0BGbQRrSssCAG o9fWMkYs9RTWw0XNtdM7/6lu+CXm2xCHD5ZiyZSu8+5bKmicjneq30cDCTF3C3gRsYkvc xXMEfTAkRDGr5aAvI6pVB19pRrvJSJzSGsEiDIiKIgK01ruXisfHbxhjjivP7xv/9nA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b="S6IeXs/p"; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=QjXVd2TF; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D447606A327 for ; Fri, 27 Nov 2026 04:57:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D447606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=S6IeXs/p; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=QjXVd2TF Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AQJwDTs3864425 for ; Fri, 27 Nov 2026 04:57:23 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= uaerF5GYfxUofLkoNjb0f+t6pkLErAZHu2T58vS20sA=; b=S6IeXs/pSUBYaqQu FwD2R9cR2UKQKmgvl/YB+crrny/HAA7AOkgtpsyhxTNx8BPCr5qak8SXK57tCBts OAmG4NJp6+keeZIUBHTII8syQtY/kNHIdsdi1UIDJ0ycXI5YXKtqUSR6g3qfsMNp Sd/QDhpMohM4svwcdN8C2dtgbjwf/5lPd5H8YNw1ZfEtuNh2nF/5Q+riE/P0Ka94 M/iOWHE6d2cy4Q41eBlcJbIB3+SgdCyNLC+0WTN/a/2Ac7tdHN9stQTxdzAWqkdX Jqv1guP4eEqiCzlH5uz0qACWYnH3qOZ/p/eQ+lLwN8TZIQHbLiH4YAyDxT3MR69x dVo5PA== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j6u55s7bp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 27 Nov 2026 04:57:23 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-544019b1831so150333131cf.0 for ; Thu, 26 Nov 2026 20:57:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795755442; x=1796360242; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc:to:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to:content-type; bh=uaerF5GYfxUofLkoNjb0f+t6pkLErAZHu2T58vS20sA=; b=QjXVd2TFdIU92y3x7EqElBSjLFz3BPolXLxLOryHDGf+JPY2BkaazV/COGKjFKWNNo O0hi4KC5muqg47YGUpVtuGvKgkWNt77P4wIf7GFr00b4FiNygJIa/BXlnVcFm13+iAT8 6nYQHiNUCUER3bSw0rEgthlCyXBX0ANke7V/WteU+XU1UW1A83gv+kGCV94D/Qck+cfm 978Ajuppl+yjzadYVAO+ZODeD2kg08jpCtObTowyb57xiogL0C8WYamd3OsKSgWuyFpc BArM5iVkp1hui4JIACF5g9Jpjcb0gJHlMdqwth/oKl7clL3jSmaChUd4ibCyWZXF9iZJ gg4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795755442; x=1796360242; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc:to:subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uaerF5GYfxUofLkoNjb0f+t6pkLErAZHu2T58vS20sA=; b=t66UtuAqscuqmwzde96y9psEvkOcuoiLhtx7z0UuJ2SpfMkFxEjZ2VKoIl7yCKsDzr lcUZVOKNVb6XI//70r/wjkJwQAnrm6ouafWhuY4bcqiAQThod7GY4vevRUC5OBSp7BdS CN6khde7rDguzpiLUacVOmKIyP+O/xMTnJCVqbnSZ2eUt8cmfhRYKTA5xsdrCMcMhCew g5o0FJNr2u8Rd5ybDZvs1OvRyq2apfmj+4obVtYlSEEmnRzK9Lpg7RYb3d0gMHC+HXAj 0PJXzw+VY7qm18IjM3S02IA85Ts+hxUQzvk6nfTGQJyhKZHfF2xta0+tn961hD8o1UFW /cFg== X-Forwarded-Encrypted: i=1; AL+hErGOlEivbD0Vg0MWABOlCg0ZHmfRxuoYxUrrWRRcAWQVYfkMN67ijLUrrnnR5t5BzLEsZr4EpCtBmm6GIuI=@vger.kernel.org X-Gm-Message-State: APuU4Z/cMc4Ba+L6Hmle0tb3BL72Pc6mIbZNY9lBHMxoacZfZN0EPHjs 2EBg4jkOEJcMKFPS+S9Px/r1ZIGkMRP17E+tzAVXFZG66usXSLQ/Y5ulPBWey3gMGegpXbISpqg m95puU/ucT1Z/NgqW6mX0PHggx+uVikV8WlUOvReXdBSDzmvZ46sds0Ig3dJGTpeNBe4= X-Gm-Gg: AZFdTZe4SNjSftPtYm7sGbcm55pQJ0Mu533iK/NisFdCfedPWF6o2wsUPNwDMQ0jGN+ +OzvYctUsAuo84BeHnSidjpQVfJhLxKoQJMceZ/1/FazktvSA28W8lkgSxPNBmhFGOEtG/UBgW8 nHHfbBNrlw7Olnwh7U7oUrBu1LrcbRPQHWAPtOegikWnKswIvkJnFya6AjgKShAPJPu/uQidHkA cJz/kbG/2YAa3G922ZlFFFwC5TnmUV/QFBA72/4a3Rlz26ussgkYQa0HKzTrwcXM/tECfvuZPxL vr3YoSKeGXLKqGbU70ypoKN5QRMFuJzySc/xDly7JfGuZAFGD1qlIwAS5H/x3H2Q4AGkW5vyJBO 8af+mD6h3tvUeUbyufQqzA0xmy+hhWojAcx8PvozO/Q1kKKpHTTHXf6JkNtSZsY21aB6dscscmj jfsdWzQlipBiBHpFQokzu4tjBWgEl2fZngGTXb X-Received: by 2002:a05:622a:580e:b0:53e:35dc:9bd2 with SMTP id d75a77b69052e-55d76b30ea1mr381983311cf.66.1795755441683; Thu, 26 Nov 2026 20:57:21 -0800 (PST) X-Received: by 2002:a05:622a:580e:b0:53e:35dc:9bd2 with SMTP id d75a77b69052e-55d76b30ea1mr381983011cf.66.1795755441154; Thu, 26 Nov 2026 20:57:21 -0800 (PST) Received: from [10.111.164.147] (Global_NAT1_IAD_FW.qualcomm.com. [129.46.232.65]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-55dc8895b8bsm21379401cf.10.2026.11.26.20.57.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2026 20:57:20 -0800 (PST) Message-ID: <3d104bb0-dee1-4374-9d2c-ddaedd414f4f@oss.qualcomm.com> Date: Fri, 27 Nov 2026 12:57:15 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] media: qcom: camss: Two routing fixes To: bryan.odonoghue@linaro.org, Vladimir Zapolskiy , Loic Poulain , Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Gjorgji Rosikopulos References: <20261127-camss-routing-fixes-v2-0-b7152f0af49a@kernel.org> From: Wenmeng Liu In-Reply-To: <20261127-camss-routing-fixes-v2-0-b7152f0af49a@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI3MDAxOSBTYWx0ZWRfX8WnM4oRBHFXV F4bFgWuezGMqRBEnQ0nOkYW1jnWcD/2KgjE8KDZGm+sec+maql06KG1WynFFuUc4pSkNV4q2NU7 JF9Q0xhNPbtelgNhoPCilk1cvBsHybc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI3MDAxOSBTYWx0ZWRfX/mToPmjkZi+U iK3f4sxYlQnTkIojoyC13IgtbIvD8xvmT/cpTCwWrtFzvQdyZX5NDWgwwVX97QDSeQ86t3I7THU 52VwVPc3BtKjUILoiN4DXjmK6mtLxNivV8Xl771OCoySFpaHGwO/bi1M5udzsbYZ/xUZlAidk6b 1mJCbzMz4qZuscHeqtKKaRkVoSXZ5bnJv9W468gkI7kcRxs+SbpmgUnfnt4d27ctcsjt+IXSzNk 7ZvwrP3uXCKWsDceKnYL6AqKz3Vp4105dFH4YNKk5tZnaKEvbeCNGYcWE7p6Cdeelm+n2/xXxse ZJ952WFbXQ81aJGQ3jVexuyRKuTURx4xzF8qs3OxHFb7yAJq5Wtz22JQrptOmvmB1uAWhUWpgU/ 5CjJnLsw9VOW2vEN/CMcvBGxuqiW5VEcqo/cRVeZ5Z88RybbzEUzfWSuaDK9dLQX7ZmFFaLyB6z nr15d5waWsfaTl3u4xQ== X-Proofpoint-ORIG-GUID: mywG97SEn8JLKl1mycw-8azMnKzaf1lQ X-Authority-Analysis: v=2.4 cv=Z795j3RA c=1 sm=1 tr=0 ts=6b090db3 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=C3Dk8TwHQYyIj7nOf9RCJw==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=bC-a23v3AAAA:8 a=VwQbUJbxAAAA:8 a=e5mUnYsNAAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=NqBOXpl7M472BNfDCCEA:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 a=FO4_E8m0qiDe52t0p3_H:22 a=Vxmtnl_E_bksehYqCbjh:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: mywG97SEn8JLKl1mycw-8azMnKzaf1lQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-26_05,2026-11-26_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611270019 On 11/27/2026 12:15 PM, bryan.odonoghue@linaro.org wrote: > v2: > > I reviewed-by and then wasn't very happy with adding a new field > to CSID resources hw_id because this means we would have two > identifiers despite already using csid->id to mean index and hwid. > > Bite the bullet and make the conversion. > > This is the way - bod. > > - Adds a precursor patch which provides a .id in place of CSID. > > - Converts from using csid->id as both hardware identifier and index > Instead helper functions make clear and explicit do you mean csid_index() > or csid_hwid(). > > Several callsites need to be updated to make this happen, but that's > life. I'm a big fan of patch granularity however the differentiation > between index and hardware id must be done simultaneously. > > Follows the precedent of csiphy.id - bod, Wengmeng > > - Straight drop of CSID2 retained. This is the right thing to do, CSID2 is > useless dead silicon, already RB by several community members. > > - Link to v1: https://patch.msgid.link/20261122-camss-routing-fixes-v1-0-0deeeaca2622@kernel.org > > - Applies to camss-next from > https://gitlab.freedesktop.org/linux-media/users/bodonoghue.git > > v1: > > This series lands late-enough in the kernel cycle and applies against the > camss-next branch staging to linux-media/next. > > Link: https://gitlab.freedesktop.org/linux-media/users/bodonoghue/-/tree/camss-next > > First up a patch drops the declaration of CSID2 from x1e/Hamoa since this > CSID doesn't have a corresponding VFE it is entirely useless and violates > our 1:1 mapping between VFE and CSID. Since CSID2 routes nowhere there's no > reason to keep it around. > > Second is a fix for a longstanding error in CAMSS which as stemmed from > the original development of post ISPIF devices. These devices have a 1:1 > mapping between CSID and VFE so the mapping we have given to user-space > which declares each CSID as connecting to each VFE is just plain wrong on > these devices and has always been. > > So the second patch addresses that longstanding issue but, I've been > holding off on fixing this for a while since I believed it might require > extensive surgery, but in the end its quite simple to do. > > Finally the third patch is a tidy-up patch which inverts our current logic > of continuously adding new elements to the src_pad_code switch for new SoCs > filtering those SoCs down to a default: statement. In fact is is the old > SoCs which are the exceptional case so, just do the switch for the old and > the default for the new. > > To: Bryan O'Donoghue > To: Vladimir Zapolskiy > To: Loic Poulain > To: Mauro Carvalho Chehab > To: Hans Verkuil > Cc: linux-media@vger.kernel.org > Cc: linux-arm-msm@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Bryan O'Donoghue > > --- > Bryan O'Donoghue (3): > media: qcom: camss: csid: Add and enumerate an id field for CSID entries > media: qcom: camss: csid: Stop using csid->id as both index and identifier > media: qcom: camss: x1e80100: Fix CSID2 routing to nowhere > > .../media/platform/qcom/camss/camss-csid-1080.c | 2 +- > drivers/media/platform/qcom/camss/camss-csid-340.c | 6 +- > drivers/media/platform/qcom/camss/camss-csid-680.c | 4 +- > .../media/platform/qcom/camss/camss-csid-gen3.c | 4 +- > drivers/media/platform/qcom/camss/camss-csid.c | 34 +++++--- > drivers/media/platform/qcom/camss/camss-csid.h | 18 ++++ > drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- > drivers/media/platform/qcom/camss/camss.c | 98 +++++++++++++++++----- > 8 files changed, 126 insertions(+), 42 deletions(-) > --- > base-commit: 91ff71dce5e770e7965cb3b09c87f6d334c6c4c5 > change-id: 20261122-camss-routing-fixes-b178bdb84f20 > > Best regards, > -- > --- > bod Tested CSID0 and CSID_LITE0/1 RDI capture with the OG0VA1B sensor. Tested-by: Wenmeng Liu # Purwa EVK Thanks, Wenmeng