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 3160C305064 for ; Mon, 9 Mar 2026 06:14:15 +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=1773036856; cv=none; b=ctdo44lq188+vlV/Js10DDSdHX194zr8IROOyQOu/F5Im4ssNFGEEmsXt79vJRC8lVG7hHOZzgCtT2Gvamo+6kwNtRZRCQGQnRK8P9skcX/GRb7lAL2L8FJ5p5khKnpI/7WNjHBas+6LX+3sCRFJZQfCL4iX3zhEmq9KT1bc8Mc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773036856; c=relaxed/simple; bh=0wW6ViPP9SX05v/uSI0BCrlX6Rp7w6Pl7ESM3pi2/1A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hvqcf/e21Bpncs3IsdZ+BGXjwG1V9XYY+3dz2A7F7tH4+BwCcvblWSB3NekW3GIJxvX2Xdum2GCaAY1wXvl592PgCObnUiGcWqVjUqcZTmPD0rr2G3q5o3gxXud8LgYD348peEK54/9LH57Fzdl5Cebz19wP7DYUg4L6lc4gstQ= 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=eGjPs5sF; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=e1cIc3rC; 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="eGjPs5sF"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="e1cIc3rC" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6293kfkw820019 for ; Mon, 9 Mar 2026 06:14:14 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= 6hNZOwQq6HWTjuqn8FSE60/aQbj4nXzSVsV920Knhsw=; b=eGjPs5sFBB0wJ6N9 Qgb1n6C3mddLAUoAXZrlJV0qXQrnkB+d0SHAagrC6QLxPTAP1jQ/L8fHNo1F25rJ vSn1evrEH5SrKxHXmXuZ22JqN9mgfAsTZHxLd+2nbprN9Ifh9NzywkLZ1PultdM9 iML8k7chYMsEPaGMd6Hnwqq+mRRLGAhzOy/toU7/kwUSoeXVHnZ+gziC5wXNteUs 2EXhuMEeYa8uuXAGsVbL+ALU6J9utuXXG6N/y963hsHaqmnA0Zm42ggr9z6UHd9r txpa4LgTECDzWEI2ngIwsAEbg/XQb2y5JYyYjNXaZsmBBw4dvH4v+iCyYWRC4Hmd NSiP/w== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cr9qeve4p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 09 Mar 2026 06:14:14 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-2be07cafe1cso23073289eec.0 for ; Sun, 08 Mar 2026 23:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773036854; x=1773641654; 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=6hNZOwQq6HWTjuqn8FSE60/aQbj4nXzSVsV920Knhsw=; b=e1cIc3rCoIdSQMNOPdkzNs4e3hK3qZgervBGkcoTh/D2v/ulivoREwdMhPnFk9LfLC 383qoKS7OJtHQlNzpNO5/ImixS9qM8ZK44+nfaFBrQu1XBF7IE6m6yL9q/76JZd4sq3V m6RZz9Xfje43mZnWpZRA3CeIuCOPadOVtTKMcGw1DrqEfvByro/F+owhUbYcTHev30A7 hqjOkXDVhvTkZpABMln9HPdYSxvqljx6Ece/0L/2ZS9XqFDSzV3px2I3K01QqwnxqMiT 8/UqGOaFI/g/SDh8LC2hb7OgatA26suXmNxNRb37KD4pJoSMTjubYv/5CpFriVHZm7UW jdSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773036854; x=1773641654; 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=6hNZOwQq6HWTjuqn8FSE60/aQbj4nXzSVsV920Knhsw=; b=bBXSp1W9KxhZaUyL4WtgoOkSSNH8yxkEZPpLurDedDJ7fOwaZQOZWRXLDfT7ahvRg2 jYY6oz/s0SO14DkkBouwkDetUg5W8MiuyKyBN/fPi467YAeGSUmJ6DWQgOalQYi/qh2h VuizWGr+BS1XCVPaYLvTvSMsoAT0xZfvbFnUD57pK91L0zr6kXcO2ubWb5nF7sT2mnZS 4lHRIOu6FHHlfaa6Qurl38+Xx7nUAplloX7QZ4yKNQOPn0SKfoH4ax5h/pLHewQBzVdB uKb0nspbHWHtdC+xhZ4HT0zJcYYwza8ZND3OJugjD5ZOHU/czHjDzGe0zvylFYLXUC9x dVsA== X-Forwarded-Encrypted: i=1; AJvYcCX3LUeZ654mMQc4dCh/hwxZdewKITNzXBpRZu0ckMR5Rd9NpSSw9c6fJRBBeO5/BqnG5Kf9XXnXaSVY4XQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxFKqU+IqIZWGPZ6n7YQvlhY2/GEj6ngumKL6pSpFUFFX9eScBK hoK2TXBsYciwlfdk9wi9+lNKsZ6NG+0ccNQwfMOZ/3zMadY8PUbbkvcB7uS+q3ThZeynmmaOrIT R+e2DvC0NZoIpazt+E24KSUwlH+iOs0Jiti7mxhF/FZUAVlo8mSrUWtHG7k19R+Qlp2g= X-Gm-Gg: ATEYQzzBGBVDSSX73AWWaJYyDJOuO1/vDALkdKRpw8SSM/mOO5oPoGgq1/bwPNts7QI SrbrWGs5yErb43gz3f0mzOA1VbcrKxMVzlticZY9+/2QmLl5/bK69S1/AwW9JB47umzB+wcgjBe v1Lx8jf5Yr63zBgPgQqioJ77z9ROpj4qOoeGLd4p8zp7yMgyy1I0e1IeCq4jlFKeARJ661jUtX9 jVrvTpB0NT8zG+JR8HhkSPole01CuqOOAq8CvTAFhEaIxAezKsVBnNhUl4tzTt9brPvuzEnCJoM aBt+5R9xvpZuH6VWgibfvRFogMPmYxnd17Bo/V9p85+dWUAeLIng5X+wS/wh7yAjQxlTSBt1789 syEUVBklWxrkUqM4zSd++/qU7JrIDHBqjt59W/sX6DjQJ86r4a/2V9KI= X-Received: by 2002:a05:7300:aca6:b0:2bd:d3f3:b0be with SMTP id 5a478bee46e88-2be4e03ed55mr4097402eec.20.1773036853742; Sun, 08 Mar 2026 23:14:13 -0700 (PDT) X-Received: by 2002:a05:7300:aca6:b0:2bd:d3f3:b0be with SMTP id 5a478bee46e88-2be4e03ed55mr4097377eec.20.1773036853215; Sun, 08 Mar 2026 23:14:13 -0700 (PDT) Received: from [192.168.86.165] ([76.176.48.107]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2be4f807a30sm7572370eec.6.2026.03.08.23.14.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Mar 2026 23:14:12 -0700 (PDT) Message-ID: Date: Sun, 8 Mar 2026 23:14:10 -0700 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: [EXT] Re: [PATCH v4 3/4] clocksource/drivers/timer-mediatek: Convert timer-mediatek to a loadable module To: Zhipeng Wang , Daniel Lezcano Cc: "daniel.lezcano@linaro.org" , "tglx@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "matthias.bgg@gmail.com" , "angelogioacchino.delregno@collabora.com" , "linux-kernel@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "chun-hung.wu@mediatek.com" , "walter.chang@mediatek.com" , "jstultz@google.com" , "amergnat@baylibre.com" , Aisheng Dong , Jindong Yue , Xuegang Liu , Greg Kroah-Hartman References: <20260304081207.4030882-1-zhipeng.wang_1@nxp.com> <20260304081207.4030882-4-zhipeng.wang_1@nxp.com> <6255aa0f-529c-41cb-be32-e5d54a839125@oss.qualcomm.com> Content-Language: en-US From: Trilok Soni In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: Gpp3LAehv7QtIkUVxh8FXMAA1f11Xifs X-Proofpoint-GUID: Gpp3LAehv7QtIkUVxh8FXMAA1f11Xifs X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzA5MDA1NSBTYWx0ZWRfX4THSY9exY4+0 8brVrkVqcIuSGjK+gJQQJfrXHsTUDM4yAVF4Lio1+41FejT15dqF1rmCl8KNrOZiOJne5wGVZ4S KZimVp6C4p2GYUqfGjX1tbsxkuy7mT+o8B9Dmccsiwep6+RjWHE7UwKAeDH/EGrEefXL15biPzf NNzfiD/+JHq7iYa6bCC4y2UKEW8KBCbtYWmzhiZ8VjLsvlWhfKEPJZpWTnEE2Y63ks73q/TWCk4 GNvnJhveD1thfBWUCGUToAr1Q/o7IB7qD9f9GrZGbLhgHNgIsfQwiZH8/9+qusWPveHk1hNoNl+ /COSpVUYh7w2oaZoi2+iZT2bRej7wlkuvkNLdS/yDjZUHy2U1raWMBOvASjdDpF/IgdOBj8OLKs a9MBS86Lg+Ev2l5EPV8w3Ob5INN+xImUb7YoRQG6pY4SWaBFyrnw5CnZsBFDUcTA7fxspe7S1vw Ro5IVPDFZNo31Pq89/Q== X-Authority-Analysis: v=2.4 cv=dcqNHHXe c=1 sm=1 tr=0 ts=69ae6536 cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=lsoD3MMNObdLvy1227ExmA==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=_EeEMxcBAAAA:8 a=EUspDBNiAAAA:8 a=8AirrxEcAAAA:8 a=KKAkSRfTAAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=QX4gbG5DAAAA:8 a=JfrnYn6hAAAA:8 a=mpaa-ttXAAAA:8 a=1XWaLZrsAAAA:8 a=IpJZQVW2AAAA:8 a=rNfcLUUj_lrWDsM3rXQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=czjwGCTIUPoA:10 a=PxkB5W3o20Ba91AHUih5:22 a=ST-jHhOKWsTCqRlWije3:22 a=cvBusfyB2V15izCimMoJ:22 a=AbAUZ8qAyYyZVLSsDulk:22 a=1CNFftbPRP8L7MoqJWF3:22 a=IawgGOuG5U0WyFbmm1f5:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-09_02,2026-03-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603090055 On 3/8/2026 10:31 PM, Zhipeng Wang wrote: > Hello Daniel, > > I'd be very happy to collaborate on this! > > My availability: I can dedicate time to work on this over the next few weeks. I'm happy to help with: > - Testing the new macros with IMX timer drivers > - Converting existing drivers as examples > - Reviewing and testing patches > - Documentation > > My understanding is that, based on your RFC, we should use two macros — TIMER_OF_DECLARE_PDEV and TIMER_OF_DECLARE_PLATFORM_DRIVER. > > BRs, > Zhipeng Please don't top post and something is wrong w/ your email fonts. Please fix. >> -----Original Message----- >> From: Daniel Lezcano >> Sent: 2026年3月9日 3:51 >> To: Zhipeng Wang >> Cc: daniel.lezcano@linaro.org; tglx@kernel.org; shawnguo@kernel.org; >> s.hauer@pengutronix.de; kernel@pengutronix.de; festevam@gmail.com; >> matthias.bgg@gmail.com; angelogioacchino.delregno@collabora.com; >> linux-kernel@vger.kernel.org; imx@lists.linux.dev; >> linux-arm-kernel@lists.infradead.org; linux-mediatek@lists.infradead.org; >> chun-hung.wu@mediatek.com; walter.chang@mediatek.com; >> jstultz@google.com; amergnat@baylibre.com; Aisheng Dong >> ; Jindong Yue ; Xuegang Liu >> ; Greg Kroah-Hartman >> Subject: Re: [EXT] Re: [PATCH v4 3/4] clocksource/drivers/timer-mediatek: >> Convert timer-mediatek to a loadable module >> >> [You don't often get email from daniel.lezcano@oss.qualcomm.com. Learn >> why this is important at https://aka.ms/LearnAboutSenderIdentification ] >> >> Caution: This is an external email. Please take care when clicking links or >> opening attachments. When in doubt, report the message using the 'Report >> this email' button >> >> >> On 3/6/26 06:46, Zhipeng Wang wrote: >>> Hi Daniel, >>> >>> Thank you for sharing your RFC patch. I think the approach is very >>> interesting and addresses a real problem in the timer subsystem. >>> >>> For the MediaTek and IMX timer driver, I see a few considerations: >>> >>> 1. Current approach: My current patch uses the existing pattern >>> (similar to renesas-ostm.c) with #ifdef MODULE. It's simple and >>> works, but I agree it's not ideal. >>> 2. Your approach: Your TIMER_OF_DECLARE_PDEV approach would be >>> cleaner and allow us to use devm_ functions, which would be a >>> nice improvement. >>> 3. MediaTek and IMX timer specifics: The IMX timer doesn't require >>> early initialization on modern platforms (we have arch timers on >>> ARM64), so it would fit well with your >> TIMER_OF_DECLARE_PLATFORM_DRIVER >>> macro (if you go with the two-macro approach). >>> >>> I'm very interested in your approach. May I ask what timeline you're >>> considering for your patch series? >>> The reason I ask is that we're working towards GKI support and I want >>> to make sure I choose the right approach. >> >> Well, if you are willing to collaborate, we can start right now to think about it >> and propose an unified solution >> >> >> >> >> >