Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp218798lqs; Thu, 13 Jun 2024 08:15:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUY0+4Qu5fbKo8+g1Uk+p26AIMPlBASlhqveFbya/j4eeu/zXdTA6lzQ8jXUiQXDhFc2zfmYLiEj7J9F1++xBPB6W9UgiPHJdCwYpIGIg== X-Google-Smtp-Source: AGHT+IFl17IeSlOGsUSonoiGCdknN6oMYP0iQub6+4fgZjaNYpSLUHe7Z/XA9RPbquTmDrksENoj X-Received: by 2002:a17:90a:bb04:b0:2c1:aefa:1e7f with SMTP id 98e67ed59e1d1-2c4db13239dmr72449a91.3.1718291754045; Thu, 13 Jun 2024 08:15:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718291754; cv=pass; d=google.com; s=arc-20160816; b=D2Hy1xj51kuVOzp9zQGp8mDtwUJ/BhqFPM+2EM0L7DS3dGx4vzlLu1fTaDBFKvOH0T bzwA9ab52pIVnOjbjktkpIFyciBOngnQzkyiiFwstrfadqg4ZWDpAEC5uV0xFwq+fzxj d7Gzy/hF+sjEeaP49IU2BogiYUK208ZXGxEHK1mLAZtPVsHKmfIabVa8crvnfGVziqQ4 oqw1RognjxoJ8DLQlVCgMEmIA5MLft9M6Dxgnb6liX1enXZ0bnuPcfEAV94goTuzY6Tl ErkDmUkXaENzqmy8LitKWhrJBpXYx8virMTqyMgJP8Pj3gxoTmUz4sOZ9AXDquQmqC7z Wfpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Px3jQSKadjE2oY1RU4BFBwJ54nWk3y+bVr4OlgNm+g8=; fh=6sYC5rzt4s/0k4LUKbP5DAFJgydt+g/ku3w9NMdBIL8=; b=bachrzLVKcHrt9zivBFLfT5ufTjbZZjH7Ov46xP0/znGf9sTe9n8rd6MXM73zo4s/u dsAh7xch8j4TNzxozyu+GS65g6MunY/VNB757RDrnGb1YaMRondY/qOhGzp+wDD1O8W2 UFp4+Iyz5TQQ0YpnkncItt60MBI3QDN6h9k46nyRsUqpzSmEHLcjFOR0ggUn6mCcUek7 7psdFmEjBfbEjdUUqlScI/KZH1yzywDkekHIqnbvzrw1hB1EQZOek0VMLPE4u6hM04RD qJFRy99FiorzxVrurbMIiV9o18jBpG76u3UDlqf5OVECgurqikChD6HNh3pxcduyK5zY zeBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PdHqJdde; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213510-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a76abe9dsi3837348a91.107.2024.06.13.08.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PdHqJdde; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213510-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 65363286AF6 for ; Thu, 13 Jun 2024 15:13:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE423149C53; Thu, 13 Jun 2024 15:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PdHqJdde" 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 02A621474A8; Thu, 13 Jun 2024 15:12:34 +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=1718291555; cv=none; b=iRR5+9fD9oPMt1f9kmdme2OLA1SzWhI0gmjQBPmalaNqj0pBRBBLW1nQMOFngHgTscFf78JRZrsoQltkoqOrqQpvJkbIpr7Q2Ghkk9um+MNiqtCG8NpGKQiAr9IHoo0pt/8hG5+eqCLeiO8mihAWWvvt7PDg5OdQYxbyQfPCkSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718291555; c=relaxed/simple; bh=XsF8HkAJYL9Ss7pF8HPDdQHn7zyHWQqpDXPPFItQYms=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tUIaExzWoiSX1u08SEbjnUonrDuy8rFvjm/J+zfy8o2SBpjOSnNvsiIkLPCiVOP5o+a34bNezFpBBv6YilgmyMal+1DwpvvKI1jAgGlf58dr1YzjHZ5dU5YAVGsMqddzxugqnbPa9vlhA4pFllaVofFGKEVt7uumEveqnG5AJVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PdHqJdde; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 102F1C2BBFC; Thu, 13 Jun 2024 15:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718291554; bh=XsF8HkAJYL9Ss7pF8HPDdQHn7zyHWQqpDXPPFItQYms=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PdHqJddemg5/0l6huu8epVk4gX6SFL8oHPYXL3vx0M0s4JQUCFJbGuqIlYn4D3b9V gEinFkeEJiStL58PUrx/LHjUH8U66EUpnKj4cDOqDgsTEJShTVPkrl6lHT9KvzJf0p 6brJt8XKlyo6Q5osP2va+dPmHErV/uaWV7jXycdjltvDFWOLLgtqKFUnueV+c+RqsH oYXr1kR3Fq2z9k31FtUl5ZaLgjkkUbtQglXgNJ+l/a/sF2JicCpXDLcD6UHL0eVQ9z kuRZz8b0RKpGx2NbWlZ+M/J3AMVhAOaBvVe1DQQYxYlRUM66QObOXZmcVgszwn4zBS kcZnF8Wi8dsGg== Date: Thu, 13 Jun 2024 08:12:33 -0700 From: Jakub Kicinski To: "=?UTF-8?B?Q3PDs2vDoXMs?= Bence" Cc: Frank Li , "David S. Miller" , , , , "Richard Cochran" , Wei Fang , Shenwei Wang , Clark Wang , Eric Dumazet , Paolo Abeni Subject: Re: [PATCH resubmit 2] net: fec: Fix FEC_ECR_EN1588 being cleared on link-down Message-ID: <20240613081233.6ff570cd@kernel.org> In-Reply-To: <20240611080405.673431-1-csokas.bence@prolan.hu> References: <20240611080405.673431-1-csokas.bence@prolan.hu> 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-Transfer-Encoding: quoted-printable On Tue, 11 Jun 2024 10:04:05 +0200 Cs=C3=B3k=C3=A1s, Bence wrote: > + if (fep->bufdesc_ex) { > + val =3D readl(fep->hwp + FEC_ECNTRL); > + val |=3D FEC_ECR_EN1588; > + writel(val, fep->hwp + FEC_ECNTRL); FEC_ECNTRL gets written multiple times in this function, including with 0, and then you RMW it to add this flag. Is this intentional? It really seems like you should be adding this flag more consistently or making sure its not cleared, rather than appending "add it back" at the=20 end of the function... --=20 pw-bot: cr