Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1605116pxb; Fri, 26 Feb 2021 15:47:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhehz31kYYce/ynkhBMiOOpKvhCFvDPNJGgF9CWE7/iCCEhZ9LqfRXxptanU2h1Vv/QfrS X-Received: by 2002:a17:906:3552:: with SMTP id s18mr5918002eja.497.1614383270558; Fri, 26 Feb 2021 15:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614383270; cv=none; d=google.com; s=arc-20160816; b=ghbz5CtGqnY88Z5wsW+/QHFSid1y1fKAcpEAI0BR87fQYPY1viBtj6yxpw0v6oJyvZ T6X+NGFBIiv7TIKoS/BoPU8/XvbfUSsCGoTvdEQy9vLo8Tg1e6szdE5oyI8Oz70fwpWJ MW15c+NnBdDIafrWQus9OniMvBciV1mDe+P2Sy8nvlKGKXwRY3y3zuo2jlFJyDEY16Io K7GeXr/fpz/0Wm23A/sfXjI5JmpSqJVoXLkLgNEqdF+mJ1MOBLtyjeeZrCigHDna7KGu 6lVgQquD8RT4IR1IA3U11mHvx93nKWpX/uDyJqpilPLXc5geEm1/JSVBSLUlL+ADxzpL hY1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=MNiiS95UgjA678QNoYhwNMVJqugjTeQA83k3Vq0kTYw=; b=Ex/vjhVm8lrilTKYQTzh9OB2xktLM1NsDOE/XZv+1MCbf/6hvyDT9J/qHfXmJfL3Tj lfOoQ78PDScX5fG4aCIqRim8lKiLLuzkqUVZFPJRTlYU4ltO6cAQfSAHFOI4H9ytM3Ks urkCAj8YVBEQLKQ5usKqkrpWMh6IS2mJzbnU6FFmuBsX0/tMWbmN/bYjgvlKvgC51cDw dFuHvW+MlPe1MEoHNzaECwOdepyyF5lGwpNnD4K7cIpNAha6uiHPU5IAKpt5KXuktYDu xQKBSqi82UOkuo6Fmizb/MvvrghYSh2gAEmpa5CUIINj/Rfd1Ag1tBRfD1a+weoj49kO Zt4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UEIvrxSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he39si6996565ejc.512.2021.02.26.15.47.28; Fri, 26 Feb 2021 15:47:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UEIvrxSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbhBZXpl (ORCPT + 99 others); Fri, 26 Feb 2021 18:45:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:52404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbhBZXpi (ORCPT ); Fri, 26 Feb 2021 18:45:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8B5064EFA; Fri, 26 Feb 2021 23:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614383098; bh=dEaRhcmyFCzj248hiTK2l3Emc3/GnGJvEvLBYW/GUjU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UEIvrxSJu8q8sdY/L3E5wfYm1KSaT8N8lXXXTPgqHU3iTDpOdhh3wRDsYreia25l5 PfUdDIJHgcjK9ATY+VT3CQqyB3OA4j84VNMDS20OH+3cKO4rTShjx16n/iAOP5gB4I W6vIcR308qmyAAT2wrKYYTHhP/fu0ks6CFyOgpXi667Vz52ZIw7utQ7NOc2QDqG+Sc oGEKtrfY1wLXrmJLXhxy4+ZIYXMVLKBgAQ/UYUKjmxHPXWIFzVP3T1ROOcUNpJbk1D Y3QxRF2e0yAXACjMefAJuHeNlWptG28E/q21xlzzH0qArIy7PdKkAhuHhLVwMm+yaX ZcFGDE1Uy1naA== Date: Fri, 26 Feb 2021 15:44:57 -0800 From: Jakub Kicinski To: Richard Cochran Cc: Heiko Thiery , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Fugang Duan , "David S . Miller" Subject: Re: [PATCH v2 1/1] net: fec: ptp: avoid register access when ipg clock is disabled Message-ID: <20210226154457.71094945@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210226152331.GD26140@hoboy.vegasvil.org> References: <20210225211514.9115-1-heiko.thiery@gmail.com> <20210226152331.GD26140@hoboy.vegasvil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Feb 2021 07:23:31 -0800 Richard Cochran wrote: > On Thu, Feb 25, 2021 at 10:15:16PM +0100, Heiko Thiery wrote: > > When accessing the timecounter register on an i.MX8MQ the kernel hangs. > > This is only the case when the interface is down. This can be reproduced > > by reading with 'phc_ctrl eth0 get'. > > > > Like described in the change in 91c0d987a9788dcc5fe26baafd73bf9242b68900 > > the igp clock is disabled when the interface is down and leads to a > > system hang. > > > > So we check if the ptp clock status before reading the timecounter > > register. > > > > Signed-off-by: Heiko Thiery > > --- > > v2: > > - add mutex (thanks to Richard) > > > > v3: > > I did a mistake and did not test properly > > - add parenteses > > - fix the used variable On Fri, 26 Feb 2021 08:22:50 +0100 Heiko Thiery wrote: > Sorry for the noise. But just realized that I sent a v3 version of the > patch but forgot to update the subject line (still v2). Should I > resend it with the correct subject? No need, looks like patchwork caught the right version. > Acked-by: Richard Cochran Applied, thanks!