Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp19201lqb; Thu, 23 May 2024 09:36:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWD+5kJVuZrIdBJl3YJ5CKwPc0XH6HObQO1jF6DoZSUIFS6sG/IKJaW4qMLHlxmFdtEgJuzvG/MhOKJ6f9V1pJiCo+ZJZp8xFoJRoRk/Q== X-Google-Smtp-Source: AGHT+IFy8cjrTNcS61cO1PZiwWHiee6QTpeFQ3MFira+mm/rRI24ee9NXt/uWpyEpK0Ok1/gQo1S X-Received: by 2002:a05:6102:c8a:b0:47f:1a24:d428 with SMTP id ada2fe7eead31-48900913d67mr6762181137.6.1716482197252; Thu, 23 May 2024 09:36:37 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-481f93303cfsi4465203137.333.2024.05.23.09.36.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 09:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=selector1 header.b=syqnMX1r; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-187789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E362B1C213AD for ; Thu, 23 May 2024 16:36:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6CC11CFBE; Thu, 23 May 2024 16:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b="syqnMX1r" Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4556E18643; Thu, 23 May 2024 16:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=67.231.148.174 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716482179; cv=fail; b=KTvEfjocCKS6qVw/FIO8tn2ZfgPZdIVrAzJ1Kq72eB8k6NKEgsP5OggUz2v3l2tFPwZtLYr3S8Cup63/FkntVUofXXPr/5XxGOI258DAdF2fRAAabKU/iR6eEKDROKyk5Ox/S5KS1cifwsYq4MQ1ZseajyHx1ppQOZjBZn624lY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716482179; c=relaxed/simple; bh=HLA3/bIg9SmEUIpIYcgixz9dc0e03C+7VkYP4o0r/IA=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=ByduiFJSgi5gByFM3m2q49nWUZJb/bxgGSCLjSTBsy9VARCHvbshFcvN+Y6mErCPMrGgGZpdOJnb62R/gkDl1cLd15012AZac+imtZFFjJcP8Xap0RIi3yjNnuqpp1mv0vjbvMx+ZL7GqjsjXF2qQajMxaZqoG/bU83xx2hzJOI= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b=syqnMX1r; arc=fail smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44NG3ACG004520; Thu, 23 May 2024 09:35:57 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3y9xy7tcsj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 09:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aWipO7k9GzVgZbEpyrbiDhqI4bFCBz9XjCJOwX3SKO2/r8M5t2DV1TXBOSfoaeQst8zeDgYYQFtsNTWsB/EBEkBWQG9zQek+IBJV0V0jb6Bq4Kl0jGNZe7ob5dnU8fWvIprsxOzAm6VN/Fp3lKkqLyFHidrgrQEp8YAP2YZT4teDs5fEkW1kA78X3EcdGceEsk8RgQTdHDTzPgEkEz4sP1lRQnDtq93HOSpUT8epMENdEUB5udPK/yv4RGLDz72lpK5EeSKRLPbOYyHkU+0C++08rM1HfqUZEndpbFck6iFSjwJM1i+eT0IgPdngp5ihMpKPH6SpFK4Ht9QeGWqeuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Uo++/ZwhY/TaX2WKuVp6O2BUWTMUthltJHG/wRZfxHQ=; b=lzmwnIeyXQV/zaM/GIVSuQfNmp7zZj9FRQN4vnT5o1+ijrGC4Frsfrw60Rp7gWSTKp2/L4f6VAGGn0PpYH8ZgtNiNsqJte4dg/97el1bgpbjhW0CHEWXCUAsnZeIa9aqv1Hl/OoVyrd2O+CX51GGI4iWDyzsY489tYst1EdNHGMECzk5c6KloI1MAusRPCbN67ZmJH347/bMBsWE25p3yB/mE5rRV9Cl0mcQSDGzskr7jhRwor03AWYRjbpnMZPGDV/XkULU6KoXE+Nx5HVgEcbHE17zJsAsKApvVDELuU8ejei3IfLVjUXzNoLGZzgp2QxCo7CFceo9h1JT0on+dg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Uo++/ZwhY/TaX2WKuVp6O2BUWTMUthltJHG/wRZfxHQ=; b=syqnMX1rfyjgmx7iQmmqWlOe5zz0WFAbeazfRvUK0EOoG8gdE8c+w7WXI7FYXiK6Zj2Lesqp1FrT8VtjcpFDZ6UrAhUBfflm7skUJX3QUrMTNuVe2dIpaLtnHdamvW06JyFjo3KPF95RGCMUIXp2y7adFeOSisuGK5Cy0w2iR3g= Received: from SJ0PR18MB5216.namprd18.prod.outlook.com (2603:10b6:a03:430::6) by DS1PR18MB6147.namprd18.prod.outlook.com (2603:10b6:8:1f0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 16:35:52 +0000 Received: from SJ0PR18MB5216.namprd18.prod.outlook.com ([fe80::2bf5:960a:a348:fad1]) by SJ0PR18MB5216.namprd18.prod.outlook.com ([fe80::2bf5:960a:a348:fad1%5]) with mapi id 15.20.7611.016; Thu, 23 May 2024 16:35:51 +0000 From: Suman Ghosh To: Horatiu Vultur , "andrew@lunn.ch" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXTERNAL] [PATCH net] net: micrel: Fix lan8841_config_intr after getting out of sleep mode Thread-Topic: [EXTERNAL] [PATCH net] net: micrel: Fix lan8841_config_intr after getting out of sleep mode Thread-Index: AQHarOT3UyOxKcfaoUSXaQoYOaBJMbGlBGjw Date: Thu, 23 May 2024 16:35:51 +0000 Message-ID: References: <20240523074226.3540332-1-horatiu.vultur@microchip.com> In-Reply-To: <20240523074226.3540332-1-horatiu.vultur@microchip.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR18MB5216:EE_|DS1PR18MB6147:EE_ x-ms-office365-filtering-correlation-id: 3ee369ca-9ea4-4021-b89a-08dc7b4668e0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|7416005|1800799015|366007|376005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?l4sJLEWtCNEp0nUpZZoB8uK4YiB5xrWeDEmnzTevTLNfZDwgLxGE/SxzHHcj?= =?us-ascii?Q?z9bUsu8k6E9rgppzLT/Bq2lRGDP5rsyXZyBJJQyXDqCawGRlhDJBBT9E7lWv?= =?us-ascii?Q?Oe7G2wmTfQc9i6Cc404qBxabT6mk9WhMamPme7VRNtYVg084QxR5WJn8IzhA?= =?us-ascii?Q?XwdOTHybvoc7t2WbUCeQxjGk0fQiNeWZnr5XvjlokCqr3P5CAYFm0gLFAXcP?= =?us-ascii?Q?sS3MIQoTWJozixycWNMzN97DMU8HjEtgZH7A1QyxsF9e2Dw6+/Y2GY/SABeq?= =?us-ascii?Q?P0vg0v1CtWDik4DikY9lhPSpYJ/pZV+oYly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bLyCZ1PmAuUESDGGUPzmbH3aDRGgChaYzXVgcnV074RMYnd?= =?us-ascii?Q?XpFdp2vI/4WxWlfzcf8cxuTpqbiaDf9wb4ggc1PjoJl7NoR6wFeOErFHXX5x?= =?us-ascii?Q?tOEub2iM9g1a4YxIA4AYG0KmF2PZTZf9sQoX/5wAJv28SQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR18MB5216.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(366007)(376005)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qIcxO1n4uCvVdQbvSqylrgZr/FWe5wENwCPr9Kpy360nSZKQeh180wi6HgFB?= =?us-ascii?Q?8gjhFN5vLU6IEIrriS+UucFpP8ys6dr/OrcTWUIg6g3FwgLv1ReN333yO6xl?= =?us-ascii?Q?JrNRGa5Ypvh7qtMa+4M5Hl1vn3AF1Ut3xCkVSRvW3doEg/uUAzpEvA3E5gEk?= =?us-ascii?Q?WAei/dj0QBvROCacfZHu3ImoRaUkruvsqXJsekkpWBTFiiCQe284vDKFfBtI?= =?us-ascii?Q?d0UJBRCsqyux1fXnwUbg6gL1s5espW2ohO2k/SO5w1SCVFJ91TBAOkf0BTZk?= =?us-ascii?Q?RyRjpvrACqqAAcI8t4wo0ElcwAAvOI1y2dxG/pF11MziGzCBn34GZ89dNGh6?= =?us-ascii?Q?WpMHfo6HzHmHZbommnuoUwCXFCyTTEHlx/9hlsxPPZNX61UbpatVxDVcR9P7?= =?us-ascii?Q?ya2mvWTXsmLUapVfgoYH+PtWlg6YHVKtwTmeA9GLlB48yFH+Hz723emiABXJ?= =?us-ascii?Q?SpLbMVQEouQ4tIGyxPI+8FfuNdBicqKnRTnMssKO+pxfccWYdXP7kTXWwj4m?= =?us-ascii?Q?vQdzq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DTTJtgx?= =?us-ascii?Q?UuLh7N13C8EjL4l3n/OdsM+S3Pyj4vEYXDu4h9GM0J1n67FEsoGynlX/ASwF?= =?us-ascii?Q?D10XVeNHwQrbRVdcTg1xkHml36WFckjfLIsLfh71tuAvn8ebwlp6Il4svE2T?= =?us-ascii?Q?xfqxTM+BIG52csi/VmoXQD8/ZAfBuWDqx/RScgYM?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR18MB5216.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ee369ca-9ea4-4021-b89a-08dc7b4668e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2024 16:35:51.7064 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: H0wyflwBrAV3r2+LnHqSfdki23qI/cBQJt+kymgBE9UHGW7li/S4heUPeWL3QeMYUveFeP20gK0/LCbpwv9bpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS1PR18MB6147 X-Proofpoint-ORIG-GUID: qHt802B7hr6AFEscS8AHbHNbXqP9uxoQ X-Proofpoint-GUID: qHt802B7hr6AFEscS8AHbHNbXqP9uxoQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_09,2024-05-23_01,2024-05-17_01 > if (phydev->interrupts =3D=3D PHY_INTERRUPT_ENABLED) { > err =3D phy_read(phydev, LAN8814_INTS); >- if (err) >+ if (err < 0) [Suman] Hi Horatiu, Should we modify this check for phy_write() as well? > return err; > > /* Enable / disable interrupts. It is OK to enable PTP >interrupt >-- >2.34.1 >