From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 001E529B22F for ; Mon, 29 Dec 2025 19:14:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767035647; cv=none; b=jroYaoxuaIQ0SI8pAa7X5pzdUptLy8xuRMBj84SJOiYZ66rpBXCdsfWsEBqFzzehym8mUdnDnzcY1Ol9Xpxw523vsWMVLWSztXXFmiUMZj9P3ccKX09oW6DO90HLEYo1hntonZm4qKAttgFMiGBPgScJ6//OL1OvdYmIu+InsSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767035647; c=relaxed/simple; bh=EK/+O9yl5IbSz8rcHjiPTrZAiSKgUnBZAFjxMYcrSrA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JMbBasr95Kb0uJcZBygCy5KA81tWoj0QBygVLpnP5auKhBgMMOhOUnwh2rHbkfI417Hy9hn/DmFA0XEXo+4kGucWF+mnrbE1uqIK5sNql0Gdxi/4TWt4rJLjg+H1fhdEQ+TJbqKso58K8Lvu4tCphUUyj+m0hj6J7BM6UuKsZXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=GZWn1gzl; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="GZWn1gzl" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1767035631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yGq0enpk6EouHOWyVwThBC2qEmxZcwXmTedHH69aDgQ=; b=GZWn1gzlLjMbDM/EcHOTxeg2b+ppWyJftSxCC6sczW0xb1+XHhYita5Syb/uQZepnxF4Az 1GMUhICdvDxc5sG8jh727qB8zo3HF+hQ174gZkAH8V5/dDVC2fNztuwbcgoSB6QVpYqAks Vt1nuwonB4qpDcHLH+sXO+wtD7ckf0Q= Date: Mon, 29 Dec 2025 19:13:49 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] Fix PTP driver warnings by removing settime64 check To: Tinsae Tadesse , richardcochran@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20251229173346.8899-1-tinsaetadesse2015@gmail.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <20251229173346.8899-1-tinsaetadesse2015@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 29/12/2025 17:32, Tinsae Tadesse wrote: > Signed-off-by: Tinsae Tadesse > --- > drivers/ptp/ptp_clock.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c > index b0e167c0b3eb..5374b3e9ad15 100644 > --- a/drivers/ptp/ptp_clock.c > +++ b/drivers/ptp/ptp_clock.c > @@ -323,8 +323,7 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, > size_t size; > > if (WARN_ON_ONCE(info->n_alarm > PTP_MAX_ALARMS || > - (!info->gettimex64 && !info->gettime64) || > - !info->settime64)) > + (!info->gettimex64 && !info->gettime64))) > return ERR_PTR(-EINVAL); > > /* Initialize a clock structure. */ Could you please tell us a bit more about reasoning for this patch?