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=1796169125; b=s366hUcXMzxIU7E7KWs4zmTxipCJ9EnVf8w6VcJ8qrplJBajOiQGPPY7Tie/WrrMom0/ ELRssu0bMcYtL5ChKQFPowaVt2z0q3Z8wiYTZoSExtLZITN/YXJw4lwnRpe0HLsLiqrvi V8uRf777IF55RW9qBziDRR6O8Cd7YeXJAR04/HMGwZcQ+6DQXv1BX3LfgKSUm4b0g8iSs qnzLtwq6gM14NfPjYG7z/pGwmuVE3YsflF9Xhzb1yqWqwXX9xUExx7+6WzW2Xw5YyvJYM Pgma+ZukpoClN/lFQFkBwik0hETzedjFqoMCRAXCWGMd65r2oKRadWvZAdBNvAHFuig== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796169125; 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=0HtruT1z28Z+mLmLIpE/KGFm6D3OfFH0Mto9HEMEJ1Q=; b=4PxNw5nNeQBRsSkSSxaFY4XKNurEOIg9ZX1kcjUMsflC2DPjLgq2xg0PzM7XmvhbEboD Zgcs+I09YkfcFojBDC3tk2UsQLaQn+r/Nlo0kAU+aNX0jV7tUckNQ0giSeY8SIXD0UKgB ZidCIZMspZ2I02td/rGzSpOsjMrMh2/ZEf5mEZVWgQQJTWRtKa4ntaBa3/XiKsSMOnHuT 4EQcN/zCv+F7xXPOy5PDlQgIGOP4b5NB5dlx4ZZ9jg6+RJhfwiZlDYMd+JUpSKyBGL6BQ atjFJbm+RKAZ+DxC1dmjI40bU2+Qc2JMLZUhP44C6hJYpwQR71+CQwsXdZ7YLIBw5Ug== 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=Gxkm4cKY; dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b="uiyLAgT/"; 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 9308E606B4A0; Tue, 1 Dec 2026 23:52:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9308E606B4A0 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=Gxkm4cKY; 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=uiyLAgT/ 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=0HtruT1z28Z+mLmLIpE/KGFm6D3OfFH0Mto9HEMEJ1Q=; b=Gxkm4cKYbo/rdaDWmEVcVNkqDiPezo6jeUZNTF7yKiqn9Ex9gezoorB7WkCSPR2elQIvGB28he+Lnts5J5Rih0x2GA7V0vjLY7XvMWn16Rjb4zSe6GNG+xA26OSucBQCqbdD22qy6yD3qcLAA7kyqqhsCH5VcZ77Afvs8w1p8SmNgvLt3Ui1rsVzk0WE0lUg3TrrPInC9JoenGnH411gqVHMgzccEPN4qNCFeyOuL9r3VzA8eDXBUMXbr//Z6pEXXuk8QbBB6LbKMl4UhjA55a0Wgi7sTWz4/dpqRwIxzcelu80ifE2IhlhIhl8nPATarLiGBJFal+0tRWuBtO12WQ== 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 2621130007F; Tue, 1 Dec 2026 23:51:57 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D0kD9SVYKh/Lw+YTKD7l9Il9INMcUfxTCeBCz2psc2gPSupacMjDvpJHL3UcccRY4GDN8WBeP752XCkfacVjY2dntWt+phGBrlAsOmfvSsqsQuFN/bsqDOv2jNAA/ZfAgrF3lNXzNrW/EhxGXP9b02WwEHAQBVlGdvKPXAHhZSAr9fj5XAWjIAmdwJWOpAyiqB26kaIBJdTMjwSe/dfliYDjgxln+bdU4mXS/dzaGDR3Iz48vksC7XOigwltLmKk65mXHKibiWlA4XpnNxwbUXuXUM3YJDS9H/5hbBD6J6U62hUMalYwI6nCIvHee844Qngv5UOuFVtPNQxX/CA9Aw== 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=0HtruT1z28Z+mLmLIpE/KGFm6D3OfFH0Mto9HEMEJ1Q=; b=ou5Owon8ovUpb/lIrZtrgtWZuZ7Fz1x7i22MsUjCckHgNQBuZLba0/S2gh0+WVKJ6GJdAw25wd5yYpANRrlnN6SucLK6s8D6ytcV/uhGGQH6coekGcmUD0B6AaRk/KIPKMqwiWX+guriHR1KQvKqAziKr6lawpt/ajyColCa45nSytZkxcWY0nVyi1p/ZM/uUI3PAELipl95fmxdkgoxN0Nsg2X4CxvtvYQcYOaZUPmkkiu5xMFv9jrSc80hoxRBLqcPdZ8Pp8oB2uFu1cWADf5TQOQ3GPk42Ov++JKuVpjHiPBYvsvB2m1xEPjWO47hPngEN+ZerrhjHGakP7GNqA== 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=0HtruT1z28Z+mLmLIpE/KGFm6D3OfFH0Mto9HEMEJ1Q=; b=uiyLAgT/3sDo2TagL8A1GWPeEVZWZcDBIeH/Jv/d3CzP46TqEH0fX9i+NIaUDuuPN/u0yogJx+SCOQJXJoabqc2o6yMggz/P4O+s356T+1Ftz1vjonI9drp+FvvqOZX1E2bfRL0ZToF79iBRmjCSVK2JjY7RF6Ywnqepc/Xk0PD2CHgAaf8aBlBCLRWlF9K9lnoiBcLKbL5fy/EdqWnwnCEMuY8a1EEjvKrlWivS6biMYK0BmocCnJ6Q2kX1pc3/1iVYu5bX/oJZycFnkzrrLwE+U1QGu3NWlXFSNJzTrbYNDwfWR3kDtxogA11gLsrbooEX9+wvF2UqMuccaLWinA== 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:44 +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:44 +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 11/13] dpll: sit9531x: add support to adjust output phase Thread-Topic: [PATCH net-next v16 11/13] dpll: sit9531x: add support to adjust output phase Thread-Index: AQHdeHltNDYF/lQ9BUayh2rDWAJ1sbc8Z/cAgAyE4AA= Date: Tue, 1 Dec 2026 23:51:42 +0000 Message-ID: <20261201235136.95422-10-arouhi@sitime.com> References: <20261119225752.41846-1-arouhi@sitime.com> <20261119225752.41846-12-arouhi@sitime.com> <179548085215.3135.14880597585808987732@kernel.org> In-Reply-To: <179548085215.3135.14880597585808987732@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: 03bb95b9-4148-48ec-05be-08df50060df2 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|261021123027099003|261021121427099003|261009223027099003|261102123227099003|261022105027099003|261028144727099003|261026140227099003|261026121527099003|18002099003|22082099003|4143699003|6133799003|3023799007; x-microsoft-antispam-message-info: 30ZsnBUf0LQSrm/xHf9hvnRo4/9i0l7CFANfthSHTe+jN60C+RlSfeulUoeXQKHJMxGT3qlgGioXheOPzs8e1qFPcYRye8GyP3XeqntJPkOLshrFvKvYY4+3rUBe3L8OYPMXB8wfpBGHTlnzG/GMvAJl3gnyse+rdOvo80Ihf/CuCivdwLT6Rux5JthVkYcBtw7UFoTf4I/H/VjK/byRm/knV+CK9vwXjPtshcnsY+/K8K2q2N49PptiwP7aeWyjkT1TicnjAuRRjMcnctmD+/kFWYjZEAlN21AuoHVgGLH+m4pt5hWWdASP5Cuwu3G3EjP4b3vSGGli1IebvcZLieWzp7iqbxnYHDKjEg3Xcfq1Qk/PY6UluTRS3HCYLntDQmWpWJUTyba/6dvXSHgXQWw16RyvZb5GtutMEiuwaNfNxE7eTiLHERFc0Ndpr4qr/PgKOimoB2aWCb0D0gmsZkEfI5HQ3ZfyHhrmTfbuyj875QwHls8H15gWTYCOt7EIU+Cl1UkPQ6adANQY0OlgjkrJyUBEoBoAKudpMN/ohQ5GJpBO+N0jF00quse1U2IZMsFxQ5k7soEQpt6i6ZKK5FBJQZgjTVD8FfymaWUCs8j67qDEX38HJSTy2TSD2ZTl4keM38IOGcoiGYPKaY+g8wG89oN2pbsb6Oyf6z4HnalMaK51+ZyDS10pHCB4HwjwXk7FDANN/lq+bXYWE1x3rkIhY3MKvnqoRNlsz/f7Gbg= 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)(261021123027099003)(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?OZcF5VT4eakQlSjdzAlkgmtNBn4UpQS4GOGX5M5LgQ/7jdtJV8oJWY3tsg?= =?iso-8859-1?Q?3N5pRCd/8JUHDTDfamLTto2kqxH0NuztJpntc+60bgFAbY0KgiF4z+j+JV?= =?iso-8859-1?Q?knl9alAQuPjum7eZdT2aklfOivF75MZrOI5JPKHcxpmqlDhlEQpaf1chEV?= =?iso-8859-1?Q?2UlZUX2cxwS/GFGCSzGM8jMktQ73UgO1hPUm6NOlqaFcJQbHDFA5tD46Fp?= =?iso-8859-1?Q?je0G+Vj4gHKEXt33UooZOCFjQD6BV2J+hG9XAskGZQmIwpr4l5NnCj6W+t?= =?iso-8859-1?Q?c6L6BjdJ1vv5kqdBSuDPOgTW4MKVINur2/T9wNC4Z86efFsp+9AJOJQ3Jt?= =?iso-8859-1?Q?2Wkov+Zg8vpKVULota9TtFajXFshaZXa9gtSxWcQedD+unMbFw2FaQqYsN?= =?iso-8859-1?Q?3udK7QxwF2l0FGUTE6urgns52ne1DKTh4vR6+SCurxiaeXiNVAwRtNPE3i?= =?iso-8859-1?Q?LMmOmEBggUakQbe21iTIFukGHrRJP76fosiYTb9H0Miqn1m/P3f5fN9gPK?= =?iso-8859-1?Q?jfTSlEU5Mo+PIMQlhtSjb12Aakm5qKeRyZfnBtGwxR0xaB9KPIzB5RRraN?= =?iso-8859-1?Q?USwFArFQu42uawVCzxtJdtHk8fki3N+guy5IqXzWX2rOSbsREG/8N9eYu9?= =?iso-8859-1?Q?EKY5d4z/Kb9ttPpMbz+WbFzP6sLl573qpPTmEy/tftI7y9h7d3FvltLDV+?= =?iso-8859-1?Q?BbSesH5qEgFHd88d3fjW9InVaufSpLdM56kA50IZIuas67ZFPENrNWVuNU?= =?iso-8859-1?Q?H6DNXmRomrQOZUH/ubqJiMq0SDElXBHRfdxIx6h6dhRxwHGOzrK0mF0GqL?= =?iso-8859-1?Q?q5dIL6TySyiOBnn6AY3t8CkNkX3DR0X8pANsuLauSBI1EnUzAW4rmw32uM?= =?iso-8859-1?Q?T/fo7Ad9zx08ZZOfj9x3YHZk1WKZMa4qgAJXMnSJqnrugXJmhbmn8WOiSC?= =?iso-8859-1?Q?94nmhUnOSKPlMjmERVKynfXGCcxroMrCtuhqoelNo02Xq0Ef3naz5fex9u?= =?iso-8859-1?Q?rqJNlFbrfZqKHeFrNPpsEPGhrMriBvbc23SRE3Z23e9A+PQB+rjO0JqwbM?= =?iso-8859-1?Q?taRo0QpOCdnlipoC4+bSIdv7WvfouvMXbva49egZayhnKzRTWALB19kf7W?= =?iso-8859-1?Q?68n+BmF2otIRRY+LXn/zJingkibvcYPNzDsccS0PoZP5kNFHJ900BhZYNd?= =?iso-8859-1?Q?IlU0JlErjoRhHJlRIv8ddEEySryusidHbUt4qTYAOMOf+3xmoR2lnppTj5?= =?iso-8859-1?Q?S6CAvuAmhdYvBDHrglDbAz4az/Rv7rlUYWvaxp1yv4Cqc8SRM/cvqoIBEm?= =?iso-8859-1?Q?ZowGGocj6MZ7wZc3f/MbMlZzmqx0ugHsLPofXkWSrx7DNf2C/O4Fgcb2ma?= =?iso-8859-1?Q?GNnDVkSuOdjSIORoG+Jl6GcpBlaDVDIIrO0bdmFRjA0kjGF2AXSqUSX+wG?= =?iso-8859-1?Q?UlN4sW8IkKoVLBG+6wAbRCx6QkzWKT2rXDn4MMHH50N4K0xoPNkrzibH/a?= =?iso-8859-1?Q?DrqZ+EXwU+zRD65dHMJYq7vdNWCSBspNjPH2vUuRhNKiWe2GguboGdqHJl?= =?iso-8859-1?Q?KD2SIwqPAf21gCAn8Yj7/o6iigdBGE+DmExPjadmqYtod/EVa5gjnRn5Xs?= =?iso-8859-1?Q?1ELD0oZvZhbxkq07uxZiRtsjMb9ekdOml2JTCFY2mGRBA4W6zstfmzwfuN?= =?iso-8859-1?Q?ggNm2Zq8o0bRkLYxj/Vayqf0RUblck0z9wyXnSokPsaX0pgJQUNiT6dsBv?= =?iso-8859-1?Q?0bDkCRhLC57rtw3IAWVK7lcHrCRnxwKnPu6FNbrhTN2YAA?= 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: D5ZEd3l8CpmlwPIlhVwe3/J/OH4FLwbut+gpiN2FDkYZapUV18i+ExdhD+uxRJO3qGxWl7cCWWrH7LW5C1655NB9Y0WNFinQC1jSNFJkmDPkmGCSJYtUr+q2sJBLNI3KLp+e471qZ1gQkDiO9h6OpRFVGhcqP16OdEFANiM0k0mvnL16+z83RJkgl9b1+y9iV99FxUtjcqw2O0qRk08SRZXRK9UvU1/c0K2Jr7O904dPt21NE6cpY6/KuCc7HZ4kG788FDHvdq5OhlBruVdC2Q/fsHIhZyFVQU5BJsvn7HmnJSDtWU34bMvqY9FOxmmOgO7ERzl8+YEsJuoUtk9MIQ== 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: 03bb95b9-4148-48ec-05be-08df50060df2 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2026 23:51:42.7810 (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: NKY9i4ThxczE1m51Zdm1VmlnmHXCL5kbNXGNEd9OLketRAf7w4JsmkxlXlJ0aS6j9/cGMy+nJTOVV9f1zrKkdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR20MB5775 X-MDID: 1796169117-QWuFjY8F-eCb X-PPE-STACK: {"stack":"us1"} X-MDID-O: us1;at1;1796169117;QWuFjY8F-eCb;;5de2396b9b83917d02f0372d9ae54394 X-PPE-TRUSTED: V=1;DIR=OUT; On Tue, 24 Nov 2026 00:40:52 +0000, netdev-bot+sashiko@kernel.org wrote:=0A= =0A= > > +undo:=0A= > > + touched =3D parked;=0A= > > + if (armed_here && !(armed_mask & BIT(pll_idx)))=0A= > > + touched |=3D BIT(pll_idx);=0A= > > + ret =3D sit9531x_phase_flush_undo(sitdev, ctrl_back, orig, touched,= =0A= > > + armed_mask);=0A= >=0A= > [Severity: Medium]=0A= > Is it safe to mark the flush as fired here, before the falling edge of th= e=0A= > pulse? regs.h describes the flush as pulsing DIVO_PHASE_TRIG high then lo= w.=0A= > The low write now happens in sit9531x_phase_flush_undo(), through=0A= > sit9531x_write_close().=0A= >=0A= > If every attempt of that write fails, flush_ctrl_pending is set and TRIG= =0A= > stays high. sit9531x_phase_flush_undo() still goes on to re-arm every=0A= > parked PLL:=0A= >=0A= > if (ctrl_back) {=0A= > rc =3D sit9531x_write_close(sitdev, SIT9531X_REG_GPIO_FUNC_CTRL1,=0A= > ctrl);=0A= > sitdev->flush_ctrl_pending =3D !!rc;=0A= > sitdev->flush_ctrl =3D ctrl;=0A= > }=0A= >=0A= > for (i =3D 0; i < SIT9531X_NUM_PLLS; i++) {=0A= > ...=0A= > ret =3D sit9531x_update_pll_close(sitdev, i,=0A= > SIT9531X_PLL_REG_PHFL_CTRL, en,=0A= > (armed & BIT(i)) ? en : 0);=0A= >=0A= > The deferred write of orig then runs from the poll, or at the start of th= e=0A= > next sit9531x_output_phase_flush() before any parking. At that point ever= y=0A= > PLL the profile arms is armed.=0A= >=0A= > If the hardware acts on the falling edge, could this restart the dividers= =0A= > of PLLs that nobody asked to flush? The target PLL's chan->flush_pending= =0A= > would also already be cleared.=0A= >=0A= > Before this patch, a failed restore was completed by the next flush's=0A= > "orig | SIT9531X_DIVO_PHASE_SEL_REG" write, which runs after parking.=0A= =0A= No. In v17 the flush is marked fired only after the falling edge is=0A= written, and a failed restore of the trigger select returns before the=0A= parked PLLs are armed again.=0A= =0A= > > + rc =3D sit9531x_get_fvco(sitdev, sitdev->out[out_idx].pll_idx, &fvco)= ;=0A= > > + if (rc)=0A= > > + return rc;=0A= >=0A= > [Severity: Low]=0A= > Should this readback apply the same sit9531x_fvco_in_band() check that=0A= > sit9531x_output_phase_adjust_set() does?=0A= >=0A= > When the PLL is out of band, sit9531x_get_fvco() only warns. Its comment= =0A= > says Fref * DIVN is then usually not the rate the PLL runs at, but it=0A= > still returns 0.=0A= >=0A= > As written, sit9531x_dev_state_fetch(), the getter, the notification path= =0A= > and sit9531x_output_freq_set() all cache and report a delay converted wit= h=0A= > that rate. They also set phase_armed from it.=0A= =0A= Yes. In v17 sit9531x_get_fvco() refuses a product outside the band, so=0A= the readback fails and the getter leaves the attribute out.=0A= =0A= > > + return rc;=0A= > > + sit9531x_output_phase_bytes_decode(old_bytes, &coarse, &fine);=0A= > > + beyond =3D !out->retime_pending && !out->phase_armed && out->phase_ad= j;=0A= > > + if (out->retime_pending || out->phase_armed ||=0A= > > + ((coarse || fine) && !beyond)) {=0A= > > + held =3D out->retime_pending ? out->retime_ps : out->phase_adj;=0A= >=0A= > [Severity: Low]=0A= > The comment above says only an advance needs re-encoding. However,=0A= > out->phase_adj holds the nearer-to-zero form from=0A= > sit9531x_output_phase_encode():=0A= >=0A= > if (abs_ps > t_out_ps - abs_ps)=0A= > *phase_adj =3D -(s32)(t_out_ps - abs_ps);=0A= >=0A= > Take T_out =3D 10 ns and a request of +7000 ps. About 7 ns of cycles is= =0A= > programmed, and phase_adj is cached as -3000 with phase_armed set.=0A= >=0A= > If the rate is then halved (T_out =3D 20 ns), held =3D -3000 is re-encode= d as=0A= > an advance: abs_ps =3D 20000 - 3000 =3D 17000 ps. Leaving the cycle count= =0A= > alone would have kept the 7 ns.=0A= >=0A= > Is it intended that any positive delay above half the period becomes an= =0A= > advance on the next rate change? If so, could the comment be updated? The= =0A= > code re-encodes delays and advances the same way.=0A= =0A= Agreed. The v17 comment says a rate change re-encodes the delay in the=0A= form nearer to zero, so a delay above half the old period becomes an=0A= advance. The driver keeps no other record of the request.=0A= =0A= > > + same =3D !memcmp(old_bytes, new_bytes, sizeof(new_bytes)) &&=0A= > > + !out->phase_stale;=0A= > > + if (same && !chan->flush_pending) {=0A= > > + rc =3D 0;=0A= > > + goto cache;=0A= > > + }=0A= >=0A= > [Severity: Medium]=0A= > Does this raw-byte comparison match the decoder?=0A= > sit9531x_output_phase_bytes_decode() treats register values from 0 up to= =0A= > SIT9531X_OUT_PRG_DIVO_CYCLES as no delay:=0A= >=0A= > *coarse =3D (prg_coarse > SIT9531X_OUT_PRG_DIVO_CYCLES) ?=0A= > prg_coarse - SIT9531X_OUT_PRG_DIVO_CYCLES : 0;=0A= >=0A= > sit9531x_output_phase_bytes_build(), however, always writes coarse + 2.= =0A= >=0A= > Suppose the profile left PRG_RST_DELAY at 0, which is reported as 0 ps. A= =0A= > request that quantizes to zero, such as 10 ps, builds PROG2 =3D 2 and fai= ls=0A= > the memcmp.=0A= >=0A= > Would this then rewrite the bytes and call sit9531x_output_phase_flush()?= =0A= > That restarts the divider phase of every output on the PLL, or issues=0A= > SIT9531X_PLL_DIRECTIVE_RESTART when PHFL is off. The realized delay does= =0A= > not change.=0A= >=0A= > dpll_pin_phase_adj_set() short-circuits an exact 0 ps request, because th= e=0A= > getter reports 0. Small non-zero requests still reach the driver.=0A= >=0A= > Would comparing the decoded coarse and fine values avoid this?=0A= =0A= No. In v17 the skip test compares the decoded coarse and fine values, so=0A= every encoding of no delay matches and a request that rounds to zero=0A= over a zero register writes nothing.=0A= =0A= > > + &bytes_back);=0A= > > + bytes_in =3D !rc;=0A= > > + if (!rc)=0A= > > + rc =3D sit9531x_write_u8(sitdev, SIT9531X_REG_PRG_DIR_GEN,=0A= > > + SIT9531X_SMALL_UPDATE_CMD);=0A= > > + sit9531x_outsys_debug_close(sitdev);=0A= >=0A= > [Severity: Medium]=0A= > The small-change update goes only to page 3's copy of PRG_Directives=0A= > (SIT9531X_REG_PRG_DIR_GEN). This includes slots 6-11, whose delay bytes= =0A= > are on page 4, and regs.h notes that every page has a copy at offset 0x0F= .=0A= >=0A= > Does the page 3 update cover the page 4 delay registers?=0A= >=0A= > The flush also follows right after the key is closed, with no wait. The= =0A= > INTSYNC paths sleep 1-2 ms after a small update.=0A= >=0A= > If the flush lands before the update latches, would the dividers restart= =0A= > against the old delay? phase_adj would still be cached as the new value,= =0A= > with neither phase_stale nor flush_pending set.=0A= >=0A= > This depends on hardware behaviour that the source doesn't show, so it ma= y=0A= > be fine if Dely_program_output.py does the same.=0A= =0A= The driver follows the reference delay sequence: the delay bytes on page=0A= 3 or 4, one small-change update at page 3 0x0F for either page, then the=0A= PLL page update and the flush, with no wait between them. The v17=0A= comment cites the sequence. No change.=0A= =0A= > > + if (rc) {=0A= > > + if (bytes_in) {=0A= > > + out->phase_stale =3D true;=0A= > > + out->retime_ps =3D phase_ps;=0A= > > + out->retime_pending =3D true;=0A= >=0A= > [Severity: Medium]=0A= > In this branch the bytes landed but the small update failed. retime_ps no= w=0A= > holds the new request and retime_pending is set, while out->phase_adj=0A= > keeps the old value.=0A= >=0A= > sit9531x_dpll_output_pin_phase_adjust_get() skips the readback while=0A= > retime_pending is set, so it returns the old value.=0A= >=0A= > If userspace then asks for that old value, for example to revert,=0A= > dpll_pin_phase_adj_set() returns before calling the driver:=0A= >=0A= > if (!ret && phase_adj =3D=3D old_phase_adj)=0A= > return 0;=0A= >=0A= > retime_pending and retime_ps are never cleared, so the next poll runs:=0A= >=0A= > sit9531x_dev_chan_states_update()=0A= > sit9531x_retime_retry()=0A= > sit9531x_output_phase_adjust_set(sitdev, out_idx, out->retime_ps)=0A= >=0A= > Can this program the request the user had just replaced, even though the= =0A= > replacing request returned success?=0A= >=0A= > The getter comment "Bytes waiting for a re-time are for the old rate"=0A= > fits the freq_set path. Here the bytes are already for the current rate.= =0A= =0A= In v17 the getter leaves the attribute out while a delay waits for its=0A= update, and patch 1 lets the core pass a request through when the=0A= current value is absent, so a request for the old delay reaches the=0A= driver and replaces the pending one.=0A= =0A= > > }=0A= > > =0A= > > +/*=0A= > > + * Re-time the output delay after a failed rate change. Caller must ho= ld=0A= > > + * sitdev->multiop_lock.=0A= > > + */=0A= >=0A= > [Severity: Low]=0A= > This isn't a bug, but this comment and the @retime_pending kernel-doc in= =0A= > core.h ("re-timed delay not yet applied") only cover the failed rate=0A= > change case.=0A= >=0A= > sit9531x_output_phase_adjust_set() also sets retime_pending and retime_ps= =0A= > when the small update fails after a plain delay write. In that case the= =0A= > poll applies a new user request rather than re-timing an existing delay.= =0A= >=0A= > Could the comments cover that case too?=0A= =0A= Agreed. In v17 the comment and the @retime_pending kernel-doc cover both=0A= cases: a delay waiting after a rate change, and a delay whose=0A= small-change update failed.=0A= =0A= > > + was =3D out->phase_adj;=0A= > > + if (!sit9531x_output_phase_adjust_set(sitdev, out_idx, out->retime_ps= ))=0A= > > + dev_info(sitdev->dev, "out%u: delay re-timed\n", out_idx);=0A= > > + if (out->phase_adj !=3D was || out->phase_stale)=0A= > > + out->ntf_pending =3D true;=0A= >=0A= > [Severity: Medium]=0A= > retime_pending is only ever set together with phase_stale =3D true.=0A= >=0A= > sit9531x_output_phase_adjust_set() can fail before it reaches the cache= =0A= > label. Examples are -ENODEV from get_fvco or divo_read, -ERANGE from the= =0A= > encode, a bus error, or the bytes_in branch, which sets phase_stale again= .=0A= > In each case phase_stale stays true, so this condition is always true.=0A= >=0A= > sit9531x_dpll_output_ntf_pending() skips the re-read while retime_pending= =0A= > is set, clears ntf_pending and returns true. sit9531x_dpll_changes_check(= )=0A= > then calls dpll_pin_change_ntf().=0A= >=0A= > Does this send a pin-change notification on every poll for as long as the= =0A= > retry keeps failing, even though nothing on the pin changed?=0A= =0A= Yes. In v17 the retry asks for a notification only when retime_pending=0A= clears and the getter has a value again.=0A= =0A= > > @@ -2977,6 +3666,32 @@ static void sit9531x_dev_stop(struct sit9531x_de= v *sitdev)=0A= > > } else if (sitdev->outsys_key_pending) {=0A= > > sit9531x_outsys_debug_close(sitdev);=0A= > > }=0A= > > + for (i =3D 0; i < sitdev->info->num_outputs; i++) {=0A= > > + sit9531x_retime_retry(sitdev, i);=0A= >=0A= > [Severity: Low]=0A= > The last retry of the output-system debug key close runs before this=0A= > loop.=0A= >=0A= > Each sit9531x_retime_retry() can call sit9531x_output_phase_adjust_set().= =0A= > That opens the key again with sit9531x_outsys_debug_open() and closes it= =0A= > with sit9531x_outsys_debug_close().=0A= >=0A= > If that close fails, only outsys_key_pending is set. Nothing later in=0A= > sit9531x_dev_stop() closes the key again.=0A= >=0A= > Can the device be left at removal with the output-system debug registers= =0A= > unlocked? The same ordering seems to carry over to=0A= > sit9531x_dev_pending_retry() later in the series, which the probe failure= =0A= > path also uses.=0A= =0A= Agreed. In v17 removal closes the output-system debug key after the=0A= re-time loop, and the poll does the same.=0A= =0A= > > + * A profile delay on a slow output can exceed the s32 attribute; lea= ve=0A= > > + * it out.=0A= > > + */=0A= > > + if (phase_adj > S32_MAX)=0A= > > + return -ENODATA;=0A= > > + *phase_adjust =3D phase_adj;=0A= >=0A= > [Severity: Medium]=0A= > sit9531x_pin_props_get() advertises a phase_range of=0A= > +/-SIT9531X_OUT_PHASE_ADJ_MAX_PS (1e9 ps), but this check only drops=0A= > values above S32_MAX.=0A= >=0A= > sit9531x_output_phase_read() flags a decode above 1e9 ps in *beyond but= =0A= > still returns it. Take a profile delay between 1 ms and about 2.147 ms on= =0A= > a slow output, such as 1.5 ms on a 1 PPS output. It would be reported=0A= > above the DPLL_A_PIN_PHASE_ADJUST_MAX sent in the same message.=0A= >=0A= > Writing that value back then fails in dpll_pin_phase_adj_set():=0A= >=0A= > if (phase_adj > pin->prop.phase_range.max ||=0A= > phase_adj < pin->prop.phase_range.min) {=0A= >=0A= > Should the getter filter on the advertised range, or on the beyond flag,= =0A= > instead of S32_MAX?=0A= =0A= The advertised range bounds a request. A delay the loaded configuration=0A= set is reported as the registers hold it, and left out only when it does=0A= not fit in s32; clamping it would report a delay the output does not=0A= have. No change.=0A= =0A= > > + bool beyond;=0A= > > + s64 phase_ps;=0A= > > +=0A= > > + if (sit9531x_output_phase_read(sitdev, pin->id, &phase_ps,=0A= > > + &beyond))=0A= > > + return false;=0A= >=0A= > [Severity: Low]=0A= > On any sit9531x_output_phase_read() error, this returns false before=0A= > out->ntf_pending is cleared.=0A= >=0A= > phase_read returns -ENODATA when the output is not routed, or when=0A= > sit9531x_get_fvco() returns -ENODATA. Both can last indefinitely: a state= =0A= > refresh can clear routed, and an outside reconfiguration can change DIVN.= =0A= > In that state phase_stale is never cleared.=0A= >=0A= > Would a pending pin-change notification for this output then never be=0A= > sent, even one for an unrelated state change? Elsewhere the patch treats= =0A= > -ENODATA as an absent value.=0A= =0A= Agreed. In v17 -ENODATA counts as a result with no delay value: the=0A= record is cleared and the pin is notified. Only a bus error defers the=0A= notification.=0A= =0A= > > + /*=0A= > > + * The 30 ps fine step is not advertised; requests are rounded=0A= > > + * to the nearest achievable delay.=0A= > > + */=0A= > > + props->dpll_props.phase_gran =3D 1;=0A= >=0A= > [Severity: Low]=0A= > Is 1 ps the right value for DPLL_A_PIN_PHASE_ADJUST_GRAN?=0A= >=0A= > The hardware grid is whole VCO cycles plus 30 ps steps, folded modulo the= =0A= > output period. sit9531x_output_phase_encode() rounds every request to tha= t=0A= > grid, so a request the core accepts as a multiple of 1 ps reads back as a= =0A= > different value.=0A= >=0A= > dpll.rst describes the attribute as the granularity the pin handles, and= =0A= > zl3073x advertises its real step (half the synth period). The grid here= =0A= > is not uniform, so there may be no single exact value. Userspace could=0A= > still assume 1 ps resolution from this.=0A= =0A= The delay grid is whole VCO cycles of the output's PLL plus 30 ps steps,=0A= so no single step fits every PLL. The driver programs the nearest grid=0A= point and the getter reports the value set, as the comment says. No=0A= change.=0A=