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.164 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796169125; b=WHO1HhNAHBpYGg7BFHUEfinJWS1DXkyEoP3arSIzIRDgK06O/+UtW3a9w8y17FdFuFQm 262mR85LcSd9gTP4wi//aJLf9sT047aXYXqcbX/1XKA5VdHoWVz+hPMVyPlHYqsTvPOiA wplSDO07AY7s9TtUzzwOXFw1gIX2E2IB5Pq2gpEbZO05qHXiuefoWki8KohtZI20Q1HTy VZIJ2WZmsULd/c06qOy8GK2/gKq27sxFTAQWYfM6tO5IvS0aDfC4gOgv+JvEevBUM1XPn v6fZsjkbqTBplKjOUh5mv8uLOB94/6rnIGs/QKAl0YcwC5WWfBg9wRP7p6jwDjkiuzQ== 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=VYgAOUw5FW0caOx71MxbyFvlbD7srRaf74CL0s34VIU=; b=MbvHkCdOhyDdJ3p6iyCL6kOFsxCNQ0/ewHFgQUCQASAZR/Fa6hAr4RXKlQXV7TOJ0lVy M7Atcck5L8Lw7kCXJb37PYN89RkSjhqEcT5S2003p+YE1RRYIRsEjBBwhiVk3CCJ2aoTa iqJGRZ/XBTe+Z21amPp7NIf8lzLt4LzoU54S8JHoLMTbV//PtaFzjQrGLs99MfjH8/woi eVMfi6kDMyohzsTuP922tYwgT+HiW2WD2+b5cdWPgJlLcLCFdsb08zFDQ28XL1xMGrXsH rBUkc9YS2WBroeF1mWJYX9YojMXCRlgdQ7XLQOATxjDRL/xLtBi7ZD3GXB2R+1I1J3w== 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=Cgb4X0dj; dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=kCbYn4Su; arc=pass header.oldest-pass=0 smtp.remote-ip=67.231.154.164 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) (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 91FBF606B49F; Tue, 1 Dec 2026 23:52:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91FBF606B49F 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=Cgb4X0dj; 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=kCbYn4Su 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=VYgAOUw5FW0caOx71MxbyFvlbD7srRaf74CL0s34VIU=; b=Cgb4X0djuR7celLw72amOQPf2Ww+Mtq5Y5U+86kvfNSuAoKL+4cRyRSXX6/06rZ9C8LeITMoRuceftxYdUEo7jJm0LZxnfi9ojMclYb9vlufOgaSYRiQqS6UHQm8Z0+DHHriqYWl3q9qdLiZwdqosIvtBSG/IyHrNSo9CYMBoLRM8j376nB8dQc8kp4gNn8jHaK1t9tf8gug8RgqVUHGJlVlrmLDTnFb+hZHcsglKTwrfvXDFVaCKUr6cq30kIZWrOr0ZYgYfbpgdbnL8xLRi2uJ+SBio1agHTde1IOwBeL0TgfnBgzbo/KtTBk6GwkGAD4tLQKDmNlXUrQPCYjWPg== 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 C33C4300072; Tue, 1 Dec 2026 23:51:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jprf/HZlsULLIM48YW+fi/fm6EK+SaU+wjWmihk1ogjhp7VGTwKuPgFzEhyVlQs4tU4OgzJe0fEGRNZm1zqo7hvfvAEMkHmdCoEnf63EFzJX7oYkEO9gIq82FDzFfa8nhOEwDo4XwoSM7RjcS0O1HUZvroTSp/rnvfOgzCeBX/v5qzBor1Xbhj9E8+okMZkhtv7k1ptHC3P1Go0qhQrj0YiyBnpXwaunau8ZO2P1bHpVLDhDDMP4YdXOGa8VpJoDzf0Ok7P3V0Dqao70Kc/d56SOYbm3gmspsiiuQLi3enrrCKdTDRmLI7pKSk2XYRqPfB7QZDd3nh6phqAFbKT+oQ== 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=VYgAOUw5FW0caOx71MxbyFvlbD7srRaf74CL0s34VIU=; b=JNyrvuelzHAJuUig8BD57onanwLqBsCZxIh3LIjTWQ39hxUBLdrWJ3mlDc8RsjgkXaQUub+KTq3zChN+DoYJClExawMBaz5jPGxc5weNPJErX0ymjNs2flThJ7njmfDPr09u4b41LuD9rAAyTnM39UuHPTHolD66+ShZyoA+geEgc0eubtnD68B3pHMeb0XUG2Q4p7FiPpetC3IkGnlGG7i7RunDZ+L9dFdl9HdOjf24Ob+LUnnrJYkGzcxAM7rAGTLOJyZRcVH0oNDyYBwBBOI3S+QnxSwapQeJ5NRABB5qzZG380Mmg765XS6hZBUd9UBbSvxKASG6xwTlZWdcow== 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=VYgAOUw5FW0caOx71MxbyFvlbD7srRaf74CL0s34VIU=; b=kCbYn4Su6HTfvtve715NYl+/C3GZQF0XsnnM+UyUdhtwaRDQyMAuNSuxghz+8I6OKgWSCgNnE5+1cd7Vxy4N383BwY5vUzrTRndVCV4ayEN9gN3r3hC/OXYJ4w/gLJsE17/G8zRQcJRcKnhk652+jV/U5PVMDdmDbSKXPblFevmQ4G+IdMuZbQKXCkHVbcKjdDjMREHWweNkgeh2giRp6EBEo204PcLOsr8hSFUmV64tlZxo8ts142S+bNPYhdeB6VnYN0w+FHMiK4h6csSH7G9y+oBkJalmmxH+4xPJLBBdO5LWkIjnmh7H4Iv/KcY9ctJge1lzX5ix6Ofu0VqrZQ== 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 10/13] dpll: sit9531x: implement output pin state on a DPLL Thread-Topic: [PATCH net-next v16 10/13] dpll: sit9531x: implement output pin state on a DPLL Thread-Index: AQHdeHlsk+8cHjhV8Eym2wBv1ATEFrc8Z/IAgAyE5IA= Date: Tue, 1 Dec 2026 23:51:42 +0000 Message-ID: <20261201235136.95422-9-arouhi@sitime.com> References: <20261119225752.41846-1-arouhi@sitime.com> <20261119225752.41846-11-arouhi@sitime.com> <179548084817.3135.17016387216869997566@kernel.org> In-Reply-To: <179548084817.3135.17016387216869997566@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: ab60404d-948b-467a-c136-08df50060db4 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: ZtS7WBvsPF1wumQgsP39cywPYAeBKA/G3CuBWWSo7keSUK0cCuL4hc547zq0AUJ9v5z/DexQhdepuExy3ixD0w3bQivqjluIoZOAnRnmiSMlQpxiHDcIBEyHGqAvC+JkF9JqHvzFqV5fJPA99WnCgnxKaru6gW8qyDc8IkBOn9g4KgcOEfNXYoPt3HQReLVmGnYdcJkQcATz+072ZR//XTf1w6E1xsDxa0SvTw4alHhVuwMVqYoRMWcqkVoaSPY0roxN1FIcJNTcgHXVa/Tp/dJaw2eQE5Wi5VUNSwvucBL2oyoeCVXaQtrHHb+c03kCAN/E911vt7sSYCBloyVJ7T+IgZGP6I/Cm8+IcboNo4nL2sj1EWbDDacc9/GVbx93oFCNLNIErRP54SMEJ8EMj7RbU8Q84vCcm2rA2dOgbDstByG3sw9yd2KrzKTzdRe3AFN6GIasX+PamRpk3IAd2B8OsI20886Wk2tyA8kDJasklAtmvlLFqqAgBomNA0EkAG9FM/PXsmo3KGHpKkWm9V7krouQgZ/hC2mDKF8mlPAZb6pOaYkWCPpgKIqbCE7AnQbwA79ZkRWSy3AEzfEeC2PGi1KqOZ/heTXR7r+5l48wGs/x0ujrO+lhmXVWTm2046AurdTBIHPyivXzYjx0vM0rH+h9xKUY9dzvx5YnGAONg2ogKE6glhWMfPbWpQUEJ9JyXWs4+kyGP7kaRoKD+x7Cq7zOzZx8FjUvHrjmYdQ= 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?Q/Z9aCrj+M2i+rhKZl1A3yN0GbfGumLwQO9qhhxyeCd1LQ7H+CxoeQ2QQh?= =?iso-8859-1?Q?DDgtJwipovniK1whNUJ50jvxht8lAxeYkwcwhp+uNv1MIyRLkgnd0D2mPZ?= =?iso-8859-1?Q?adnn0q7MtmGOHOkttF2VzBGuOtx7uyGwSTW8N3GTnoLQ6nWvrix4EGG2XQ?= =?iso-8859-1?Q?7E1AXskD9Qi/znL+3I43DxTHUUjP2jNAggTGE2xIiPcHmuk6WzY3ZV8C9S?= =?iso-8859-1?Q?R7G1Yj5aY3HdiTmj89towMYyvIOc6fjYwVJYRnt9qa979jnMxKq0V4eEso?= =?iso-8859-1?Q?aMCU2S8e0MeE7JduM72CSTDt8yaR9l24lItvtM+S+zOs8IZd91LJlpIJ3/?= =?iso-8859-1?Q?oUMziYn9tAse6OBPLcaychzHZqkrEWUfee3+hRmfyDSrKypBS3H/7Dr7fz?= =?iso-8859-1?Q?+X84PvbM4lKEzmfifyoWV72i0ImJYqJM65xw6JMIu4s7uaRreShrHH6kgR?= =?iso-8859-1?Q?FndZsuenBVI+DBBwwC6GrLeIgRIvy5UmZ2WEBIsnGPipsuVq/j8bbd7ykw?= =?iso-8859-1?Q?r+gZamtL1jQN9tgo2F00n3XAN/iJUHueScc47Hy3D/xvztAmjBRuTp45Vu?= =?iso-8859-1?Q?i920SsvrY7BAtxYk0wQGi+XSSxAMOEMEqGTHwZdyuO3I0ZHPVByIjLRN94?= =?iso-8859-1?Q?VLgRgOFED8sHu/qrRCE7+c9km1Mfn4bWMg4r7MGk9aQBWmSIHp28+iUnw/?= =?iso-8859-1?Q?tWnTTv7jl9w7dH7azFy+IHDSYlI6Xbk5uOH9YYxrKKJY3sbFrbJKmg85Z0?= =?iso-8859-1?Q?Ok9jbtaRPjyPRghZYDZsXMEv1jNO5MMMD9Lqpxp3mSq14jXIdmVrIBSs0i?= =?iso-8859-1?Q?T8LPAPpbzGLlngFwhKpq6Ih6kHHfiIC1BTzNaMS5vOaEuVcfIXU7QgAln9?= =?iso-8859-1?Q?A+MJvd7OnytZAU4Zju1slRBvjtB1gbKOVNFxLE7sy9EUeRLJri37s/FvER?= =?iso-8859-1?Q?Gf/xNoNWIcNcucs+Ezkp1IJgQmoGt8GMP0wD9nAMQmmmcdGrUNJgR2fPV/?= =?iso-8859-1?Q?az3gDe24x/0tVIEvEB6uDfpWCX7BaKZDju1UdAFwKxMYMzkdDcOd6Nk8Lb?= =?iso-8859-1?Q?uAo7PTi0bI3WzteMn+1mAXXTqKkWXfLNghAuEMNAqWqQHPf9+/RhgvZzBx?= =?iso-8859-1?Q?82KSPhwRtQfpku7CQGXB2dWjq4/0OiwVKmak9zxNpAdpsUkdJ/kX1a/mic?= =?iso-8859-1?Q?7GKiit1IvR6axANh/q8VVL99G7IsnS4AA5GjHPRpRzuUoJ3Vs4Kq2og+2j?= =?iso-8859-1?Q?wI/wgpDscqUXFdffIzl61wBgfQ/6vFZWVXqxvObUDaV+a9Cqx2b3HNWD/o?= =?iso-8859-1?Q?bhKYI9hu4eVahDRABAFSXODNr7G0UN+AW3b2xpGflsO5oF9jGjCQ0hIz2w?= =?iso-8859-1?Q?PtiAO48cDwA8aXXAekz+qTaxEXFgYhUE1s/Z6sLB0qlupw0ypDixeLwU9G?= =?iso-8859-1?Q?39KrHvmhMjsIKLKlZW9mDtJ4UEycP1kdc+DLREFGlXO7TKTsbvNY2f54Rk?= =?iso-8859-1?Q?H5n5xK7/l/4aFwhZsOHYSNvoGGKpWXJB95cnP1+3T9JKvclUa6ly+WnA/C?= =?iso-8859-1?Q?WA9oQASZ4zjQ6/6H4mVz6OeEZHNFnuV6/NPUznVowmD7oopxiYK7zjOV+2?= =?iso-8859-1?Q?Yb40e3Gwf6dZvg3ZgZHANrBN10y7zzmLF5VCxP+baYIlUpLzzCNLrl7Kt+?= =?iso-8859-1?Q?McI63/xKlWKrPrPySk8wA6VBbGwzmy1JS7537w6AkkxJbQznR+ck/7ERU3?= =?iso-8859-1?Q?uI70w1pC7gtOTMtMW0RqwU+ABEpuet0dp66GToXjIar5a3?= 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: PYy6qn+6RFcX6Jt0jp66ZjeiXLUC+UffBrbqYiZtJfivAo0G/D8NgkGwBb5JSg1GIzRk+bVI1JHctkOrrCreoyd70MRtF7RZKN9EwGch/4JoJNDQRBA1pMWUCc+ewMDJGAwEUHTusvK2vqdkyS9Hpvt9GL4FNvILGCrOVJxGvBrmACYjB3HmgeaSdHteRCtQuOHP5oucFfVxs83oZsUmsGQxuN+FrEysTChnk87lFvXOTus6UyzFhBkOQXBBtSeBRjkPkZ9lrov5O8ikssTiNgi85DJPLKX9u1pY3Xrjni7TOoZ6x8jnTilx8qgfn/3ybDhbEZk2OBUHjAmF3wsAAw== 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: ab60404d-948b-467a-c136-08df50060db4 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2026 23:51:42.3102 (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: DQpK7vCQcEYfc5hBGM/O6iyBcizSOuPo1z7VBGTzJFef8a0fs+kgBEZjANurygR3Ykjl/arjOYo1n8Fqeh/muQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR20MB5775 X-MDID: 1796169117-WcZaVDPnK6FX X-PPE-STACK: {"stack":"us1"} X-MDID-O: us1;at1;1796169117;WcZaVDPnK6FX;;5de2396b9b83917d02f0372d9ae54394 X-PPE-TRUSTED: V=1;DIR=OUT; On Tue, 24 Nov 2026 00:40:48 +0000, netdev-bot+sashiko@kernel.org wrote:=0A= =0A= > > + if (rc)=0A= > > + sit9531x_write_close(sitdev, SIT9531X_REG_OUTSYS_DEBUG,=0A= > > + SIT9531X_DEBUG_LOCK_VAL);=0A= > > +=0A= > > + return rc;=0A= > > +}=0A= >=0A= > [Severity: Low]=0A= > When the unlock write fails here, the result of sit9531x_write_close() is= =0A= > dropped and outsys_key_pending is never set. Is that intended?=0A= >=0A= > The only place that updates the flag is sit9531x_outsys_debug_close():=0A= >=0A= > sitdev->outsys_key_pending =3D !!rc;=0A= >=0A= > sit9531x_dev_chan_states_update() and sit9531x_dev_stop() retry the close= =0A= > only when that flag is set.=0A= >=0A= > A failed I2C write can still latch the unlock byte, for example when the= =0A= > error comes after the data phase. If all SIT9531X_CLOSE_TRIES lock attemp= ts=0A= > then fail as well, could the Page 3 debug window stay unlocked with nothi= ng=0A= > ever retrying the close?=0A= >=0A= > sit9531x_output_disable(), sit9531x_output_enable() and=0A= > sit9531x_prg_enter() all reach this path. Would it work to call=0A= > sit9531x_outsys_debug_close() in the failure branch, or to set=0A= > outsys_key_pending from the sit9531x_write_close() result?=0A= =0A= v17 records the result of the lock write on that path, and the poll and=0A= removal close the key again if it failed.=0A= =0A= > > + msleep(100);=0A= > > +=0A= > > + sit9531x_outsys_debug_close(sitdev);=0A= > > +=0A= > > + return rc;=0A= > > }=0A= >=0A= > [Severity: Medium]=0A= > sit9531x_prg_relock() always closes the debug key, even when every=0A= > LOOP_LOCK attempt failed and loops_open was set. The later retries call= =0A= > sit9531x_prg_relock() directly. In sit9531x_dev_chan_states_update() and= =0A= > sit9531x_dev_stop():=0A= >=0A= > if (sitdev->loops_open)=0A= > sit9531x_prg_relock(sitdev);=0A= >=0A= > These retries write LOOP_LOCK to SIT9531X_REG_PRG_DIR_GEN while the key a= t=0A= > 0x03:0xBD is locked, and nothing reopens it first.=0A= >=0A= > Everywhere else, the driver opens the debug key before it writes=0A= > PRG_DIR_GEN. Suppose the device ignores PRG_DIR_GEN writes while the key = is=0A= > locked. The retry would still be ACKed, loops_open would be cleared, and= =0A= > the output loops would stay in PRG_CMD. Can that happen?=0A= >=0A= > loops_open =3D !!rc reflects only the I2C status, and nothing reads the l= oop=0A= > state back. Later in the series, the phase offset code also gates on=0A= > loops_open.=0A= >=0A= > This patch also adds a new way into this state. A failed PRG_CMD_STATE=0A= > write in sit9531x_prg_enter() now goes through sit9531x_prg_relock() and= =0A= > can set loops_open. The removed sit9531x_prg_abort() never queued a retry= .=0A= >=0A= > The out-of-window retry first appeared earlier in this series, in "dpll:= =0A= > sit9531x: add support to get and set frequency on pins" (through=0A= > sit9531x_prg_commit()). This patch rewrites it into sit9531x_prg_relock()= .=0A= > Whether the debug key gates 0x03:0x0F depends on the datasheet.=0A= >=0A= > Should the retry path reopen the debug window before it writes LOOP_LOCK?= =0A= =0A= In v17 the poll and removal retry the re-lock through=0A= sit9531x_prg_relock_retry(), which opens the output-system debug key=0A= before the loop lock, as the first attempt does. The change comes with=0A= patch 9.=0A= =0A= > > SIT9531X_PRG_CMD_STATE);=0A= > > if (rc) {=0A= > > - sit9531x_prg_abort(sitdev);=0A= > > + sit9531x_prg_relock(sitdev);=0A= > > return rc;=0A= > > }=0A= >=0A= > [Severity: Low]=0A= > This isn't a bug, but the commit message only describes the output mute= =0A= > through the Hi-Z force registers. The patch also reworks the PRG_CMD=0A= > helpers that "dpll: sit9531x: add support to get and set frequency on=0A= > pins" added for the output divider write.=0A= >=0A= > sit9531x_prg_abort() is removed. A failed PRG_CMD_STATE write here now go= es=0A= > through sit9531x_prg_relock(), which sets loops_open, sleeps for 100 ms a= nd=0A= > records the result of the key close in outsys_key_pending. Before this=0A= > patch, a failed loop lock on this path was never retried.=0A= >=0A= > The poll retry in sit9531x_dev_chan_states_update() and the removal path = in=0A= > sit9531x_dev_stop() now call sit9531x_prg_relock() instead of=0A= > sit9531x_prg_commit(). A retry therefore no longer re-issues=0A= > SIT9531X_UPDATE_NVM, and only a code comment explains that.=0A= >=0A= > There is also a new background retry that closes the output-system debug= =0A= > key after a failed close:=0A= >=0A= > else if (sitdev->outsys_key_pending)=0A= > sit9531x_outsys_debug_close(sitdev);=0A= >=0A= > Together these change how sit9531x_output_freq_set() behaves on failure.= =0A= > Could these changes go into the frequency-set patch, or at least be=0A= > described in this commit message?=0A= =0A= Agreed. The v17 message describes the single exit of the programming=0A= state and its retries.=0A= =0A= > > + if (keep & BIT(i))=0A= > > + continue;=0A= > > + rc =3D sit9531x_hiz_set_bit(sitdev, p[i].mask, p[i].bit,=0A= > > + false);=0A= > > + if (rc)=0A= > > + return rc;=0A= >=0A= > [Severity: Low]=0A= > If a read-modify-write fails partway through this loop, the pairs already= =0A= > released stay released. Is that intended?=0A= >=0A= > Take a CMOS output where CMOS_P was released and the CMOS_N pair then=0A= > fails. OutP is left driving and OutN is still forced to Hi-Z. Neither the= =0A= > user nor the loaded configuration asked for that state.=0A= > sit9531x_output_enable() then reads back part_muted =3D true and=0A= > enabled =3D true and returns the error. The pin reports CONNECTED while t= he=0A= > request fails.=0A= >=0A= > The mute branch below takes a snapshot of mask[] and state[] and rolls=0A= > back on failure. Should the unmute branch do the same?=0A= =0A= v17 uses one write loop for mute and unmute; a failure in either=0A= restores both bits of every pair already written.=0A= =0A= > > + }=0A= > > + return 0;=0A= > > }=0A= >=0A= > [Severity: Medium]=0A= > The commit message says:=0A= >=0A= > An un-mute releases the force and the pads return to the loaded=0A= > configuration.=0A= >=0A= > Does this branch restore the loaded configuration? It only clears the MAS= K=0A= > bit of each pair not in keep, and STATE stays at the 0 the mute wrote.=0A= >=0A= > The mask[] and state[] snapshot in the mute branch is used only to roll= =0A= > back a failed mute. sit9531x_out_state_fetch() fills hiz_keep only for=0A= > outputs found part-muted at probe, and only for pairs forced to Hi-Z (MAS= K=0A= > set, STATE clear).=0A= >=0A= > Consider a pair the profile had under a drive override (MASK=3D1, STATE= =3D1),=0A= > or any override on a differential or fully driven output. After a=0A= > DISCONNECTED then CONNECTED cycle it comes back as MASK=3D0, STATE=3D0. I= s=0A= > losing that override expected?=0A= >=0A= > sit9531x_dpll_output_pin_state_on_dpll_set() never skips a CONNECTED=0A= > request while part_muted is set. So on an output that was part-muted at= =0A= > probe, every CONNECTED request clears MASK on non-keep pairs the driver= =0A= > never touched. The readback only checks mask && !state, so nothing report= s=0A= > the lost override.=0A= >=0A= > Whether MASK=3D0 behaves differently from MASK=3D1/STATE=3D1 depends on t= he=0A= > device's non-override output control. Could the unmute put back the saved= =0A= > MASK/STATE values instead?=0A= =0A= Agreed. In v17 probe records the force and state bits the loaded=0A= configuration sets on each pair, and an unmute writes that record back.=0A= =0A= > > + if (rc)=0A= > > + return rc;=0A= > > + if (forced)=0A= > > + out->hiz_keep |=3D BIT(i);=0A= > > + }=0A= > > + }=0A= >=0A= > [Severity: Medium]=0A= > Does hiz_keep survive an unbind/rebind or a module reload?=0A= >=0A= > It is rebuilt only for outputs found part-muted. The driver's own mute,= =0A= > sit9531x_output_disable()->sit9531x_output_hiz_write(..., true, 0), force= s=0A= > all three pairs. sit9531x_dev_stop() does not undo those forces, and the= =0A= > force registers are outside the NVM, so they stay set while the part has= =0A= > power.=0A= >=0A= > After a rebind without a power cycle, this function sees muted =3D true a= nd=0A= > part =3D false, and sets hiz_keep =3D 0. A later CONNECTED request then c= alls=0A= > sit9531x_output_hiz_write(slot, false, 0). That clears MASK on all three= =0A= > pairs, including the pad the loaded configuration had forced to Hi-Z.=0A= >=0A= > For example, a CMOS output whose profile drives only OutP would end up=0A= > with both OutP and OutN driving. Wouldn't that contradict "the pads retur= n=0A= > to the loaded configuration"?=0A= >=0A= > Resume, added later in the series, re-reads the mute state but does not= =0A= > recompute hiz_keep. The gap is still there at the end of the series.=0A= =0A= No. After a rebind the driver has only the force registers and can't=0A= tell a pair an earlier binding forced from one the configuration forced;=0A= on an output found muted it takes the pair as the mute, and an unmute=0A= drives every pad. The v17 kernel-doc and message say so. Resume reads=0A= the record again unless the output was muted before and after suspend.=0A= =0A= > > + if (!sit9531x_output_state_refresh(sitdev, dpin->id) &&=0A= > > + sitdev->out[dpin->id].enabled =3D=3D enable &&=0A= > > + !sitdev->out[dpin->id].part_muted) {=0A= > > + mutex_unlock(&sitdev->multiop_lock);=0A= > > + return 0;=0A= > > + }=0A= >=0A= > [Severity: Low]=0A= > This comment seems to disagree with the get side. The @part_muted=0A= > kernel-doc in core.h says such an output is "reported as driven", and=0A= > sit9531x_dpll_output_pin_state_on_dpll_get() reports it as CONNECTED.=0A= >=0A= > The skip test requires !part_muted, so a CONNECTED request on a pin that= =0A= > already reports CONNECTED always runs sit9531x_output_enable(). On an=0A= > output part-muted at probe, the hiz_keep pads stay forced, the readback i= s=0A= > part-muted and enabled again, and the reported state does not change.=0A= >=0A= > Each such request still does a read-modify-write of every non-keep Hi-Z= =0A= > MASK bit. That can clear profile-set mask bits the driver never changed,= =0A= > such as the DIFF pair of a CMOS output.=0A= >=0A= > The exclusion also lets a retry finish an unmute that failed partway when= =0A= > hiz_keep is 0. Could the skip treat the hiz_keep-only case as already=0A= > satisfied for CONNECTED, or could the comment match the @part_muted=0A= > documentation?=0A= =0A= Agreed. In v17 a pad the configuration forces is not counted as a mute,=0A= so the getter and the setter agree, and an unmute writes only the bits=0A= that differ from the record.=0A=