From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D40C03043DC for ; Thu, 12 Mar 2026 19:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773342023; cv=none; b=PamN3aHGigb99U92KvYnJM7IPjEw1poPG2sNIIHQLyBBSGnddcDer/f8aOXTpbrCeXfblpwkV/qAs4zcmGulVMRa0H4geTh331F1w1SD2CvP2qpTk8wV4DW9/2id652zRS8Tp3eOFhJGlnRMN5EFiDPkcFV/zbYtFmpHwCGtd40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773342023; c=relaxed/simple; bh=WykRGsrwCIPfykCk/wqlIrJwdiF4UsbW2+nJIdhQj8Q=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lwqiRuz8P7KezB6RUwWnI6cM+d4jVV7+nV/B4dmFYtllwg83V7rfkgm+mtZA1SlrmXp7EiJulk4Zkt0Q0wCI3S8Oc86uW5yf1r02x9pAjwQFkVjVtwTxw2QUIMbl3th+kdeAiMs4finFkMZZ1L5ziS+u3A2uU7A5KdcpyE6olTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=awzFKQ82; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="awzFKQ82" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-48374014a77so15880125e9.3 for ; Thu, 12 Mar 2026 12:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773342020; x=1773946820; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=1uRNP8sj9zOHORQvbyaXxs4QwcaBwFw81kautX3rWdo=; b=awzFKQ82jg1yDHKSgiorB6aK8MlRCdyAmz2scVWDoAujEzEIHgLL2HJnxYLgKL5q+s PKyNm8o9wYUodAgpJWpilmEOoh9xkc7zfsEeodythjV9wsbY5z7IyJtx9GGe/YbuPg65 Mg2w4oj2WV+u/8Ks1ut56jHccYANQCRpVaEr3OuCZlzp/RvF1q1VqIwy+lCAyYBGZKJT WRoNvn2Qmo6niNXcQHmq0aOtL+0hUNvAeWnuvRLC/FQnvEzSHaarrZn3zyjiOrX7HtWe H0iAoYUjAb4dFq5yvbg9B8Hgd2FIWQ0EDBvKPLlpfbw6R0jAD504PYyptMvRDOHBYANZ UkYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773342020; x=1773946820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1uRNP8sj9zOHORQvbyaXxs4QwcaBwFw81kautX3rWdo=; b=Z2rZiJOS9Ib1zaSyd9ndif6BmKMBPtXDtxa11WO7F8v2z6XTsQFRBY378WcOVLyOoA vWq4TOThrQM5XkdQ3HBuG0dE1kQrcdE58o2ksQlywPBYHSr1AAKTpCOA/NbfvyX/QX/X gK9b3PXb6kL+mJ0l6YUXqUY3vlEMlKw9xxrIuGXidVcWZjtZxWTGYH3xi6DzjGfMKwOy AmDn6gtLA8qp/6Z+4Rro7+IR/skCWMMKjngPKmOxT0+HyGMcV1jaDmbSg0er8ju7D6Fz wpW4Tm6QTDd56zgtFhmoAnRgVbBnExC8pHIerC3Un3pdgnRa/UBRj6hwM0KW9gOlmFpa miFw== X-Forwarded-Encrypted: i=1; AJvYcCXqrlE8NF9ra/6A2h0WlYK1cnB4c6VtGqK1XzaYnfm2zUcoDA0df9ZcS6D0lXvB2pGRBkAv+JW/f9YOwNc=@vger.kernel.org X-Gm-Message-State: AOJu0YzocB96rNeATCyAzolQbivVvp6mSE57ynBgZTw3F2NpW766lDsc /VgzoXmKqXkWUGn5ifj1v19v8cZWxtgQWzOhLL1JbmaeLv+ok0S8njm1 X-Gm-Gg: ATEYQzxsUZzUoCwZhYuobcVHnSZJUimf/PGTLUNRVb1blc4t0Mjb4065no8u/OJwX8k a1nIXxbnvOI/7/DSc5YpKR5++lQlTUxQpmGuNnQJKEHdoMUWoYbUhBoF61FjvYHUuBNlBb0vG1a vasfUOxCZbnMODXK2wSHe2CCrAdfrswQ+5Cft4Ar6nMwuMQyCjWyBSe4AZM4UotMRoxNn8txISr mcyNpgrKL8S7MouqwUWvy/XPpjPsIVlCUdpl/pTLiTT6X4JGLLRD5Rkfgabfyk7IPKs6oDZgYNb Qvi8f1ajEAJkbiWetbXg7tzD3gBSPmup3KqsXZUDw/8KkCqfgNEbxYTQ8ULxuqu53Y868AM+M0E J60mh2t1mAoCnCQh5FjF4cD9+2TGrcrxK9I1O4Gu2G0bqV61+y9vv7PnzVYCUIE2y3vpxnFbmuF qv9Kd7VY2rAElGPYwKYuOf0BGnHhfMJ8ylCK3mye/81ikpQVoRsly7ZTZFOBkQ/yYT1wqzKdM3e Og= X-Received: by 2002:a05:600c:8286:b0:485:34b3:8585 with SMTP id 5b1f17b1804b1-485566d6dffmr6984515e9.8.1773342019666; Thu, 12 Mar 2026 12:00:19 -0700 (PDT) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439fe19ac5fsm10964630f8f.1.2026.03.12.12.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2026 12:00:19 -0700 (PDT) Date: Thu, 12 Mar 2026 19:00:18 +0000 From: David Laight To: Paolo Abeni Cc: Johannes Zink , Alexandre Torgue , Alexis =?UTF-8?B?TG90aG9yw6k=?= , Andrew Lunn , Bartosz Golaszewski , Chen-Yu Tsai , "David S. Miller" , Eric Dumazet , Gatien Chevallier , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Chevallier , Maxime Coquelin , netdev@vger.kernel.org, "Russell King (Oracle)" , Richard Cochran Subject: Re: [PATCH resend net-next 1/1] net: stmmac: actually error requests to change the auxiliary snapshot capture channel Message-ID: <20260312190018.15e6310e@pumpkin> In-Reply-To: <09528d3a-e08a-4942-aff7-b59610f6b13e@redhat.com> References: <20260310140155.3359-1-david.laight.linux@gmail.com> <09528d3a-e08a-4942-aff7-b59610f6b13e@redhat.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) 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-Transfer-Encoding: 7bit On Thu, 12 Mar 2026 15:07:49 +0100 Paolo Abeni wrote: > On 3/10/26 3:01 PM, david.laight.linux@gmail.com wrote: > > From: David Laight > > > > Commit 2ddd05d1d5ed ("net: stmmac: do not silently change auxiliary snapshot capture channel") > > added code that attempted to return -EBUSY to a PTP_CLK_REQ_EXTTS > > request whan a snapshot was already enabled. > > However it tested bits in 'acr_value' after they had been masked off > > so the check would never return an error. > > > > Change the code so that the test actually works. > > Note that when the commit message says: > > Previously in case of a PTP_CLK_REQ_EXTTS request, previously active > > auxiliary snapshot capture channels were silently dropped and the new > > channel was activated. > > this only refers to two commits earlier (a few minutes earlier). > > Prior to that only a single fixed snapshot channel could be enabled. > > > > Note that the check will reject requests to re-enable the currently > > enabled channel. > > Plausibly the best fix is just to delete the check completely. > > I agree with this last statement. Enforcing the check could potentially > break the user-space. I did wonder why the 'half hearted' support for multiple snapshots was added at all. Either it is needed and should be done properly or always using a fixed snapshot bit is fine. Not that I've any idea what this code is for... David > > /P > >