Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp359287lqb; Thu, 23 May 2024 23:46:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtg3akQb9xx7KSIJlHUQCQK5FKh3ckL+0NrWqMavRpAMCLsXzV+Q6SQdjhrORDb3dsbIGpyvsxbLNR9mTFF8GpvWE6P4+yLlSFAYqPzw== X-Google-Smtp-Source: AGHT+IHZPGTqNH9KOAR2Z6phEMFux7av+Ur8HIDRPXQqiAJG3i87T36rki6Rwmjwn3NcKCPJbcJs X-Received: by 2002:a05:6358:9f9f:b0:192:8935:4080 with SMTP id e5c5f4694b2df-197e50c13a3mr147865355d.5.1716533187194; Thu, 23 May 2024 23:46:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716533187; cv=pass; d=google.com; s=arc-20160816; b=EfStSz/u23hvMJ6t9w9zCJsbaRQ90mXUFNYS5bmEPNaIHBvg408/rpZwp4g8Y/Ezha 1EaD3sCcTsF/ddt77OVGM9tvDpfZOl/zFO4v/XmjwSXeGIgfaWu/ICHwAPI0qn3V7GNc HLd9KhqXTNBXq4LKV8KqomM5WPr8b38+ZF4IjYpGnKCtSMkEdE+/lkcX8xDVK6R7EKXg nxJqb1TVUhBkAkYbLAv1pCZayzuV782kuKAlVwh1fqftVi55/OXRR37DI9Ga5+yDLRk9 +txOBAnXgxJVB9Bi6NbwLQjP0WUf34TuMaE2cw8sfO4CR6s9oZyag1WwFqf+Dxo13ZVa EKrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lmGMocE8PW2kIq8XRqNDJV+xG7HXf/5smvfAePN1m60=; fh=19PbaSqHSdJprAWmcHVuTYRGTK0n2KMIWLPFrIy+5vM=; b=s1peXt8DBVAp0zms9TFIvvGOqcv0/xqrQ4gBE1Lv1bAdDOUEDPwijbJ+MGZGYg2gMb 054N13j1hMNn0xfqZik1E66pPSmUoiTN1eddEZb1DFMIrNXqxWySnk3YqPgEJokuWDzZ Vmj8UfLM8GkJrhXGl8cmO5rwrcxUJQUEgbRA/IJZO1xVsdXTEwTIeTJyXbZv4omEozSU 2q3lTC+/5o8+M0bwG7q9cTa9iAEw28LNiDDf7FX6LGX8aiOG6h82HO6HBS+qDQ2+T4DJ LopDvZeCaqLs9g68as8nPSrjueBPsYWiPTlEW+d7cjE1+hmrK273D2/BZ5+ep/hTcMZ/ LiKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=mSLIHhFa; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-188365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-682288e70fesi716227a12.512.2024.05.23.23.46.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 23:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=mSLIHhFa; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-188365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 455E8B20D54 for ; Fri, 24 May 2024 06:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23AC5128383; Fri, 24 May 2024 06:46:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="mSLIHhFa" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 370FD11720; Fri, 24 May 2024 06:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716533176; cv=none; b=Wa0yJWCYDOu38qCINpEg5e7LX8v/t4bE2QQ69piNTMWFa+CEoLmI717Yz8x+CKNxWQmCh5u2McoeJDMpEjGZ86CrdnjIZXIs5W3FA159sfzXgLbIaChDcNqGW2JQ7BW0viiKJlyNWXp6X6YvQR31X/1In+bHtD67tJvxsHj16d8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716533176; c=relaxed/simple; bh=eiRn/vN8iDS+Y+0RkaS2CgKhhRNR/qHiMq5yJ8nBx9Q=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J8VxpjkGg0cKr2B6vsGpSAZ0Ex6+vw1QkFsmvay5JMfT4MhDBz2PwB1bK+cPqxuqiMr3tfB8wVIkctqfxTYdXQ7DXmJtH72ScXGapaNbfCQtkkpkpq4qsBRB3iCicobfnT+OOjgqBOeGE/MZump/JR0wiVExFsfwfyTbUY68cxM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=mSLIHhFa; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1716533174; x=1748069174; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eiRn/vN8iDS+Y+0RkaS2CgKhhRNR/qHiMq5yJ8nBx9Q=; b=mSLIHhFaOEkbNnUlHa+mq/eLCKjWEhJ/CMe8MtGwU8rbEQVSVOXOBMWW Ey5T99RwbZ+tiuJYO7ON3We/aGtlxR/gtmn6a4RFXbRZVmAbPbE7+Sy2R e5YuqPRqA3V9stuL6KSHcgMEMT2hWZzrL7JK0L7CnDZikcL64qIogMxjP 7M0qKvaCH5ZVg11ocW6ANN1rPaqVoDl/tErk3ey+v2fPoiAawQcz5NYlL uFoSsm71FNgPgRRzw1zxADkWkQpoGcztagwPlAUE9qDw4Ab79HgP9J10j 6OfY4wo8vh5GsDqu+5RMgKm1+sELXFSMyuMlxLgVqinbPmRRWiwB/YEF9 Q==; X-CSE-ConnectionGUID: /UL2vblMR6SFoS4wMFNRWg== X-CSE-MsgGUID: hRmXZyaxQuyNQP9XPV9WZA== X-IronPort-AV: E=Sophos;i="6.08,184,1712646000"; d="scan'208";a="28356567" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 May 2024 23:46:06 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 May 2024 23:45:41 -0700 Received: from localhost (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Thu, 23 May 2024 23:45:41 -0700 Date: Fri, 24 May 2024 08:45:40 +0200 From: Horatiu Vultur To: Suman Ghosh CC: "andrew@lunn.ch" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net] net: micrel: Fix lan8841_config_intr after getting out of sleep mode Message-ID: <20240524064540.azzmscw5k333zerr@DEN-DL-M31836.microchip.com> References: <20240523074226.3540332-1-horatiu.vultur@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: The 05/23/2024 16:35, Suman Ghosh wrote: Hi Suman, > > > if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { > > err = phy_read(phydev, LAN8814_INTS); > >- if (err) > >+ if (err < 0) > [Suman] Hi Horatiu, > Should we modify this check for phy_write() as well? I don't think we should modify this check for phy_write. Because phy_write always return the error code. Which is negative or 0. > > return err; > > > > /* Enable / disable interrupts. It is OK to enable PTP > >interrupt > >-- > >2.34.1 > > > -- /Horatiu