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=1796169122; b=ebv84IjhNoMNmSCD42vAGHEbnTf1KJUC0EaIUlXoKGxgwtnUK1zgPtFccPNXmGgy391A gYQhwaVjTyFrQQex8Y3/JkaHNUpjIdIDnBKDtxq1IrMKOjPrSEQBwN3zkIcQT7+/0BETp WGHYOn/8YvvtfkxWNGVLKwQbBWYXUWR7xFkTQcAbdS8Yx7LG5b2zGIGiO4Ns2D6wstLtM 5YF+WigzSjljrNEqKJcTusp/7rs8WwAITEf5WwsznK5Bh/qYiahsWFsDMN24ujGqTHRZc OJoCPdnNHr/l/B+HDwgQbs8ER0kbVg3z7WecvCxLEW/z/nPKqMj/7D49hz8vwvMvsTg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796169122; 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=NQF694A5ec8hpkRrroCyr9V7Dh+xQNaTqLUyoFjr9is=; b=L1Nsva+u7SN97Tn7E3zal+ypsPNFGdZyWisNkbb670VimSVwbqgnH9/1OPjgDaNKFBfM Inzz4meSW55Lz6gsFF2OXrL2l3QFH2x39Q9YSQUb/naJ63VLF2Gr3LmD/o2F1NU0SzmYr aL7rIioI0lcOKRM97gOMg4S9rCn26KkyucI3W8L8xTz9RVTBe1M4lp565kWeSn6yOmTgR PWkr1mhk3UKWS+fbelJP4P/s8gLJeNf21wceE69iv3bpdZTt2/yZE70JLAd/PvVGLHPIu Kxw0NexiSy5IGp/aan/JBEKdTfG9QBJSbkozxH9VovXGHkQ4cjhqAvSKm0JaCpmRVEg== 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=Fd3muSdZ; dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=urOocEL8; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95123606A337; Tue, 1 Dec 2026 23:52:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 95123606A337 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=Fd3muSdZ; 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=urOocEL8 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=NQF694A5ec8hpkRrroCyr9V7Dh+xQNaTqLUyoFjr9is=; b=Fd3muSdZV3kerHJ9ZIBK5+0HJkGpyneml0VYFoDdlmLvnPFrMGOiuT7yMRmEVjutxAt+dQQi5cpXZvsqDq/ve9Xqh4EP2UM2utM/v0BiMaFBekh9usGhTYzndtrZsJPn0eGK3dDQYCIoQIgQfulvn1OgYygbM12uNIF+pPibktWmQhw7YGSKZxUfPJsRHz36/zuHy6KrChsNYgSDjs7mqXRfQfMlnYhYKMt8S7ouR3Nz1M9fsvaztYu2wGrOm8Tev4yg1vE1oDHaKU1ML4UvDXRvYURAl11MecWBncUB9ldJasj4VnGQ6HwaxOOZyG7upkBmadOA+hYDDQkfZLLPMQ== 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 54434300067; Tue, 1 Dec 2026 23:51:54 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=d2ziYc/zwUPB/i+YbzGDQggpLldWqy7gCUvuAVAfP3po6CH66om81EAfUKLKpGvb4QOX3BdPAkrmS8AXwrGrMioqwEzI7UjSoN7M4AkwLfLxwE25CxkEfT097UWyEWILwO/hfJHnEgv9KKAn47nCrbqbkIPP3BaNi6QlZEPWdJQLTZU46HPLF1UvcZcmiYGeqTcCdZS70ENB1ln6723zC3xpnMezgWxpcBfbRa2geyQhiGLNr61ag8HWQBYQXp3hO/UnOMJ5PlUtwv7brS+dRdgFn4UDhxf8nbqPSZo/lgSZmyS5hufPoJD3q7TdR2xLQQEpTE9N0FRKyzW+1NKiWA== 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=NQF694A5ec8hpkRrroCyr9V7Dh+xQNaTqLUyoFjr9is=; b=xw7JSlSAWk5fooFvG0I0B4/hJE4E7qG/9SGp8kcM8ZHm7VmtJ0WZ7tDVCgwK8uABbpJDmMHiFwavpXw66mVViv58aeKWotGfiUYPWYrTwYUP99E22UARULxWAZs5r9xslrEl/RCBOU8EzKX1QBS0JkAkcJXTBwA3OEn+4pZNcIq5SfD8q81pjY3l/g5lWl/rf1HAFbCzQ1owotoBpJQuPC2AS6eQbg5tTq4F++H4WDJsemrt6zayJZBWhJ1qK6csZ+stGp7HEOtrciWcqyLHHH/cqfOlbOoikLEnlQVaqJLiGFlcpUBFBopdzDll2MR/NsRhj4FKtinoJ5mn6aZiCw== 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=NQF694A5ec8hpkRrroCyr9V7Dh+xQNaTqLUyoFjr9is=; b=urOocEL8WFr1CpTd/xkr0X5mmLDYSuNXX/SnMRpoA0ywU9shKrQrIZlK/+p/9m1ojDV46ZbfwsnxSMdJz7HrLiF++I2e8J7SrpLA08EnqKo6y14HSDCakJCS62bCYESG5WeTbqdL5FRQUK1zt8+W5sMrlvpoUm+a48kxRkFfDZ6WLQigijrbKUVSS9641GCsOHppcqNy9NLmfDh4SszFx+WEnc2mroKnlOxWoIi1MRsZLxeA6sAMyYkZEcfjqMUwgXmY/2PTdPS7IAgjfZeismFeYAqgSxnUf7g2QQ+dCRZu8bXYKZgOBt86rerqh4ZF6lDxCBrwoG9dUMVnB1N9Qg== 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:42 +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:42 +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 08/13] dpll: sit9531x: add support to get and set priority on input pins Thread-Topic: [PATCH net-next v16 08/13] dpll: sit9531x: add support to get and set priority on input pins Thread-Index: AQHdeHlrm26SJ940q0qREDOA+ywtLrc8Z+0AgAyE54A= Date: Tue, 1 Dec 2026 23:51:41 +0000 Message-ID: <20261201235136.95422-7-arouhi@sitime.com> References: <20261119225752.41846-1-arouhi@sitime.com> <20261119225752.41846-9-arouhi@sitime.com> <179548084402.3135.10043442329542996745@kernel.org> In-Reply-To: <179548084402.3135.10043442329542996745@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: 56fb8c58-5ef4-43e9-431b-08df50060d12 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|261022075727099003|261021121427099003|261009223027099003|261102123227099003|261022105027099003|261028144727099003|261026140227099003|261026121527099003|18002099003|22082099003|4143699003|6133799003; x-microsoft-antispam-message-info: FtN60/obQmbw9cet0AEVSMDiq7eY8Uxu82L2aVeo3PDtT9T6ISh1guELdNy6Yv54ESDDfiFksg/Lv5Z45Y6YW3Cn1fSGpN+sxKKXiwWWSGQDjBiMPb+s+wmIqv1wtJkUFrJNLbm4CD2K5r0yxCDPvWmx7GePw9uIUMcXRRvtZQS+oH6mZJZ08HOQaZzHzvd9p4wp4iWG429dQTm+MWuHuJHQlfBrl3A4g9MqDLsn9QfFrXsWn+eSNN5aXpBU4v4p3FBBXoCYm7c/OKmj51CB6GK8/UdIEYI4jSQKCYIoSbGg031lJnCHNnK7sFUmTswx7+/G+9i5Z+83v0AvHeU89uW5dUufZNCBuucdgtbAF1/OfVfYDEGvHzt9ef72cTVaF1eMtZ4MZx/Pwonvoruvq84FcOBTqgGUMAbzGXGdbcisl5O0RgVeoWY+N7X4wJLa1m7REogD10YP3WYhhC4gLTV23GjC9DwFsoB/Ijk1ADMo0MB1eaPKZn3S3iIKXlcpxp08mTjYj1TZ1/zT26vvpQphpIjLiS1YzK0J1HGIRYiwungwKmLvFxw07iB/EjnCxpFKSUTLiHcoPqvJ8T/WvbNfzonVS3itwha6uigoZqp7sQx5n72wIGiQHSwbRilAkKyorT459UMmjX0Y2liqxfwBvpQMMgi5ldg6CBPDRI05FzqQ4S27ZWv71F3wPcOTemdRmt3vi9sxKH4xxBYEyh82riXwT5tyTYFxQFg3Fms= 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)(261022075727099003)(261021121427099003)(261009223027099003)(261102123227099003)(261022105027099003)(261028144727099003)(261026140227099003)(261026121527099003)(18002099003)(22082099003)(4143699003)(6133799003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Do6Igs3szclVS4xzCBF2nBtUlC7UhWtu9DJDDtQ+x8eMdHU7jo0qgXICRE?= =?iso-8859-1?Q?VmwWKEAtaD32QTuUd40hlCeQ4XLgZhzSse1gxAfdnrun3HgL58yYg0DgFk?= =?iso-8859-1?Q?y8HAEccGvKToVYmObTSRNDcrxqPcWM7wjZBeQYhzlrHfRO1ezag7eUou7v?= =?iso-8859-1?Q?YGxiTsWIQDHsKnZSMHpP5FTVEq7WoQ33EWxaeNE7bv5zrN+PmGkOk78HRe?= =?iso-8859-1?Q?eCYk15KXNfx3yI0KNk9mwTloo6wIBxRNAeev+I24KX6xuynfvoKveAd2+6?= =?iso-8859-1?Q?UlbIJQCLRRyDZDGK66JHrJ9M/G9M2GShAw1O9fQC2G0UcH3Fz+wRTl/5zp?= =?iso-8859-1?Q?Yn44NGelXiIIuHv4I9cDQD3pRdEx7qdcjoOG34VRf3YwQQYUhxt0Tx+/sr?= =?iso-8859-1?Q?/np8Pee/7FDf3oGQPxK/I/JmXWJBCjwI+k+VNWrHmnOZfgXAgKFgDGKryS?= =?iso-8859-1?Q?8FDbe/CnjFIY8MYy/oVn7v7OpBMk5xtky7dIsxq7rf4ryEdn/gH0NEra04?= =?iso-8859-1?Q?FrWc1Vg/h082AKrWjBGryD0bmxK3NCxyPbmbYaYo2u30zLJB+8MTHhOpix?= =?iso-8859-1?Q?+vYMc3anH9j8GDoZiEqFMKwS0899Jd2WJcjvGs1ECS1KSUfiMz3sBh+9np?= =?iso-8859-1?Q?JvAYDQna3kxNRBaKQjEwVb1OUAB3Hj5AX4mCn4G3DsH5f5fBc6noio8ACV?= =?iso-8859-1?Q?G+39Xjs2UBeIVg96I9vzRhEM3V09WqRH7Pgr2HHjJewOskxmMhqR8DTplN?= =?iso-8859-1?Q?9TzofFDQdTpny7xl7/8vAECrOe2RuCGnRHvWULb76GWCggOfixLSiMosTn?= =?iso-8859-1?Q?lMMTXOhC5rnSibPy0gqqgq3BSgWx7ehaXU9FtdAdI9sEYEuTdzu5uLyldS?= =?iso-8859-1?Q?7x88Hu8YV2p4WQ4mTvAY7mIstk8/gHT+QXWF7lPcNt7tAYcBhRiFl4uBxO?= =?iso-8859-1?Q?2NTbuB73ljtw1ZUHW3gMiFa2ZMyUwDpZIcmzFjd28Q5TKqUPw56HcrlEj7?= =?iso-8859-1?Q?tUYStUPbCKni31vmJEWPp4IxaqApGB2dWfEXl57W1e9RzhOg5VeI9eLg8L?= =?iso-8859-1?Q?abbhIIN5+CtD2ClwwFHBRFxGUc+FnbYh3WTKN1HPGp4PDaFXIQlbk3xK+0?= =?iso-8859-1?Q?C0Qr8dq+6QHX9beREyFyRm1BGEm5yQNQMliyFXUq40CfH3txuqOTqBuQ9S?= =?iso-8859-1?Q?5Z5UfsErkTTMSED5uHNG7RnL8HNv2nDybsGsjjppUsNQ4wO+yq1U1uhs5F?= =?iso-8859-1?Q?WRdb4KgRaV+ejbxhJ0R2eXXWMGzS5X+X+jFQjVOPbwSyq5HNQg2+86Jc7n?= =?iso-8859-1?Q?tWd9vbZowggLswB3jqdaE+yfXLKXvXchMmXqvPtf7+/kfTO3suSe07xvJm?= =?iso-8859-1?Q?RM5+q6Fdg1LEH4S0diid4d+Bky/ZMJ1NN2GfeGBwQDvo3MzwY2U6vn50JY?= =?iso-8859-1?Q?znb0QwFEZtv6PSLp1E2ItVEize8b/pkQn0qBZjRnPrPG6Z8aNAbc16MWPX?= =?iso-8859-1?Q?E8ubf9f5vY86BI2SUS4v1gEiU24wb0H/X7Lhuz/0+rQGOS/6hW3E+S+jwF?= =?iso-8859-1?Q?RTvH0fXj59CbXKBRsApT7I3J+NXv8VO9Rnnk5qClc0w85Fq3scdqFkm1hK?= =?iso-8859-1?Q?74OOE05MhrE1GLleHyorsyHTgUuz1D5noYXNpd017eN82SfZ/3ML8uxstw?= =?iso-8859-1?Q?cRdrOhk98b666xZzBm+jUxgj2gyRSEPEN4D17R2RlecraRKwASACwbGPlM?= =?iso-8859-1?Q?m8SRcou1TdP7igVPGgMN1jYGyQZpgGxIjOz2IN40YXqAx4?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: UlSj4FgJ9m/PI4IH4gk+kO/W5Y1+Ki56n36uiDDDMOycwyCNVS/iZ//zr0HR6tSP6xx3UNNaOungk6OyvqQ9F0o1BDCiy2GvqE1r939LLX+KZNJk1MCI2H+aph2fYA5hZSve/mrQ41hG3eCMm/PKtG5JqR2UrYfPCUyILi1vsXK+6wzyDOfRC2KZilzd1DO6zrc+LBQF1bnnh8PHi1SLMHmiSSw1EtWniqZ+xD8DEeC11tytGdLwdv/XkHM1ZJI6Q8QQ65naBztv6B8GG8JMRbSL3XWPW0qupr/pqY+kVM8PyGtK1pcCMoLb6ErHF0npLHzyWRfrShOfvYYj/dYGSQ== 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: 56fb8c58-5ef4-43e9-431b-08df50060d12 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2026 23:51:41.3117 (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: xJ0+NMEIuWCwRW10lbrNDuEfUkMxgmq2gtH401T2pflkwX+A0GwaT0a6lM2ErIP/NB4TzF2En2Bv68hrGgNlmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR20MB5775 X-MDID: 1796169115-c1lVGtyaDVXY X-PPE-STACK: {"stack":"us1"} X-MDID-O: us1;at1;1796169115;c1lVGtyaDVXY;;5de2396b9b83917d02f0372d9ae54394 X-PPE-TRUSTED: V=1;DIR=OUT; On Tue, 24 Nov 2026 00:40:44 +0000, netdev-bot+sashiko@kernel.org wrote:=0A= =0A= > > + */=0A= > > rc =3D sit9531x_input_mon_fetch(sitdev);=0A= > > if (rc)=0A= > > goto rollback;=0A= > > + if (!chan->stale && chan->routed_ref !=3D SIT9531X_REF_INVALID)=0A= > > + routed =3D sit9531x_input_hw_src(chan->routed_ref);=0A= >=0A= > [Severity: Medium]=0A= > Is chan->routed_ref recent enough to latch here? It is only set in=0A= > sit9531x_chan_state_fetch(), once per poll or after an earlier commit, an= d=0A= > the comment above says it is the last poll's sample. Before the pick,=0A= > sit9531x_input_mon_fetch() refreshes only the LOS monitors.=0A= >=0A= > Take this sequence within one poll period:=0A= >=0A= > poll: chan->routed_ref =3D B=0A= > B has a brief LOS, the device falls back to C (and does not revert)=0A= > B recovers before the next poll=0A= > prio_set or state_set on an unrelated input=0A= > sit9531x_prio_table_commit()=0A= > sit9531x_prio_top_live() is unchanged=0A= > sit9531x_prio_activesel_pick() returns routed (B): live and listed=0A= >=0A= > Would the commit then write B into CLK_ACTIVESEL and move the PLL off C,= =0A= > the reference it is actually tracking? That looks like the acquisition=0A= > restart the commit message says this change avoids:=0A= >=0A= > "A commit that leaves the best live source unchanged keeps the routed= =0A= > source as the active selection, so the PLL does not restart=0A= > acquisition for it."=0A= >=0A= > Could the routed source be sampled with sit9531x_chan_routed_ref_read()= =0A= > before HO_FORCE is written, and that value latched instead?=0A= > sit9531x_chan_state_fetch() only reads it while the PLL is tracking and n= ot=0A= > frozen, so the cached copy can't be refreshed through that path here.=0A= =0A= No. In v17 sit9531x_prio_table_commit() reads the routed source from the=0A= status bus before the holdover write, while the PLL tracks a reference,=0A= and the pick uses that value.=0A= =0A= > > + chan =3D &sitdev->chan[pll_idx];=0A= > > + old_prio =3D chan->cfg_prio[input_idx];=0A= > > + old_known =3D chan->cfg_known;=0A= > > + chan->cfg_prio[input_idx] =3D prio;=0A= > > + chan->cfg_known |=3D BIT(input_idx);=0A= >=0A= > [Severity: Medium]=0A= > How does a user priority compare with the OCXO's place in the table?=0A= >=0A= > sit9531x_prio_cfg_seed() sets the OCXO's configured priority from its slo= t=0A= > index in the profile table:=0A= >=0A= > drivers/dpll/sit9531x/core.c:sit9531x_prio_cfg_seed() {=0A= > ...=0A= > chan->cfg_prio[src] =3D slot;=0A= > chan->cfg_known |=3D BIT(src);=0A= > ...=0A= > }=0A= >=0A= > That value is in 0..10, but this function accepts 0..255 for the other=0A= > inputs. sit9531x_prio_table_build() then sorts every member by cfg_prio,= =0A= > the OCXO included:=0A= >=0A= > sit9531x_dpll_input_pin_prio_set()=0A= > sit9531x_input_prio_set()=0A= > sit9531x_prio_table_apply()=0A= > sit9531x_prio_table_build()=0A= >=0A= > Suppose a profile, or an external table rewrite that the poll accepts as= =0A= > configuration, lists the OCXO at slot k. Any input given a priority above= k=0A= > (20, 50 or 100, all normal-looking DPLL priorities) is then sorted behind= =0A= > the OCXO.=0A= >=0A= > sit9531x_prio_src_live() always treats the OCXO as live:=0A= >=0A= > if (index >=3D sitdev->info->num_inputs)=0A= > return true;=0A= >=0A= > The device also falls back down the table without reverting. Can that=0A= > input ever be selected while the OCXO is listed?=0A= >=0A= > Userspace also has no way to see or change the OCXO's priority, or to dro= p=0A= > it from the table:=0A= >=0A= > static const struct dpll_pin_ops sit9531x_dpll_xo_pin_ops =3D {=0A= > .direction_get =3D sit9531x_dpll_input_pin_direction_get,=0A= > .state_on_dpll_get =3D sit9531x_dpll_xo_pin_state_on_dpll_get,=0A= > };=0A= >=0A= > The xo branch in sit9531x_pin_props_get() also leaves capabilities at 0.= =0A= > On this point the commit message only says "The range is 0 to 255 over=0A= > eleven slots".=0A= >=0A= > Should the OCXO's priority be exposed, or should user priorities be mappe= d=0A= > relative to its position?=0A= =0A= In v17 the XO pin of an automatic PLL reports the OCXO's slot as its=0A= priority, on the same scale as the inputs, so user space sees where the=0A= OCXO sorts. The XO pin has no priority setter: its place belongs to the=0A= loaded configuration.=0A= =0A= > > props->dpll_props.type =3D DPLL_PIN_TYPE_EXT;=0A= > > props->dpll_props.capabilities =3D=0A= > > + DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE |=0A= > > DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE;=0A= > > curr_freq =3D sitdev->ref[index].freq;=0A= > > } else {=0A= >=0A= > [Severity: Low]=0A= > Is PRIORITY_CAN_CHANGE accurate when every PLL uses manual input select?= =0A= >=0A= > For a manual PLL, sit9531x_dpll_pin_ops_get() returns=0A= > sit9531x_dpll_input_pin_manual_ops, which has neither prio_get nor=0A= > prio_set:=0A= >=0A= > if (sit9531x_chan_state_get(sitdev, pin->dpll->id)->manual_input)=0A= > return &sit9531x_dpll_input_pin_manual_ops;=0A= >=0A= > All four PLLs share one dpll_pin per index, and capabilities are per pin.= =0A= > So with mixed modes the bit has to be advertised, and the DPLL core's=0A= > per-ref ops checks handle the manual PLLs.=0A= >=0A= > The driver reads manual_input at probe, before any pin is registered, so= =0A= > it knows when all four PLLs are manual. In that case the reference pins= =0A= > and the INTSYNC destination pin still advertise PRIORITY_CAN_CHANGE. They= =0A= > report no priority, and every set fails in dpll_pin_prio_set() with a bar= e=0A= > -EOPNOTSUPP and no extack message.=0A= >=0A= > Could the bit be left off when no PLL can take a priority?=0A= =0A= No. In v17 the input pins and the INTSYNC destination advertise neither=0A= a priority nor a state change while every PLL is on manual input select.=0A=