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=1795768689; b=yCh+jTApKBGnw9f4QxhtFLqgG80jKYgwq9F5gWSy6MafuJYnO1WDq8qPnBBbqIW7HEMZ Ju1RkPZVqgGCnBdvqRmqBBUIK5SKBGgqr90CcLsynBLNZ1KTA6qTMa+zX39aknSYMrpJ+ T38Q1geVi7neeGmFb3yH8pb9RSZ+9/U1QGlPMq7FXbeWv4Yimjf6DrBEhoD0m/3FWLVCc /oUX3v2EFUUE7LJtta0IH9wkjoYox1Ofwk5de2jMfm6IPdSfcbz6JUJt1yGgcKRdomYrQ asp4n90J0A4m+54qdL+fQ8OG2Lj1Ohe4E/yp6WfmeUGZ2FqKG2r++sH5qnHXLwMBu5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795768689; 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-GUID: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=JMQn1/nFBMol7ezl8F6vSFNMPv5T4CKNqiUdSoWRWgE=; b=WHlNj1B0lIZC+rq1FlJWO5+QlE84fUiE7RlEqOpV7sPO/LcP8UUbAZf3gpDJkeoB107v TMDi8H03DQjYbMOLRviTqGabKKJLXGl4rMlpXu8iJ6LsbzwUbf4dLCtYMlTVzZTQ6hm6Q quWECb3igOmnCnLmndsdXk3+iXANHAot1b5jVuZ1T2nivEmQNjqAeln5MDsc/aHN+ZrOF 6maIa+Sn81ahJ6uOGeOv2fw79xA0OcCgThejfbirshuXKnAkuaSfxZX5dF/gLYr1/qig8 sUZ13pZlTRfX6MGlRqOahKuaWp8G1X5ZPfg1Q5L0oCT2gpXx7HsFCqXFyxs3iF3OLaw== 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=REp96j+Q; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=PKZKgGET; 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 B1591606A32D for ; Fri, 27 Nov 2026 08:38:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1591606A32D 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=REp96j+Q; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=PKZKgGET Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AR7GVdq2188163 for ; Fri, 27 Nov 2026 08:38:07 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= JMQn1/nFBMol7ezl8F6vSFNMPv5T4CKNqiUdSoWRWgE=; b=REp96j+QoMCw+ks0 0NldNXf7WOk1IGw1G0B8bFFYsnsNs+fruWPDqvUcmoSgZ6pkcfpQ0YrwvbIERj5Z WLYbkEMk5rIbT+zeiUH+d7scuqG4+M7TfAAnmWNdl4tjkT8rPqJolX3nGeoikNci ea2OF2x22HnTaCF59Wwn+DBI+zODhXU922LwqZ+7XmUZ9/EBtYOwJGGX1uKsup77 4zM0h6Npadgjcb7jqHBZxFVNIQzISI7rTdn1A76Mjn8ncQbJzjyrGcZ6cALqS4di miR+qtzvD2e1YcpFB3UmpLFXAv3r6F0wwjKK05CTDGkcsEB63wf2Oo5F0QUVH5sk j5NrWA== 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 4j74gh8gae-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 27 Nov 2026 08:38:07 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-5363fa3d3e4so130257341cf.0 for ; Fri, 27 Nov 2026 00:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795768687; x=1796373487; 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=JMQn1/nFBMol7ezl8F6vSFNMPv5T4CKNqiUdSoWRWgE=; b=PKZKgGETVaHTF3ELYKvP0fwYLewadN+sgMQSq9RWzpwzuCqTO9TDIpvcNk9H41+GoR r/AEFAKVYQkdTROaZk79r/6SCKTGCFV3PlSPNYOwV+q70/xJiaN+J5doQ6V4oJAYMMAD NsoGuHQyyV3GP5589bagWX+Ab1cvT7v2A5bIriPXpEMrDerbQfZ9C9Gd2E57aLwadAPQ K55HMtYLzcuVy3BtWGnNtpyuROY3QmhyQyJQQfECcaeCUUvD5KvJjUGi4jWlkCDmSF/N qDFviGlDCIHtlD0rXYbowpUUHG4IpI3soVpLpEQVjrfG2F6NmG82yGBloaefWIMm5oZw anNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795768687; x=1796373487; 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=JMQn1/nFBMol7ezl8F6vSFNMPv5T4CKNqiUdSoWRWgE=; b=XzxXycKWDq3UfousYOhmhx7OXMiWjXEngGOm0OYcoUoNtNzOVXs9EOYiZrPE1/dq5R 14ULzLN9AUDYbtrguTEL4P9V2+rh/peAw52vMdytKETbF1M9k7u7qSr0ud2Vm4cHsLNt Fdc7ICf0HeMTyPU8IKVRXIaxwAU4HKFwrq4vmF11SudoOjkUseVRsmMpLCnjHAmOsK2/ 4OZZgzl1EjbHriCpFHSe+YINjisXfWa15jH6Bn8Y6IRdVDut3RL5DWMaVPHnYxR5Md/0 Rme4Rlvssigbp33cd13sffk9fxWjbl/B16AX8GGx6xqO1Ia3gyZUoiEzPxCyBmsbAZkU sveg== X-Forwarded-Encrypted: i=1; AL+hErHFdumygOzzmYQ1wuCJrSB/pX9YVto4RtfG7lIzE5XBHr3JzY3585gbTMd9uXoVVAvnO/U5TZr13fJhEos=@vger.kernel.org X-Gm-Message-State: APuU4Z+dvAa9ROrqiDFnU1AntZwpvbB/JROEDk1ZwOw9QzNZeV/XoyrV 8vT+FGmZhcpXf1PNAm227R6FkKwcoyXvjFzsyTvXSHVytPnGERUolMvLx6uG6mX8rkUE9vE8R5N vsN6V/GmswuqrhrT2b5E76SdkenKE//2ka8Eh7QntT6LEPBe87L+Sgd+3scX9nT+DbI8= X-Gm-Gg: AZFdTZcaGYIn/gbzx4zR31ClJdqSa3iL1kyro1B+u5Ab1hcG0C7wIgYIhjJPsqIi8AV SpFXvWfcDKGzVJoPtnA7lHyiQzUlwj3GNT/pTBo8bU/MqO02Xch9CgQzuWcVXc8RvWPYAzHtPP9 hzTk6pTd9JwY7E9a585iIck8JMwN/bliWP55eb5ESlqer4VamtouYHn0kUy0JpomVb1U66J5hYN OrpwRTpmFqlKyU3578abei5+fqFbZfd2UnzC9/NWkA9NRcd3Kl1LYxLRsmb2zqxGesmPE384ZBx tOmoDuwawYwQyciwqyBcGYdSQkWi0GTccuuTf2saYkTzkqJdL/FCHon/e+/nhCp9+iL9vtkKTCz Q3qEHzdcAsLrON/hVvX+TNpFibPCDvqoo/zRZbUxjhzFIr3QUuq32/0YjyeJFgXNZidGxymqGLG oKik2Sc8t593NxyJtAxv1i5sdwsTzO8ETJsTXcUQ== X-Received: by 2002:a05:622a:e3c4:10b0:55d:84c7:7d7e with SMTP id d75a77b69052e-55d84c77e4amr286763651cf.23.1795768686679; Fri, 27 Nov 2026 00:38:06 -0800 (PST) X-Received: by 2002:a05:622a:e3c4:10b0:55d:84c7:7d7e with SMTP id d75a77b69052e-55d84c77e4amr286763321cf.23.1795768686152; Fri, 27 Nov 2026 00:38:06 -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-55d7882e32dsm205186781cf.13.2026.11.27.00.38.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Nov 2026 00:38:05 -0800 (PST) Message-ID: Date: Fri, 27 Nov 2026 16:38:00 +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: AW1haW4tMjYxMTI3MDAzNCBTYWx0ZWRfXyzTw5WRaMQmD piXsukx6CGL5KmYIV54paEAtNFQdjO+VkovQSuTQ2TxL091KVVlJ7IwVE7yopfhv53NKP85WDoZ kQsUR5M0ow1bURFh0ARwobUbjFdJMfI= X-Proofpoint-GUID: 81GWoxNCBhdKZ4WIKsm8vuEkvfICE7Z9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI3MDAzNCBTYWx0ZWRfX7g0aF5Zcq+/4 4106YYjv1SysSU69WNUBENRasnu6zOFyHWmXz5TtiJqQH23BZSmkMREIvQ3WF+TQbN+wCeJNtyv 7fZW7/Ulj+PxLktPaGXzbdHNb0DFfAKl+V60Sg53pJ2NCXb3n2ynZl6IqWkVrE5G9U9OSz1WdSM obCr/V7svGoSydh9VMh+JCvO8tRBVTMCUuwJf5YxyS/xxqWQuP2dyr62b200Y3CHCPYfDjMJjPP Gp1htSaZl4ulJhkCKTrOfk0/palUY7IvYYcw/6rPcdYj/44QBBVhP8CwtMpqe6p00KBxfVun0Q8 SLscgdoo99ePriA85shIA881mtewx5K4HZL9OpKah50LUUxCwy+Tw0oeeSMQBC6jqVUP1t09WNM LlizFa6gsDbYJ9HfWtwhD6PvFoRPILAp9/E1XDlY1TanNDiDnLBsmYK6V24j3t4wKhJ9ICBxM3F i889LqD6pTV3rI0kzHQ== X-Authority-Analysis: v=2.4 cv=U5kHnuru c=1 sm=1 tr=0 ts=6b09416f 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=_glEPmIy2e8OvE2BGh3C: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-ORIG-GUID: 81GWoxNCBhdKZ4WIKsm8vuEkvfICE7Z9 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-27_01,2026-11-26_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611270034 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 Reviewed-by: Wenmeng Liu Thanks, Wenmeng