Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2266961lqo; Mon, 13 May 2024 12:50:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQclAQXIT1ZR8DvWgwfmgFUg69ibo2k224PcPzeAwR6iWmDELTHM9Gzor46PZQhOhiJMjDXTrLMWtjW8wj2I8n2PlaHM8jUIKO5jc76w== X-Google-Smtp-Source: AGHT+IG9F8h5otujmRd4/iIy0ByUFAFxR2wImkzlOhPtSUs+j7ISBTs1Pnru6Dgnvl/V6qaqn09e X-Received: by 2002:a2e:98d5:0:b0:2e1:2169:a5cc with SMTP id 38308e7fff4ca-2e51fd4a742mr75182571fa.15.1715629826364; Mon, 13 May 2024 12:50:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715629826; cv=pass; d=google.com; s=arc-20160816; b=GfbB1StSJvXFnc3/Dv9JYoF6TbTAWwBsGxNcBcDeX7CFwqCMUsdYZReAjPhZH056x+ mW/6UnMN6JrJirUUvt+aFxW0plzJiUhWhGuDWpFEvuNHTg6uVyzVTsVp8f6bL9TGqcDR ZqTrQd+VP2Wmki1L0cttdtBim9mxjcOevrg9ktSLI80bXOHLnRkH7BZXQBIc12D3MuSI DgrBZYvDSnItb3lbu7eCTIPkpw3XzbOa2JLR3AoAsuKOubAZdQBgjzLP0wCoe25ZtfTW wx9DGpnFbsPalD5Jqn8AOTNFaXcdeN+sEL5hC3ZVtcG1Ccq+Oo3O9npd5pUJqBPaMxVr MmCQ== 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=8RlSk6RYdfZV+fs8II7hgr5S0WvclWazRx6pT8w11ko=; fh=JNscE/wN6RWuM1c7vQaBExlfawGX1FS0Hmu3bH58Yso=; b=e7Kry5kUyS6mLrpT4cJfDkLHZHPyMvDoI09yw/0VJqkIb9KNYZ45+vTb8Q/35MXCOy vJTQ4yQ5+d1eqCLnoN/POWSJp61ajh1O6zx2z6UzNzreHt+4cA28eWXljapnYZpWOIFR BH+CeWcV+v5iCCywuAXIr1ME5lxABbU9IyzjgQMjoaSMvbwIYmYcijmEm5T/B/e4/952 Q7GkcrpKZ7m4CeKBBmT5F7O8LGKW0dt5vKPBSWJVWDulqt+87sQtU3VTmdScYa2UK4KM jjpa6WVqhhrAXsokozIR+sE4+ld+0wo8g/90TSPPCAvI827KLWLUvXYQcJXe2nKjxHlA 89UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aVWZOSVg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beacd13si5365933a12.46.2024.05.13.12.50.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 12:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aVWZOSVg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 16FB01F24BD2 for ; Mon, 13 May 2024 19:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 420987BB0C; Mon, 13 May 2024 19:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aVWZOSVg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 69211757FB; Mon, 13 May 2024 19:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715629815; cv=none; b=cpqx/sYZjFsjQoBerF1xpV6ti0Rpe7IJlJkVzzZAw0yYAku7++PHfg3Tt7s04nPfJGMLDWecUyGYfY2yLxM0wBkWjvuYwVWWNnZjExxt9Vc1a0X0kv3U03XzKHykPQzfcrEzteLk0LKXvcZFhuWxl/Bys9RMT1bNKnT9og3HWTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715629815; c=relaxed/simple; bh=NrfU76rQkDacMih4EfCdtj4kvNf3aCwAPMB9IErV4bI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BWTMgDDKf3SKejUmKrsE+rLCNvR6aVjoidqDmdRRUWL0POM40ZuxCPktTHX7fDqsaqcVBZCQr+y/NTvXhj26VwKtfo41VTConypzZR7823rXbS6TckBP54O0WEuqdJAdYtabjVMueBpSaYnVzt78eBtP8LFHzC4aWcZcOmCGcUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aVWZOSVg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3805C113CC; Mon, 13 May 2024 19:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715629815; bh=NrfU76rQkDacMih4EfCdtj4kvNf3aCwAPMB9IErV4bI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aVWZOSVgRq1OlnbzQAK3cpcg3rOJXKkQbYEzNv/XVkLOaUh0/l/KJBW2MMYqE7QZd F7dS4rem5C9x9ZKieAw45EXIVSycjjukzdJK0b7haPPxCMm+wpSvv49jxCsQClRQPy i/shI+9XyCapgk7/x80lIWYa25n5OZRWjQGSUJCQtDyLKes7/Krxjj73tv0fV5a2tW BahY0FO+fhPIune5Dg/kS92iqhh3a9g8Zi487w8WGGuBNPBDnyrdZtF2HJ+k6P/iRR mIqsThiDmUTMcRK9XXpTrOpDNO1SYBRIPwRGCuv9rIQ6eUBhQYUhaC/f1G2LzsOlai KCdve26RrMeaA== Date: Mon, 13 May 2024 20:50:10 +0100 From: Simon Horman To: Horatiu Vultur Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: micrel: Fix receiving the timestamp in the frame for lan8841 Message-ID: <20240513195010.GW2787@kernel.org> References: <20240513192157.3917664-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=us-ascii Content-Disposition: inline In-Reply-To: <20240513192157.3917664-1-horatiu.vultur@microchip.com> On Mon, May 13, 2024 at 09:21:57PM +0200, Horatiu Vultur wrote: > The blamed commit started to use the ptp workqueue to get the second > part of the timestamp. And when the port was set down, then this > workqueue is stopped. But if the config option NETWORK_PHY_TIMESTAMPING > is not enabled, then the ptp_clock is not initialized so then it would > crash when it would try to access the delayed work. > So then basically by setting up and then down the port, it would crash. > The fix consists in checking if the ptp_clock is initialized and only > then cancel the delayed work. > > Fixes: cc7554954848 ("net: micrel: Change to receive timestamp in the frame for lan8841") > Signed-off-by: Horatiu Vultur Reviewed-by: Simon Horman