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 4818331A07B for ; Mon, 1 Dec 2025 14:48:30 +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=1764600511; cv=none; b=ePTVrmf9wQgdhTd08nfUZEw59mFe45H9KEVkaIUVmE9GOb/nkWbHlaJYi5KFl2wyDhZhmt9VfPyEIZ6AW0r1r4/4xsQco2eTLvDB5MVVWH57MCoveEMbU3kTT/+w4WMhL0tHxcLl5+5eUnkl+NWvMDnxxL4u2PxQaB0b5nyxLNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764600511; c=relaxed/simple; bh=kJo2bPDBUuIc6a4dhKxiT2Prq+nttBS2G4R9n3nrBtE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kCXa6PYuRSNmdfEYw6ES2yefsYqwLCd/fIZVk/NDCHaoII5ckCiCNRVyGIVwV112v+Z0FkpLVQXzrhdTJXfRkRWVM/l/jeYqrVB1p3BDmGbkzO+Eo4/HDOBWhi+xpyXIQ2zItxg0aPpeaigPhmiD5Q/OijQH7bfioQRynJ9+Rxg= 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=oItxlAsK; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=id38owrX; 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="oItxlAsK"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="id38owrX" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5B18OWb64062387 for ; Mon, 1 Dec 2025 14:48:22 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= zFUShCKTFzpAAcU4dG8e5ZvFplYdFS4xxKvgwSWJN+s=; b=oItxlAsK2BV3kjXi nihVMfCfIzwRhsA14y3Ff3M9fmYF6U4Wf7ccnHYBFcbYTfI2wPLxEjiRNDr67q1I m0jxVlw5flUkeT48ngbMZpxp0fG+CCLPPuuVakskih2HjL6QOdqYXi/vPg5YyL7J fAy6Lab2GOkGyLBx2pwEMRQykYcbwul/Iu8t5ixAS1pRNybEldGhrktchMMGcnSU 1sVXzdYpBFZhJU47igxkwioemHhy28yiVrzRNGN9CUt6MXCe/I86FglTsYOa1UNb pDgGUfS67+dlIsldp5dsQhkGw6vGXbWnCb5oS8pxNtkLiTwTXCBd+aBi49j+TmuQ KTzGww== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4as7fws3dg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 01 Dec 2025 14:48:22 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-7b4933bc4aeso3210840b3a.2 for ; Mon, 01 Dec 2025 06:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1764600502; x=1765205302; 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=zFUShCKTFzpAAcU4dG8e5ZvFplYdFS4xxKvgwSWJN+s=; b=id38owrXCuCdIFQ/VcqDukZ6Bd6GVC04Nrmo6RMatOg3M+LIYQ6lH7Xh/kgig6WwkX c18YdK6laWM6KYmil8IeFdqYVXEAXoFD93Hq7VFKCKufepqgQvWoF1ymemBTgKYHjNRB 6fcy5Rcje3le3EY6j0wCDpdOuJJ4voY3ULBrYpNWLfAA+V8yl8MfzKToY3NaJaLT7ibZ aOpSxXvWIdY4iOjnfNjXnADtaaUih78A0CsV68yD7LfySmf7Uvg6GrJeTGTNjqSrIh8i l8i/o3qUqsFeDeID1MQVP9ZCL4iNq8V/WWFaJGfzp5zrdIUZ/qrV7S6ooY0ko6s/fj5u sLhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764600502; x=1765205302; 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=zFUShCKTFzpAAcU4dG8e5ZvFplYdFS4xxKvgwSWJN+s=; b=inAG0LbjZSch4nOGEj8tNrUEj6XYHyxKBH3accaTKr52f/WeHMubV26rC2BcawQJW2 HGmZE8L36NpIiTbBsI53pZZprX0+1RDjgB9j9xX6kN4lgG0cH6hJnLl5ojwVl/e9Y8cl hYPvfvM35AIFTJArhiISNZJ6KK8pDvDo5hP5Q9QfHzGQEoJNY1WOVkoENJ0tSsUYCZhs 5ivJuJ4+mVOIyIHYapgZssTDa7tCNOQac99IFPsoeC80fs3A+xGRKhz6uDm6r1rZwVHh 1muVs5Mh4WoCgAn6i5WcjtuXL+PjsQnsTMV851wPH8HlPZOQ4qXMxQA3aq1nMbDAQcBU +nmw== X-Forwarded-Encrypted: i=1; AJvYcCU4FY6AUTfLi8uCEPobH2lGmvy/BV1EmIRXYgA7nMmcCO5VHezkbmufatexrzgquSrHcHG6qPW5serEDpY=@vger.kernel.org X-Gm-Message-State: AOJu0YypoTVtjzKR/lGs4NCNvBYCaTWi/+H2iB9TcNHnXM/J2lsEfi9n 8kgFaY36Vm6tYvdi2us4s44SbeE3TJB8gSsL9SzXFkThCPN5llj6403C//XkvCEvhoSWYlsZ+00 Gch+XarXIk94kz7riEnXW8YBpFjs3E4iqzVBgvXYIN0HSdNXI69raMRs8ZSkezDHqsOs= X-Gm-Gg: ASbGncvZGWtQarmBQL7xk490fc1d7ffWqX602eKYiE+AM9dMM/GnRxCqcu7uTmprNLA NEP1Whbc7R0Jwjkws8y5m9rCAeE0XkE7hsEcIWMSY/ZzKbh7KPi3RT3ArHst4kzuH2OENqGvpOi bOR6wY/xoMAKyzZEg/3mayCR5h2gnCnP0/Dg+A42a0LP9YkUTodwvki602/G78XuSjyLxAxdABj hKjELotPr4RU1HER40vMlyQtJE6GultLK53tFKk7+K4T2BNREFbBqYTrQCn58Wudh9FWjIzC4oS 26wojEY4F7KyCCwLGf+HKZkBSypuvn/N+0Z8yK7I7cs1p/vdS9PL93z92YxZNSIXWrVudVt8vlB f6dXzAwONzXOMyqAWNeGBcDw4m2fFpAQdj3X0IJQP X-Received: by 2002:a05:6a20:430e:b0:35d:2172:5ffb with SMTP id adf61e73a8af0-3637e0b9b1bmr27693921637.47.1764600501594; Mon, 01 Dec 2025 06:48:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOjiaXyFZ9x9qVZy8TQ6zSjZu3ioOiZuPu5UeevNwykKCCX1DIHrzfM9MFUHb+3rHvjLPDqw== X-Received: by 2002:a05:6a20:430e:b0:35d:2172:5ffb with SMTP id adf61e73a8af0-3637e0b9b1bmr27693862637.47.1764600501001; Mon, 01 Dec 2025 06:48:21 -0800 (PST) Received: from [192.168.1.57] ([98.148.145.183]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7d15f175f15sm13729699b3a.53.2025.12.01.06.48.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Dec 2025 06:48:20 -0800 (PST) Message-ID: Date: Mon, 1 Dec 2025 06:48:18 -0800 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: Konrad Dybcio , 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: Vijay Kumar Tumati In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjAxMDEyMCBTYWx0ZWRfX/5USfe3BHcnh ZrZaR5N3PrfvYAcov3gfVSI/nUpoH3AKhnSeMo9+KZNi1VQxgjx1S7ur3j/IvqTDt073VTC4gWo UYGn1g8xtdIdk6U5mGEF/PzGFAhuNcXGsyPsC0/WmAA4tc8o4wmzskIFx88jfD4eeV5hI6xNHy/ pNnOp/LMoA61P6+QpsQS6hnt2MCElWYzZIHi8zaJW9qyrsuB5e7j5gZmAabSB1hOgyWWoQHNxlh zQBC6D1lZdyseFLtm6zSWoGJ1b0MGSYOKd3wrf/a5VudBBR4d8cC2v35Wfyr2DJW9ekvCx893ML Qu6OILUOoifKU/VkiO8TPMPClhzdlIUCKDI1CJF7kWDk4vblD627DfODysxopzSgZAtv+YKHvqi NJe4jFkQpPSAT6Qe4q0w6vT5nSdn9w== X-Authority-Analysis: v=2.4 cv=TbabdBQh c=1 sm=1 tr=0 ts=692daab6 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=BiHMn5M11h/vNwziJwzFrg==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Wn5s78lpapD4s7JFFjsA:9 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-ORIG-GUID: p8nPr0jwS46GLrW1JPV4_OuhT-xte9bm X-Proofpoint-GUID: p8nPr0jwS46GLrW1JPV4_OuhT-xte9bm 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 clxscore=1015 spamscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512010120 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.