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 9A784522F for ; Mon, 14 Apr 2025 10:08:18 +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=1744625300; cv=none; b=WDtx90SFvT1o71SLuE9h9F55MT+iYWR9WoWYwhCIaQrshXTGQ+4N+8FAwUg5guqZCY9ip9k2psBiUByvlPRtuqqHmUhOyzwFZEo9Pp3LojtcutykUnXrF+lILNCWLVcwH8BVb5s2LmYY/unJCl58jLoJbBC/43wIWrMsGaxJJo0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744625300; c=relaxed/simple; bh=hI5exL8lVprwxjKyBwz1haJkb+ldoxiXow/seg0QwZI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PosJTL9s1rjJJz1ur70RO4wtYYFuzYfntZP5mUd9VR+QeS68sJpvkGf1gE+EPdBxR2DfKUrH2Mqq+nA0uEbV/Dz68cwgGB2UKzSVQKXNJAb4PeKOWUFoWiFLfiLyhNQ9tCSWGZ+y7royVCTP6u884hIRK2guHbi79q0k2SBrY7U= 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=d3qSA8Sz; 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="d3qSA8Sz" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53E99t6w029074 for ; Mon, 14 Apr 2025 10:08:17 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= iAPOu8FTHZQiUawy5teQOSK8iVJhCxgNvfNjhCFVeS8=; b=d3qSA8SzB23MwR0Z kugFKL/fCG92rdQklMzld68n3xq07ZCHMjKFg3VeF6lcQsVxozg3RVfoEwp2IDSG k9Qi1/2NoCiTqJfHgGGhNziDLVA0N+aKI4CH0AeyKwKXsIv7qnyQySBDSV1XN+vq 0lld2uAkOkcE9V4fSgs7cZWqkFK+PvPXtVjKhLh57fY265TJnjU5LzstR+ec6DH7 CXtFFD/fdEIAYbLiYxuuDJGQv2OQCh5KS+CsAKvTuI7MNRDDph9dndyRtgTWV4ia nETdspqGFOA7Vp7Vs/PFbEXTBjWY1z1JAD4bFdmgePRVQ3NyeR3nvhyqEzCDOoBW p0pSTg== Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45yfs146ms-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 14 Apr 2025 10:08:17 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6e8fb83e15fso9234936d6.0 for ; Mon, 14 Apr 2025 03:08:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744625296; x=1745230096; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iAPOu8FTHZQiUawy5teQOSK8iVJhCxgNvfNjhCFVeS8=; b=CucPqUb6R6dQfpotexepM4mzctouztCyMcuaeuiA6Mby1NeYegpHlsim1YLL2YDPui h+l0Nt0cVIjpTIuA1mOq7PopztKJkX59T2ufUaxj82C4oSVuRCtuhAtKZIRlgEADSN38 E7nOKh9zIK4/Thgjblt+B7z1STYBtg73Y8Lj6/juKC0gKL0oRR29/U0SL0PQUrOPq4f0 73cM6bYXg3u2B4D2RE60j7gC5R8OYUlL4+mDAsNPu5y+iedxwmNyfJM3evo97OSaKLan BOltskyVojEq0crrrxI0s+GYvFx5Krr9g3hUOtYyimm6a/CHlVn0JL4OfdbnG4Za5+OW bSDg== X-Forwarded-Encrypted: i=1; AJvYcCWHZ6gyJ2b60em+u0/518F2GTDVRDC9P34QeH7pPIQ1VRhr/hACTIR8lzP3KTMTh/BjBl8RrC+rfnFL@vger.kernel.org X-Gm-Message-State: AOJu0YxmCmZRreIODmtdP2nhh2yg3jAp66tGqAcMxBoFRRhEAY+K+Bwi weGWIsGTzA9cOPjTdOuPCqvL5cK5U1yF4/5U4jDfDDMWu+yC2fVBGkNb7FVURITGkjSP/cvsrqK ZPDxiQQ2FUFZxyffoE/PBlBAQwD+7QP9Le/ttJ7c/QTWowtsreYw5+cDrFdVE X-Gm-Gg: ASbGncvuZ3DoxD+K1Xxu/KwnGFeGuM2QOV5BS39NHfU92n6x4+FTzBJgSGrhzC2c390 toVmQnx3QVOxL37D0NNzsPOSPE7vDoj8eKgVXmyCsElr6j9OHLIUNF3mFIzxfHHcknghpfn4VNs 5PAC3ecydj9GIegyJq6cKz2vpJNDOufHZaNaE6Lg9SWoXpJw/WJw6XPSJtnPCBcv36VDyZULzbm GCL6+mY+ffyR0rs60cs/9fBwStGZC+Kzj0/afC19/OjiH9l5Bf0qptcV2+QtMzczwTHD6/4AQN4 n+KW1xYZbaGKBraU9mFHYHgiJO8KmCFkM1z0sm9DwV5ohiWj/h1BI8pGd6eibVQyBQ== X-Received: by 2002:a05:620a:d8a:b0:7c5:6fee:1634 with SMTP id af79cd13be357-7c7af0c1fc0mr640417185a.3.1744625296288; Mon, 14 Apr 2025 03:08:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkIZWUYjPc9DMV0+IzC+9l1y0nHMActJ4TmxNbh2ot2IBhc4gOyrgI/EtejUkizlU/wxPYNA== X-Received: by 2002:a05:620a:d8a:b0:7c5:6fee:1634 with SMTP id af79cd13be357-7c7af0c1fc0mr640415285a.3.1744625295827; Mon, 14 Apr 2025 03:08:15 -0700 (PDT) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acaa1ccd69asm872424966b.159.2025.04.14.03.08.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Apr 2025 03:08:15 -0700 (PDT) Message-ID: <518663e1-8bed-46b6-95dd-142b98e567b3@oss.qualcomm.com> Date: Mon, 14 Apr 2025 12:08:12 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/3] i3c: master: Add Qualcomm I3C controller driver To: Mukesh Kumar Savaliya , Konrad Dybcio , alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jarkko.nikula@linux.intel.com, linux-i3c@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: andersson@kernel.org, konradybcio@kernel.org References: <20250411113516.87958-1-quic_msavaliy@quicinc.com> <20250411113516.87958-3-quic_msavaliy@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=P9I6hjAu c=1 sm=1 tr=0 ts=67fcde91 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=sL-q8L-RPyKcODZA9a4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: a_1MdQYFDxxqEqwlD0Nd_XwdOUUTwxHw X-Proofpoint-ORIG-GUID: a_1MdQYFDxxqEqwlD0Nd_XwdOUUTwxHw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-14_03,2025-04-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 impostorscore=0 phishscore=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 priorityscore=1501 mlxlogscore=807 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504140073 On 4/14/25 10:53 AM, Mukesh Kumar Savaliya wrote: > Hi Konrad, responding to one comment which is not working as suggested by you. > > On 4/12/2025 4:45 AM, Konrad Dybcio wrote: >> On 4/11/25 1:35 PM, Mukesh Kumar Savaliya wrote: >>> Add support for the Qualcomm I3C controller driver, which implements >>> I3C master functionality as defined in the MIPI Alliance Specification >>> for I3C, Version 1.0. >>> >>> This driver supports master role in SDR mode. >>> >>> Unlike some other I3C master controllers, this implementation >>> does not support In-Band Interrupts (IBI) and Hot-join requests. >>> >>> Signed-off-by: Mukesh Kumar Savaliya >>> --- [...] >>> +    if ((m_stat & >>> +        (M_RX_FIFO_WATERMARK_EN | M_RX_FIFO_LAST_EN)) && >>> +        !gi3c->cur_is_write && gi3c->cur_buf) { >> >> The indentation here is confusing, please align the `(M_RX..` with `m_stat &` > I have tried to implement this, but always giving me warning as below. > Tried many ways, but same issue, hence keeping it like this. > In fact, earlier also i faced same issue hence i wrote it this way. > > CHECK: Alignment should match open parenthesis > #468: FILE: drivers/i3c/master/i3c-qcom-geni.c:405: > +       if ((m_stat & (M_RX_FIFO_WATERMARK_EN | M_RX_FIFO_LAST_EN)) && Maybe let's define something like bool hw_pending_read = m_stat & M_RX... Konrad