Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1157742lqs; Fri, 14 Jun 2024 18:27:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6ym/QdqMxnNIFE115qCXm7JegAcotB9VR79A+opvmJb7d5ge5em0KkvFhHTi0U8xgNSZMjts2N2/1f0vE3/B426UXvj91nfUGDxko4g== X-Google-Smtp-Source: AGHT+IGeMkLs/yuXAodaiMI7Cr/jIIYfmqH0ZdyVVtJbIhXHQddKtTWwvBs0BQPuh//c/4zP4Qi+ X-Received: by 2002:a50:8e1b:0:b0:57c:9eef:e54 with SMTP id 4fb4d7f45d1cf-57cbd69da07mr3478515a12.5.1718414865652; Fri, 14 Jun 2024 18:27:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718414865; cv=pass; d=google.com; s=arc-20160816; b=mNSxhCkJ5xFlqb7kvBpR8acU6KKjbGKF5jfdutls7yyHCpPfMLRyHOlxCUy2IgR3ez DZ/bIvPOv/+cxRk00QAKrOFeEQLBtr7wXvQHf9Z7+RoVmQnFImkmQzL0Q/KCcahwEzMT PSJZ9+/H8ln79CwzTSK9S5FjDpmXMtrSgRrh6tQAZOF6hRagVZXJMc3DAzc+j5c4KpAT msYCziT6Zeker0ke+idJk0cAaYdCZOhux+YJuWUDIAGei5HyGsZcn/YGf5s+nzyez9k5 weLT80jeSM0ukEkCvKXZZnUinjVMhpJPFxLMaa+mz8BoVzFAS0eqkbL+q0VWW80Jv7WL v6xA== 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=uO0l8fWM8wy0kjfMSdBXh5QBa3T8WTIIwxytMlnolVk=; fh=n4zdxggoMIC2kq84YbzstlGWfVmDsHN65oL1OZnJ0og=; b=YYSFz2QuAVkMxw6mVOI6WXs+TehOfHkBypo1qC5+Ut4/gqK+DIdCFhIbzOhodgMdI5 FPZas1mRUIAxGr4iRj/yK45Hdlb0KTLYQVdZPFrAgm1TulhSHEo57S/OMFvouVKNSWBO wrZ1hpXL8VJb3ROA2ibJRooTdK9oebAYJ2bcB72EPeWFuHDpn6RSsXQP1dtcnMaduUsi aRXpSiFSR8ovHYOpFLR0BSu1w6JgiMUAO84ygTdLtOeIH2v41tKEJI0rHZqVOvu8n2ht YABsB/mvjcpuGLhBq+yWpzLYvxEoLhO8zTfyZ0P9Dse6cVMEiVCCog1JkYWMQmpdnhQ1 KLKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2s0B1p7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215631-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7447749si2348069a12.431.2024.06.14.18.27.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 18:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2s0B1p7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215631-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 4C9251F23777 for ; Sat, 15 Jun 2024 01:27:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 628F946BA; Sat, 15 Jun 2024 01:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b2s0B1p7" 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 7DEA110F7; Sat, 15 Jun 2024 01:27:33 +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=1718414853; cv=none; b=m8st7TQu48i3AWLy8xLqfw48xp69TDEX0jORDbRwLGP2cnQICSMWyVeCmhKPCn1mOHOx2jpiZ7ZFAR5AXoUQiKBc2dmOUNzG+uYEVN0rKzHNd6zebZ3hzuaJ0qqRnpYfvrtnPfW+bWecPS54GHvtEBHtqaHelz7xkGMVwJk2bmw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718414853; c=relaxed/simple; bh=uO0l8fWM8wy0kjfMSdBXh5QBa3T8WTIIwxytMlnolVk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xe1JtFSUIYO7di1Ss26yDMgEGRM5Laqf6YijtI4WZqP2ZAY5B0sYSzeAiTnHN/HcS1GkWKIVtvGpCCUQMmzFhUwxUvXaYvH16TxUyBWOAeM9S1mE0viQrmAIeE2eOoAy+juu6WUn/up3EAUIVCPiecQL8fupr6OnhdnHRFxB0Dk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b2s0B1p7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81B56C2BD10; Sat, 15 Jun 2024 01:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718414852; bh=uO0l8fWM8wy0kjfMSdBXh5QBa3T8WTIIwxytMlnolVk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b2s0B1p7PB2aVGlz/qIbq4zDYFcmZfBVDr8OoH5cbCMbXdkyprsvQL3baKEfsUPbA REnK0pGaGHJkKuvfFLULnBdImhIqrNDxF7fpQEe6SeWzyCVTH4w8riYFWakn+HV0wy byoYWfa+fZ00mC+BFn3ywN31UD5h8P1ikdn26tBCA57vSCy/AHo/UhGAFR6boQzyyr nTHxPBuZStTKKmEXG+n6FIGKNJKO+2K2xTkIYRIQ0tkp0nStGglOFf0nNgGe8/aPdb rzzPmBXsac1WNHVdaD0Tb5bcJn+j3k69Exgm6/YLF+7rLDAJa1L8hcPijN4m7BbqUf ueE+btEeiORgA== Date: Fri, 14 Jun 2024 18:27:31 -0700 From: Jakub Kicinski To: =?UTF-8?B?Q3PDs2vDoXM=?= 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: <20240614182731.3244deef@kernel.org> In-Reply-To: <0f315501-e8cb-4904-8c43-d9721fdef846@prolan.hu> References: <20240611080405.673431-1-csokas.bence@prolan.hu> <20240613081233.6ff570cd@kernel.org> <0f315501-e8cb-4904-8c43-d9721fdef846@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 Fri, 14 Jun 2024 09:59:16 +0200 Cs=C3=B3k=C3=A1s Bence wrote: > It only writes 0 if WOL is disabled AND the device has the MULTI_QUEUES=20 > quirk. Otherwise, we either write FEC_ECR_RESET, which resets the device= =20 > (and the HW changes ECNTRL to its reset value), OR we RMW set the WOL=20 > sleep bits. And then, if some more quirks are set, we set ETHEREN. >=20 > So I think RMW is the safest route here, instead of trying to keep track= =20 > of all these different branches, re-read ECNTRL after reset etc. Okay, just resend without the empty line between tags then.