From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=67.231.154.184 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796169123; b=vfet9iT6dNVZvnvXCllaNYUdj4EUQM47YxPebz4eCPA9S/lq5oSZDaWDLLfyuAFWe6Fp 9rzNImp2d42PMiLQIVucHcRAgeIrnYsccat3xFNy0cMsc/EWcQDqmDwYG3LIIx3fV3sRb XWqnrZY2we4gNc45FmfFLP4ffPiaejOjwAZ44s7+DpG1n6GE4SH/A6OmlY4O/42BXetzk sRUgW3lE/vR8h8W5mg4vu9eTWzB0mvlK4uUmPrEzhn7IMIIUyZ52b/3bQfJ3gP7PnAt9P VUsJeQFmvJ4JuKNJ6Fx0xIxdzs5xkQm5mipUSm++xJvS2Jn8tqoos/kSXUfIXDooxgQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796169123; h=DMARC-Filter:DKIM-Signature:X-Virus-Scanned:Received:DKIM-Signature: Received:Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date: Message-ID:References:In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:x-ms-publictraffictype: x-ms-traffictypediagnostic:x-ms-office365-filtering-correlation-id: x-ms-exchange-senderadcheck:x-ms-exchange-antispam-relay: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report: x-ms-exchange-antispam-messagedata-chunkcount: x-ms-exchange-antispam-messagedata-0:Content-Type: Content-Transfer-Encoding:MIME-Version: X-Exchange-RoutingPolicyChecked:X-OriginatorOrg: X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MDID:X-PPE-STACK: X-MDID-O:X-PPE-TRUSTED; bh=izIrtYoBDKCgOQaIzAwSSn3yKd2doyNGsnknTlc0ZZY=; b=t44pm0n5CM0szcAeE6h8RwcIm8/yoQ175i0HWzz3uWAqK55VnZ+JNoPaG97eUuUQ7wRm UdyVkH4WleFfP6RVER8ZuPwu5tgEjH8EPvJFgsRnN0vLB9r0ivhbxS69VGy7DfwkCJVLW 0Cl1f24ocsZaMFBgVhACRqEj7R6Ix4J2oRsFl/nHwIZMOwba4Zsh3elV0BDSbZMxYekdu maUL6LVZIviWnfS68d1yZnSHoWYW6AKaHIjMfO9L1EwaUSFcY8bsTbSZUFqNiX6djGJGy Ub/Yd6nv/bI0BWJrJEP6c9dN+uaQF20hVzs3upEVYWvZbD1S2G2yeAkoKdjNWFASQ0Q== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=sitime.com; spf=pass smtp.mailfrom=sitime.com; dkim=pass header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=D7+yqusT; dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=Br+yuJw5; arc=pass header.oldest-pass=0 smtp.remote-ip=67.231.154.184 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79ECE606A699; Tue, 1 Dec 2026 23:52:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 79ECE606A699 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sitime.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sitime.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=D7+yqusT; dkim=pass (2048-bit key) header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=Br+yuJw5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sitime.com; h=cc:cc:content-transfer-encoding:content-transfer-encoding:content-type:content-type:date:date:from:from:in-reply-to:in-reply-to:message-id:message-id:mime-version:mime-version:references:references:subject:subject:to:to; s=mail; bh=izIrtYoBDKCgOQaIzAwSSn3yKd2doyNGsnknTlc0ZZY=; b=D7+yqusTReT+OICad1bGV/1enx43l7FPAj/bwkeIhtdhB6rU9gVWPb9b9/efMPJkhHr+Jp791kYvRwiCh1retucMXzUhLv9qomIV4iGIfBVsP2a6K2ioC19JGKSb36Ncgqm63eBdX3KJIB+Ghy1ZqZnHTl0PVNYwTGP3sqgcOFzxM+uOZswynqcHm1ioo35IjnNPL3Lo+lB0Hc1wVIsX2PyiVd4VdaqVCneJMgB933jYzuCFGonY3ptoLpXaDYR6+AtXttg1dJ3hNj0hjPH0RTGUtEy7ogvleQYb+ZUqMyBN8JW1q63f7dzNGq8l1Y0xmPq6IEIt1z3k352KBCrNvg== X-Virus-Scanned: Proofpoint Essentials engine Received: from CH5PR02CU005.outbound.protection.outlook.com (mail-northcentralusazon11022089.outbound.protection.outlook.com [40.107.200.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 36224300073; Tue, 1 Dec 2026 23:51:55 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SZaEOu5x8dCD3NxL0inxSJcfZ/yWt2V7X+7IxIKuS233dGyqLA63Vt1FfmtahBHN6CA72xnVNycUxSDbwLA7OEIIk+tVGovz9UOSPtuMInDfIsV0oNtFfTfarudkdvozQWOu/zKz+es9IuOqNXCIuD1tLKYSEU395x2tcyLSvVTT1a5H98g90eKwfY71Rn8l5moVVSnFAFsKV90PaB1eEijWAFVFs8jX03Sxopi4RdsOEsuJA+cx13/eRXpt4JX10gjezZv5p6fnsebvh2XmuB4WQB+3lAPq1xXEesaO5P6vrop1ba5/w6xEmOW8a2A903YlnbQaOpxPtvRq4HvfAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=izIrtYoBDKCgOQaIzAwSSn3yKd2doyNGsnknTlc0ZZY=; b=rGe2TA213Ajsw2XZNVbLfWUxNQTZjHrE+rs+1ZZmqxzsUDxaRLAZW9KxFpl08AoHz0Rfb9vkMZbQg4tM6eb8x2r5TlJVN0/yr1q+5eagI1ALD83KznejYiIjpYiT4Z/FvdnQjACX5/z2ynUALD+LVL2FdDvV4jBXfj2VvyfDvQwVjU7v1UWdzvTSWDstUoVHaMnTG+yC9/Bwgk9DFYtYOk+Nd0DWmfxqcZftiuJAECh98SURHkpzQZhMWqh8KPcFiAz6Tss1du79Fx5jM/UEcRDxPh8RubjYx060PBX0F9IoAOYu8PZeOAs9cJAewRipcalvVhO7qSXRfKdW1KlBnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sitime.com; dmarc=pass action=none header.from=sitime.com; dkim=pass header.d=sitime.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Sitime.onmicrosoft.com; s=selector1-Sitime-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=izIrtYoBDKCgOQaIzAwSSn3yKd2doyNGsnknTlc0ZZY=; b=Br+yuJw5bY2Nb+oe3ydez6E+7rw582G5/22sxTVMfxqfq/K4M9d6X2DpP2cFdqkhPcupS+nb/IB7F+h3JdeS7lCEZ4R1PuAQYBuW7mlR737YQVICaKjmf8CJTLMidJxbvxv/dFxuHSjmab9JJ3YarXTXBZnIlus3sr8QiXhoZcOFrwbQXPtWWeuTPAztzrJI37j+029pOONjtB+F/vvGsaa8r3xnkUKNt8gM7OQsETH6HpuoG60qgrhFm36+e2c9gbh+kcSTNQzMgupVNmdiMBMIydpXdM7M6yODPYt70XiF+5lBv4sVUkz+gSbJKT5a8I32oyrFDdyfLfl9SEySsA== Received: from LVWPR20MB994915.namprd20.prod.outlook.com (2603:10b6:408:3bf::16) by PH0PR20MB5775.namprd20.prod.outlook.com (2603:10b6:510:28c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Tue, 1 Dec 2026 23:51:41 +0000 Received: from LVWPR20MB994915.namprd20.prod.outlook.com ([fe80::9551:3864:128b:8c01]) by LVWPR20MB994915.namprd20.prod.outlook.com ([fe80::9551:3864:128b:8c01%4]) with mapi id 15.21.0688.009; Tue, 1 Dec 2026 23:51:41 +0000 From: Ali Rouhi To: "netdev-bot+sashiko@kernel.org" CC: "jiri@resnulli.us" , "vadim.fedorenko@linux.dev" , "arkadiusz.kubalewski@intel.com" , "ivecera@redhat.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "cjubran@nvidia.com" , "Oleg.Zadorozhnyi@devoxsoftware.com" , "prabhakar.mahadev-lad.rj@bp.renesas.com" , "devicetree@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next v16 04/13] dpll: add basic SiTime SiT9531x support Thread-Topic: [PATCH net-next v16 04/13] dpll: add basic SiTime SiT9531x support Thread-Index: AQHdeHlq1OdqxbhZdEW7PoIhuZdsp7c8Z+QAgAyE64A= Date: Tue, 1 Dec 2026 23:51:39 +0000 Message-ID: <20261201235136.95422-3-arouhi@sitime.com> References: <20261119225752.41846-1-arouhi@sitime.com> <20261119225752.41846-5-arouhi@sitime.com> <179548083614.3135.11915403348553233279@kernel.org> In-Reply-To: <179548083614.3135.11915403348553233279@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sitime.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LVWPR20MB994915:EE_|PH0PR20MB5775:EE_ x-ms-office365-filtering-correlation-id: 6b5d51b6-9177-47e2-28e7-08df50060c09 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|23010399003|38070700021|10067099003|56012099006|5023799004|261022075727099003|261021121427099003|261009223027099003|261102123227099003|261022105027099003|261028144727099003|261026140227099003|261026121527099003|18002099003|22082099003|4143699003|6133799003|3023799007; x-microsoft-antispam-message-info: rDd++Cp/y9RcXANMdJzSRqYbEz7MCenRiot6/8EkDoIR4Z27/yeKkLaYVA0hlE8o2lm1W2vU14lDrU+g1CuYWc1gleIKSCBoA0av6DWDuIP+wqVtO7YG77SDmEM0/caFZQSPF1ixEUTSXueF3Nnbf8Y9NVOmAEzGJ+qipWDCxWJf1bESt5L/Qay5fEt0aBmuzCzpkEf6JD9SPcUgLUC5zKGjAC9dhzKq22M6Ri3yhebu1aVfVutmnL5ynSCzeQYPcYdEGsAFWwh7J7b63iOnMaPd8eSvM5TfDiiqtiFnVJCqFvastFLiAwGf8WocVyiI+ui2TGvOYYhJ2LNi/+opAoRsjSECrO/PV2V+kF02trtbmULuA7ybFrmPahPrI8sJFJbjWiyuRDav4FDO/jRmJ2KaaKdkg6V0+/REUGI5byguveuSBjQvGZWQDWZRCFygvBwRx0RLCFqywqs+3nVOjXJRC1wcwuzWjY/cJ+ytxriUUIDTOwcojI0qrx8NPFUBoeG6YZzM9lhTceFxmTEsKxp6o+CLDEMZ9HSk1QLVIK9xwRZJmiJuDt3fxYkliFqr+zmL5sJar9JhWGiUEiERzo9htp0TLifQwo5AVujBOAojgRjzzk5Rc+x9VZ73+sZwG8EnROxAalUN8IPzbASobqG6XdBq7mhf2vnwIQR4OixFPOvOQH9GB9Xp8sAYRARpXPG/7Nz1bxFTr9RO7gNe1Xi2vJ3XDlmcjEsz7DWGr4o= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LVWPR20MB994915.namprd20.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(23010399003)(38070700021)(10067099003)(56012099006)(5023799004)(261022075727099003)(261021121427099003)(261009223027099003)(261102123227099003)(261022105027099003)(261028144727099003)(261026140227099003)(261026121527099003)(18002099003)(22082099003)(4143699003)(6133799003)(3023799007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Tw/OYun/1EYX6u0NlGruF+5swuPnEY/eP80hTdjALD71jlVO3RMWElCu32?= =?iso-8859-1?Q?4EaZ2GkStOg9wOw+q4yBMWK+X13MjTJTrkCrPLXKwAK9Y9AkU5UGKEtDHO?= =?iso-8859-1?Q?NpKFHhAJX0Gtlv0sdqGv8ounroq5TpZr0B9uklHkY2165LLiv/yv4WoH6N?= =?iso-8859-1?Q?Mq5sMlzq6xQS8N+SI57Q0YjUxt6+44sBz+xGAAwmdK95s/fkFU+oCu00Cw?= =?iso-8859-1?Q?j+uylr1eJ/nlNVV3LrMxeHVwEmK/rdO09vBV2MxEnckmTdmw30NdgU8ga1?= =?iso-8859-1?Q?f/MHqIg9XUOBdG+quFvfoaGjze+apyWHbpRX9o56oIPI0MHzjtMTXDX7W3?= =?iso-8859-1?Q?Y9x3Fb4N2HjMnRLDW4wFLwjl9E5IrMlbhap4pv7ZAcIrWZYfeoIwobzYMj?= =?iso-8859-1?Q?F6tkeLFa0sjJrLhuJYFHcTveBccCR+fyse6gl13DwxgZeztlyWnvoJ3NGg?= =?iso-8859-1?Q?nKIsDzMdhuIL78FbzREEjTqiTB0RrhKmnDvmF4VqPbmD1kLpBPZ6YzCtb5?= =?iso-8859-1?Q?I4ighECpIkqjpvketdTiLy44/DpyWx47nrDzt960y+kMdliEMDtQRdpJ+n?= =?iso-8859-1?Q?JgUJmOTOS2xQiQUyeNbwgV2q2ZJOTixsIW5VsqfeEfNNECKnEELYxfsIzc?= =?iso-8859-1?Q?JNPud1jC732afFqjETNluwLCISSQMzqROr27ulaTV3Kg1dVBIicbmF671f?= =?iso-8859-1?Q?eWY7EqgwswWb9aFbDFY11I/DQ4izt1zbe4Xeol0h9ZFrsNmJzeUWJFa8rd?= =?iso-8859-1?Q?ya42K7tGOw4/9oZEiQtbGW9JAzHMpPcAgs9xVhIdKXdCGF6NO11cwcwFjU?= =?iso-8859-1?Q?cQ0njXTKBUuQcS2eGDF2kTchb1Y5cA1/6cX5z7YdxwxuziywO1mQJcdget?= =?iso-8859-1?Q?+FQzy7Uv8AbXVP3awhkRzogGt3sN2SJI3YN06YbAd1Pp0/HksVrD+gQC0J?= =?iso-8859-1?Q?EnyFb7xwG5yQstyEk53UKyL5RsIbSapC+mCqnx0oW2NCQHBRVWZsRNDEcP?= =?iso-8859-1?Q?JTPVX7c1N35xIt9pzNi465d/qJNMUO11EUMbg10YyvdxU6lGE6ViV59HcG?= =?iso-8859-1?Q?h5POTX9QsbgEWNQZSSIHhM7Q2brP9q46mjMNzZTmO7hCZ++LvY8SCE0V1T?= =?iso-8859-1?Q?vucowP4urMFVqsM4ELqPKnxBUXDuFgtiLkHD2rbosnpddxSXh+tsFcO46w?= =?iso-8859-1?Q?ltLNRqpDbBTrM2A4lonwRumcyyzP+sV+oF5ajyPMwgovs/3dEp6x8AJaHi?= =?iso-8859-1?Q?E6frnbzs8NE3PWjPuMjkmG9/Czl35FsWxgHh6FsdDocF1lcdZv1ce2eJcS?= =?iso-8859-1?Q?bQbD4GdzEMRuTbXIuZMpKljvoHDHnlQAz5QAdSYCoz/5y+YQLJsWvEBvuf?= =?iso-8859-1?Q?3Tm2TTmGIoxO3PwAY0nyZIDo1k1SyyDi4y2rh3zB6IUa7EUGS9LoNKlZP6?= =?iso-8859-1?Q?7zg5mcgF/NFVB1INfILr8Vf/n1s/RVKfTWOl34zQhtzTyCpwGWgrhS9oHV?= =?iso-8859-1?Q?8HwZru5uIx5n891Z9bvT9X0y6Ca89JVtP8K/PsZUY4R3v6sGMqzUa5Kndt?= =?iso-8859-1?Q?yMpPzCzoBNI5+rfb0bsKqFONKeGmdbRcUhZdkydop9DYDvA0igHVGxvrF1?= =?iso-8859-1?Q?I/GYBg6v0ELfmyA0eIjyS7NLvV7rJ8SczKCjGlPxarL6v9bTNTeYsnzqOp?= =?iso-8859-1?Q?w2DY8PTG3dV+3ab9DzIT97dlArDmokGoUYTzJGI6n4zevZ6wH74a33Bsdv?= =?iso-8859-1?Q?Lyipc30ToDA3OqsyN99S13Qdu9XO5f0XlsB/Qj3d9BM3+b?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: HiyEnaFLnmWPyDB6LtlIAdcCe6PBodJngar/B9OmdnWDGM90NQ1X4zzkESEtd7CSoBasjdnNXw1J9jhWT3PUT4MpwTUt+AiTON1/spZ/ySZpPsbprEuirPAnRkDlAiZwj4LhDdqOmhskbBCV10ypZdz2H4+plkW7wOS+cVw5ksCF109t+TjVxppphnrwl3nyI2IdOiDR1fBE9cJ9Og7/uVfIGje/+m7AZq42am43uymdlltscZGZe6kimCdwWvxF6tZJAWLUce4lp56JMRdoXM0ZF52G2qWyqEbRD04v3HPcb6X+LJ0+IWQrvR8YiXO9G8f6N7IIdPqvtGxQiOUDGg== X-OriginatorOrg: sitime.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LVWPR20MB994915.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b5d51b6-9177-47e2-28e7-08df50060c09 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2026 23:51:39.3531 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8fb55916-cf10-4b0d-96f4-cf3952657263 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gMoIqIWExa1eWZ34JM0KcO64/8hMkVSqXEqWB7ND6MVU2aoRYNXxm/c9FmYy6GzcUHKIXEaGIPZmre91fu6HPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR20MB5775 X-MDID: 1796169116-vVLNhBw1NGpW X-PPE-STACK: {"stack":"us1"} X-MDID-O: us1;at1;1796169116;vVLNhBw1NGpW;;5de2396b9b83917d02f0372d9ae54394 X-PPE-TRUSTED: V=1;DIR=OUT; On Tue, 24 Nov 2026 00:40:36 +0000, netdev-bot+sashiko@kernel.org wrote:=0A= =0A= > > The register space is 32 pages of 256 registers, selected through offse= t=0A= > > 0xFF of any page. The regmap is the flat 256-byte window, and the=0A= > > accessors select the page under a lock. A regmap paged range is not=0A= > > used: it reads the selector back on each access, which doubles the bus= =0A= > > traffic, and a debugfs access would move the page under the driver.=0A= >=0A= > [Severity: Low]=0A= >=0A= > Does the debugfs part of this rationale hold for regmap ranges?=0A= >=0A= > As far as I can tell, _regmap_select_page() in drivers/base/regmap/regmap= .c=0A= > selects the page again on every access through the range, under the=0A= > regmap lock:=0A= >=0A= > ret =3D _regmap_update_bits(map, range->selector_reg,=0A= > range->selector_mask,=0A= > win_page << range->selector_shift,=0A= > NULL, false);=0A= >=0A= > So a debugfs access should not leave a range-based driver with a stale=0A= > page.=0A= >=0A= > The flat window chosen here looks like the design that has the=0A= > page-tracking hazard. sit9531x_page_select() trusts the cached value and= =0A= > skips the selector write:=0A= >=0A= > if (sitdev->page =3D=3D page)=0A= > return 0;=0A= >=0A= > The regmap debugfs registers file for sit9531x_regmap_config dumps offset= s=0A= > 0x00-0xFF of whatever page the driver last selected. It does this without= =0A= > taking page_lock, and the dump does not say which page it shows.=0A= >=0A= > Debugfs writes to 0xFF are compiled out by default=0A= > (REGMAP_ALLOW_WRITE_DEBUGFS is undefined), so hitting the stale cache cas= e=0A= > needs a source change.=0A= >=0A= > Could the commit message describe this tradeoff more precisely?=0A= =0A= No, and v17 drops the debugfs reason. The message now gives only the bus=0A= traffic: with no register cache, a paged range reads the selector back=0A= on every access.=0A= =0A= > > Suggested-by: Ivan Vecera =0A= > > Signed-off-by: Oleg Zadorozhnyi =0A= > > Signed-off-by: Ali Rouhi =0A= >=0A= > [Severity: Low]=0A= >=0A= > This isn't a bug, but core.c, core.h and regs.h all name Ali Rouhi first= =0A= > as Author in their headers, and MODULE_AUTHOR() lists him first too. If= =0A= > he co-developed the patch, should there be a Co-developed-by: tag right= =0A= > before his Signed-off-by:, as Documentation/process/submitting-patches.rs= t=0A= > describes?=0A= =0A= v17 adds Co-developed-by: Ali Rouhi ahead of his Signed-off-by, after=0A= Oleg's Signed-off-by as author.=0A= =0A= > > +=0A= > > + /*=0A= > > + * Fvco =3D Fref * (DIVN + frac/2^32); Fref is the rate of the XO fee= ding=0A= > > + * XIN/XO_CLK.=0A= > > + */=0A= > > + xtal_clk =3D devm_clk_get_optional_enabled(sitdev->dev, "xtal");=0A= >=0A= > [Severity: Medium]=0A= >=0A= > The comment above says the goal is to avoid gating the XO of a running=0A= > part. Doesn't devm_clk_get_optional_enabled() still gate it on every=0A= > failure path after this point?=0A= >=0A= > drivers/clk/clk-devres.c implements it as:=0A= >=0A= > return __devm_clk_get(dev, id, clk_get_optional,=0A= > clk_prepare_enable, clk_disable_unprepare);=0A= >=0A= > So devres calls clk_disable_unprepare() on any probe failure after this= =0A= > point, while the part stays out of reset and configured. That includes:= =0A= >=0A= > - the "no xtal rate" -EINVAL return=0A= > - a gpiod_direction_output() failure=0A= > - a transient I2C error from sit9531x_read_variant_id()=0A= > - the "Unknown variant ID" -ENODEV return=0A= > - a devm_mutex_init() failure=0A= >=0A= > The driver has no .remove and is fully devm-managed, so a sysfs unbind or= =0A= > rmmod gates the XO as well.=0A= >=0A= > Later patches in the series add more failure points after the XO enable= =0A= > (sit9531x_devm_dpll_init(), devm_request_threaded_irq()), and the XO is= =0A= > still devm-enabled.=0A= >=0A= > If the XO is gateable and this driver is its only consumer, won't this=0A= > stop the reference of a chip running from its efuse/NVM configuration?=0A= =0A= devres balances the enable on a failed probe and on unbind, as for any=0A= consumer. A clock that must keep running with no driver bound is lost at=0A= clk_disable_unused() unless its provider marks it critical, so holding=0A= the enable while bound can't be that guarantee. The reset line and the=0A= supplies are requested before the enable, so a deferral does not gate=0A= the XO. The v17 message says what devres releases.=0A= =0A= > > + return dev_err_probe(sitdev->dev, rc,=0A= > > + "Failed to release the reset line\n");=0A= > > + fsleep(10000); /* internal boot after release */=0A= > > + }=0A= > > +=0A= > > + rc =3D sit9531x_read_variant_id(sitdev, &variant_id);=0A= >=0A= > [Severity: Medium]=0A= >=0A= > Should probe get and enable the supplies defined in the binding before=0A= > this first I2C access?=0A= >=0A= > The binding in this series (sitime,sit95316.yaml) documents vdd-supply,= =0A= > vddin-supply, vdds-supply and the vddoN-supply rails. It says they are=0A= > there so that "a board with switchable rails" can describe them, and its= =0A= > example points vdd-supply/vddin-supply at ®_1v8/®_3v3.=0A= >=0A= > The binding commit does note "The driver does not enable them", and=0A= > sit9531x_dev_probe() makes no regulator call.=0A= >=0A= > If the rail is off at probe on such a board, this read goes to an=0A= > unpowered part. Probe then fails with an I2C error or a misleading=0A= > "Unknown variant ID", and nothing points at the missing supply.=0A= >=0A= > If the bootloader left the rail on, no consumer claims it. Wouldn't=0A= > regulator_late_cleanup() then turn it off? It only skips regulators that= =0A= > are always_on or have a nonzero use_count. That would cut power to a=0A= > running DPLL and drop the efuse/NVM configuration this patch tries to=0A= > keep.=0A= >=0A= > A separate point: when reset-gpios is absent, nothing waits before this= =0A= > read, because the fsleep() only runs when the reset GPIO exists. Does the= =0A= > part need time after the XO is enabled before it answers on I2C?=0A= >=0A= > At the end of the series, drivers/dpll/sit9531x/ still has no regulator= =0A= > handling.=0A= =0A= Yes. In v17 probe enables vdd and vddin with=0A= devm_regulator_bulk_get_enable(), and vdds and each VDDO rail of the=0A= variant when the board names it, before the XO and the first I2C access.=0A= Probe then waits the 10 ms start-up time, with or without a reset line.=0A=