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 57F4736B934 for ; Mon, 3 Aug 2026 10:53:54 +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=1785754435; cv=none; b=TIUA0XoxwDPYm9VQO0DDm92UdGRyz+hgBbAKSc71tzacDNDN+aveoKewV2VMcUexBWYzVFmWULHrxPKvSBTyhL+7NUsS/Tec7OXnFaQszaFfd1y2RK9v2djSMNffgMJBGObq5oq9Ckyzhajge0DirscJzeqNcQWfe2JvV3cJ9qg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785754435; c=relaxed/simple; bh=W4pjUQoMEum1rTBka7R+6cyJe1uJzGSmpQoSoqotukY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=btYfYhUNu0zE6YUbviy3oGPs/P+6iQHn4lgmW+y03+RPFRCPHOkLoWGAybTuG7hG9NaglkdJdQSEVxzz0L0GZ/DBHTIE1SkbetK1mMdlU9GzEX+FZrf9JZp4XJDhspMZ1ymaaN/cDSeAWU9O0Xd+NIovAHqV0FTkk2E1HJme+Uk= 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=eiVC9egI; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=FLDkX6H+; 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="eiVC9egI"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="FLDkX6H+" 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 6736saZq3790826 for ; Mon, 3 Aug 2026 10:53:53 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= eL2H0jG7cWNshG9pGpR0BK3e3nbsXkAHLazXPY8v5m4=; b=eiVC9egIHMMMr92n lN+F0/F8ujtHP6bInwATQerx1UVy7WsSWQfNyM54hSY6Y7bW6QQZ0oU1PD01qnGP olkgnM5/ullIeDEBC7ewLwQoYKtWO6Q4pzcnOtc+2HUKrlkjgOR3TmP4KcnZKHwR aBQ5k2x2RE7dJ2MdkSdq/mR9KQ+2bKyBS5ItBLGeFbp0DgpVCuZ0fVnb43ommTEd ld1RRpvIQrMiw9hHTZDVi0EOltfpfEc5ryCQ4CHsCVHOvhWuD24QaQ86ILNV6TL6 0MCUPFE+EEdd3ljSsMOM2qMik8zKgyRLpzgRWFIa1KsexykQ/+VYlkVbpxCyRv6h M12fcQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ftp4r1280-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 03 Aug 2026 10:53:52 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2cea6a46766so58350095ad.0 for ; Mon, 03 Aug 2026 03:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785754432; x=1786359232; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=eL2H0jG7cWNshG9pGpR0BK3e3nbsXkAHLazXPY8v5m4=; b=FLDkX6H+W6vMICMpDZ7iP76IztzTo49HJxInNuV13WkdwDHQzigD0q4Yv57SSgm6de JFXCWsZQvuLUVgkvmTwNXOfDboa+3EmY68lBj66lKjunHrRm2fYcJjrAOV1JsFk/AZrP xiSwsYM6ldfYMHt/cvOPJI1uZs4q0ZculuoBOQ7rJhe/yXRvcEueeJlaMVPJjkg3BkQu MiGQECdI5X0eSP6F0sgO3IBYz+ymqubPJEU5r6zUnboNruaprjBtEely944ozVLntWax /aTmit5fZms1uiTFLz0ONsD6pkPLnBO9nQ0QqeNultr4VAYz7FDDO9pU6qYJp+gkkX1j kHEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785754432; x=1786359232; h=content-transfer-encoding:content-type: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:content-type; bh=eL2H0jG7cWNshG9pGpR0BK3e3nbsXkAHLazXPY8v5m4=; b=UIUdRwAcIZohBBBQpnIN6OcCLV9ZmjH5IF/z+uD8DiRZDY2o+Tw2B+YsRFE6x8fyPN aKhHEQO1QzOxbTZ2ip64DVmrzTi0QEpKAOX0Etkzx6vlx6VUI69SoGvYROR6z2c8sGHF 5LYb/gd0mRkQxA5guMsYQUoI9Y4W19pLwN0w/yyfB9wxZSLn+rCtSF4fadUpbx2LG+tX t52+FY9axIMy3VunJU4Niz22he1+xCOY32pV7Wr9wSgVInWPXGuwF2OLYJAtvmQECsSV 0Fw+e6KOijoVsv+8mLsymhwMF3TP1mnewg5CFCJ9ZDlZWl2VISssgSL9KYRDeqztOye+ GqeA== X-Forwarded-Encrypted: i=1; AHgh+Rrr474sbNji8o4Rw0Y3+/bKHIZ6bF8I1Zi89p+Cfdfqe2LtrErfxPcxSN4tsr4iz3n7s08LBFDOUu/clhY=@vger.kernel.org X-Gm-Message-State: AOJu0YwF8f5uGzBTXGo0UbpWSRGwC0/1yR3BtMOQmCiOA18YMcE1Lyw/ L9hnhm9xW9gcrxh6MaOJHstCwcYreycUQGmc6MNCCFw9Gb4QUon9XB+a5lZijkuTGFKvwQ/aNEZ uieeoo4ZLyohV5KH1V4rw9Lcg9ChPvPuReu4jmWB1wCgKv9XgIi4pAV786HWbplKl1xM= X-Gm-Gg: AR+sD13SQ+Ap+/Ufcy31EWOQg2hNx0wlRmUQjcd8SFuiQAdfj4yYlMy9hqultfOrh40 BGKSTkNbMB2oIco8EpzLPArcP96OEzNn8oUQt1cvWl/kAhXA0lrZtT5k5j5arjqi5r2KZCHs3bk 6JoZvS6ZKWc+bN+xk69rc1+58efinYnKAPfSR3/R+XkDH7MVThV/o+CTqELcfwp6Xdi/X0tCh8J veHI9e1iNOE6O2EQ6s5kqKPukTLwHBOowrP3iL4xPQB3joQ1LYxlQfz43DonHoM5CqZcBfO8Nc6 nesKVf2MbsOPdNQ95jFP8G3tCJVPKPK4KSd1R2JUQ2Vi5sAzgyZApuZVvz0xrcr6g2CUgCfhV3U EEGwWZ7+LIQs+T0rCbmJfEkLDr+NFJ5Wkzg== X-Received: by 2002:a05:6a20:431d:b0:3c3:bbe6:95c9 with SMTP id adf61e73a8af0-3c92a524e5cmr8551438637.16.1785754431905; Mon, 03 Aug 2026 03:53:51 -0700 (PDT) X-Received: by 2002:a05:6a20:431d:b0:3c3:bbe6:95c9 with SMTP id adf61e73a8af0-3c92a524e5cmr8551416637.16.1785754431473; Mon, 03 Aug 2026 03:53:51 -0700 (PDT) Received: from [10.217.218.252] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3153ddda5d9sm44339354eec.13.2026.08.03.03.53.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2026 03:53:50 -0700 (PDT) Message-ID: <8a7fa505-1102-49d8-9343-0fce37850b48@oss.qualcomm.com> Date: Mon, 3 Aug 2026 16:23:45 +0530 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 v6 1/2] i2c: core: Add i2c_update_timeout() helper for dynamic transfer timeouts To: Wolfram Sang Cc: Mukesh Savaliya , Andi Shyti , Viken Dadhaniya , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Wolfram Sang References: <20260720-master-v6-1-671261b05c61@oss.qualcomm.com> <0c0d1406-949b-49ee-b203-3833b9f8433b@oss.qualcomm.com> Content-Language: en-US From: Aniket RANDIVE In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=X9Ri7mTe c=1 sm=1 tr=0 ts=6a707340 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=wk_Bz9T5fIWzqFoZPV4A:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-ORIG-GUID: 69UkfMav5Q-dZT4SnncZNFWVM7C6qJyQ X-Proofpoint-GUID: 69UkfMav5Q-dZT4SnncZNFWVM7C6qJyQ X-Proofpoint-Spam-Info: AW1haW4tMjYwODAzMDA5NiBTYWx0ZWRfX8/216NZXBzAs DF5MeILoRkDX4FBU5KIsZXoabsyoRUyyJlCRKVttNswiZZhlpWOOj3rcEB/b1AhIMjhOWCgy0bf RgwNfP9idmnta5evgBJ/T1/RrIyCczg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODAzMDA5NiBTYWx0ZWRfX9lEokAhkzXQN R8LxYmlRL+T/iiCHttJ4fUMCtIKkbwtX+2bB+ArtiuBjohdeNQm9Jkr45WQTbLxqb4BROHWyxIw Zv6/YfBcyxcEduK75F8yyXQY5pcblW8DOhY+da8M4QTydWGMbTEHvgJ5g4WID193KdLtLPedTrk V1txDILoc7xOz3lUIBYaSLVKUmF74wus4d5SeTEt5Z1pBtwAxIOpOL5IjXTRaWK6AcUog7tD/vs ihTA6NoFGZDs/ICr9x/At7Wej/qo60/1WjAvcKAIjU0GP1DYyvNEDvJb+NxS4uPxmYelKU+CzcI z8/PEb0twAcAY3fWFuTVGu9V8qQ/pYJjWlUuJ3DYZ+V3U+VKlqz8fCXZxt2/9tdbdZFgU6nbLVA b7a7+kVZq0ZlsKcAqBfTypugv3IrrmKHrnuz7eYWkOjIIxlkXvzBZfo1K0HYkRx//W22UN9MzN0 FA0eBVJRFFIjRVN7Kxg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-02_06,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608030096 Hi Wolfram, Thanks for the suggestion. I'm okay with the Kconfig-based approach, as it would avoid regressions for platforms that prefer the existing static 1 Hz timeout behavior while allowing controllers that benefit from dynamic timeout calculation to opt in. I have reviewed the patch series in [1], and my understanding is that it does not directly conflict with the dynamic timeout changes. My series calculates transfer timeouts based on the configured bus frequency, while the referenced work focuses on dynamically changing bus speeds. At the moment, I don't see any functional overlap that would require the timeout series to be based on top of it. That said, please let me know if I'm missing any relationship between the two series that should be considered before posting the next revision. Thanks, Aniket On 8/2/2026 2:32 AM, Wolfram Sang wrote: > On Thu, Jul 30, 2026 at 10:23:46PM +0200, Wolfram Sang wrote: >> >>> Given the feedback so far, would maintainers prefer that if i drop the core >>> helper entirely and keep the dynamic timeout calculation local to the >>> qcom-geni driver or should we continue exploring an opt-in core-based >>> approach? >> >> Well, I suggested a potential way in my last mail (Kconfig option). So, >> what do you think about it? Does it handle your use case? > > Another bit which may be important for you: there is currently a patch > set under discussion [1] to allow changing bus speeds dynamically. You > probably want to base your work on top of it and/or help getting it > discussed? > > Happy hacking! > > [1] https://lore.kernel.org/all/20260719-i2c-mux-v12-0-a5010d623a57@gmail.com/ > >