From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 0CCB83370F1 for ; Mon, 1 Dec 2025 17:18:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764609538; cv=none; b=WHFk0oQW6JLiClYTsbZyuCqap0UbxR7Y3OEArdm6eXkkOzVwVvPxdbrG1aThYuGzmb+UYUFUKeLTuvCBllyVVu2c8bNb9EyqttOJUAcnliAo5Ink6b7i91elbAoXlefkUSG3bp/6LqV8UfnkQlBbB6tbsXHYdKY7yCYB/2TzLUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764609538; c=relaxed/simple; bh=jQu/0pfExuAoWyGvuNX/rwr2ryXUJjoXP+qbIAGb9PQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=F5hkAHJ9ILXx92gTNoxowTfIenAXZZnDHC4l4y+RQizA1J+OTg1MgYLcqC3G6zc+ozuOu/+xd+TwVQgWmgxOm2ihyQqJRrF0Agy4d3qPGsYpnVl1G6kxhTK0nqcrcBGCoCD/XOJUvtnpJxPuFOtfGDRjD5Nawo6X3t+EERj7U7A= 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=XZi7lk5c; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=R9qFWm5m; arc=none smtp.client-ip=205.220.168.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="XZi7lk5c"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="R9qFWm5m" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5B1BK1ov105924 for ; Mon, 1 Dec 2025 17:18:56 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= UBbaBOGe5klrtjBehaYCRT7sgkHLPQutgJ4o9PQvSYU=; b=XZi7lk5cbkLhJYrR kxy3Z7Edkxo1yd2StWZo6JMkbcyI6Cy7t1MmqbJC/PlsPLSdOvzlLcCl0Rh8YL2o 8v24etn35hWQLRR9SRJo3DtZI6Kywio+J25GaIPhizY2lqxzE+fmWS9UBLkvjXYu APkbS0oAQ3/c1wX/LBTvPt5y1+cTj/gWcsSewUUIBd/IxUrAUPYqBMsg2RDd4XrJ MkEcOZVfEU0XDGlG7FqLeIproatHYNdK+CBJDRLwjS6Iisu/WhcyUaHaWVXTAdNw X2gb2K9+UCoNOHEACnMMNitlGOc7tYMiSI5labisuuESlZGK7AQ7JG6JNzAnD56W 0E/R+Q== Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4asa2391bs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 01 Dec 2025 17:18:56 +0000 (GMT) Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-935153c7434so34390241.0 for ; Mon, 01 Dec 2025 09:18:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1764609535; x=1765214335; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UBbaBOGe5klrtjBehaYCRT7sgkHLPQutgJ4o9PQvSYU=; b=R9qFWm5mxlSX7eOvmfAKsCiEpKS0hQIvq4Z5x07IQCiI00NNfogUhO+Nt+qg3i6kLy fwwg8vWJByVKG3DAIlZLCoDHIEawzW5i0YoNhYc9lf+pQXA0oECnM3XhhoKSaDMd93Ly KTYBWZCAU0/sm3XoSZ4eeB7xrk+F5v6e4mEeBX60LWJhKQIIo9GN73Q/yi+vDFQuaCDm nkNqpFNT03T7XlyGI7FuG+bcHHIvh96ihq5zuGbwRculBAlQih6qJprWlNbjYD3LamK3 EL94Z64AKNy6Oanvv17IO3AnuOLkxiY1Tp+5TUXn2LqMmRRv/1CoSZ8+4/xyuMwGJijk 3ojA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764609535; x=1765214335; h=content-transfer-encoding:in-reply-to:from:content-language :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; bh=UBbaBOGe5klrtjBehaYCRT7sgkHLPQutgJ4o9PQvSYU=; b=ULjN/V3Zi0kRi/PPumBXEeWvgjzWmxaGatVLPU3HcjIxlt7M390j6RYJjH0FpggkzK G+Z97AfdV5vECwhc3CIDBHX7FJOMtasOv0JQl0BKUv9rjNesarY562WrOKYnU++PiNT2 17UBaTPimA+nfc2Ik/aBTclw7tJ8A53IwLwytooez8JkY6qC82i14zTWvFrRNjdDxUSt TzP1c1NxDGPbd8JWxW4vo/4BPTCL6twDAtSjb40RKM5v05RpPg7OWbzWnlo3cxTk2kt4 p3aEKuDn6hMvfgBsyUICE0bZpiWT5yLgov02FXAi6fc8wYG2WUBrFN1NjoleUX3Bxxqg XZbg== X-Forwarded-Encrypted: i=1; AJvYcCVCwSPResmM6ItO4Msz4yYUAMlHUC13FH8qfv5IlDXtVJY5NzhsMzung3gLgHsYQju5Rch19mng3fOzTBE=@vger.kernel.org X-Gm-Message-State: AOJu0YxuU6IGshkb9OZjMVK4jFNyA3UhMqj5ffDjBkanc6qTfxqEo1J1 dTnuTpl83/AGXo4/oK8erYcHj1QvzbSMHyWT76bMlqlifnusnH7FA2S4dkwqRh94TBdkTjG9YPB ulmQoZA+VJwTY4uLQI2/cpj81pBXDVvaT2nRVGpd0EdIxe+ANKzFQERBLWK+zpgX7Iu0= X-Gm-Gg: ASbGncvyXTWLGKXXXhn9Q18o/6gctblWJE3Gp+XcAEm5zMHYBAe/Pk2BVVNkkSf7u3S AX+BDZDGx6GyPGWQ4pdk652wY2VC23iQMqbph1btPpB7RG9y1FCdS/y7PsK+9YNbx9ANKCY1AMp Cx8oHoSjSHTlQ0HdzhZ/u1JaSnRYkYx5JyJCbiZNmcUuo5VNj4E3yLzusFhSageIxVuksupK7I9 JrHnbOHDX2usieXHg6CPLCoJ1/qGyU3zORfDCsAAmXWo87Lrxf2t+Jn2MJewbfq0y3LAAxGSPSc jP0Hw36AHdELzFO7qvebI4/1CfcmQ43U2fuSUtuHGOIMEjpr0zknNgjTD+OmJSeKU/VlTG2qCl4 Q9euMFw5vyPTKKoaWTmb9h2dFUjEHRn1Bouuis0I8ALuD64zeIkFTLd3LETgW4WYtCGY= X-Received: by 2002:a05:6122:8b8b:b0:55b:ac1:d05f with SMTP id 71dfb90a1353d-55b9a9359a9mr7235631e0c.0.1764609535130; Mon, 01 Dec 2025 09:18:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYCJada/0RSlX4x+VUaXaxIlUA7b0rcGI56yLg/SM6B1iQRkieH8uQ3kyk9rp6imMAf4/iSQ== X-Received: by 2002:a05:6122:8b8b:b0:55b:ac1:d05f with SMTP id 71dfb90a1353d-55b9a9359a9mr7235602e0c.0.1764609534618; Mon, 01 Dec 2025 09:18:54 -0800 (PST) Received: from [192.168.119.202] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-647510508e1sm13023041a12.27.2025.12.01.09.18.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Dec 2025 09:18:54 -0800 (PST) Message-ID: <577ece85-adf1-41c9-b7a4-ca65e27e6c75@oss.qualcomm.com> Date: Mon, 1 Dec 2025 18:18:51 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND] media: camss: csiphy: Make CSIPHY status macro cross-platform To: Vijay Kumar Tumati , Hangxiang Ma , Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Todor Tomov , Vladimir Zapolskiy , Mauro Carvalho Chehab , Bryan O'Donoghue Cc: linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org References: <20251130-make-csiphy-status-macro-cross-platform-v1-1-334664c6cf70@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=dOurWeZb c=1 sm=1 tr=0 ts=692dce00 cx=c_pps a=R6oCqFB+Yf/t2GF8e0/dFg==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=OxG7tpPIUWXr36wslIUA:9 a=QEXdDO2ut3YA:10 a=TD8TdBvy0hsOASGTdmB-:22 X-Proofpoint-GUID: YtUDl1wDWBmoznhyt6VMw95-ey0atWM4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjAxMDE0MSBTYWx0ZWRfX9TlXhLbev7m9 LMFJGILeXuq9WudV66TTWN7qWCJZcYMf3M2v7tZbfm4XGy1s3byA3JyIrFRnT2/qfTicrF/oP+q FwTuNdmot5DwSowfmWiyriK8Q77e2FLb2yAaEzeHJ2wBS5DjZDvdIjBZmk/m8fv2LP/Jp3h4ckj Bc/KOPOAvKQcoM5i7CpInrEiHlPO7sV+Vpy7yKMiCtpOK/BrT0kN4874KkRe+AMMjw1NHdzVYKw lunTaBSGZz7RPBo/YWLSS8kvZ+nT/FILcoXV/fmgGrTc9W7drd+52EAcCzbLwqdfS0cScK6sO9E uSmcgFf8ioA6+XlZin48fHTCkxPv6vzhFSJFkC8D5asWni1TTb9kynlJvKIErJjZcI4E5psxFXA EI2UrrgYLcwpXVdNDauQuTNnmrAN/A== X-Proofpoint-ORIG-GUID: YtUDl1wDWBmoznhyt6VMw95-ey0atWM4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-28_08,2025-11-27_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512010141 On 12/1/25 3:48 PM, Vijay Kumar Tumati wrote: > > On 12/1/2025 4:20 AM, Konrad Dybcio wrote: >> On 12/1/25 7:25 AM, Hangxiang Ma wrote: >>> The current value of '0xb0' that represents the offset to the status >>> registers within the common registers of the CSIPHY has been changed on >>> the newer SOCs and it requires generalizing the macro using a new >>> variable 'common_status_offset'. This variable is initialized in the >>> csiphy_init() function. >> "offset" + "common_status_offset" is confusing >> >> Let's maybe add some platform data where we store the actual offset of >> the registers in question and pass a csiphy ptr as an argument >> >> Konrad > Hi Konrad, may be I didn't follow correctly. This is consistent with the way we maintain the other SOC specific reg offsets / data in the CSIPHY driver, in csiphy_device_regs, isn't it? I seem to think it's clearer this way for the reader to see all the offsets at one place. No? Thanks. I thought this driver was a little more complex.. anyway, big changes that will make this prettier are coming so this works too in the meantime Konrad