Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp675132rdb; Fri, 26 Jan 2024 07:27:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8L0z2TeRMLM6PzPofGrBeb+W6j0PozhRznOg/uYMCXn61IO8Gr0qXYTpWGxlepMrlA7MK X-Received: by 2002:a05:6808:2211:b0:3bd:bf8d:e722 with SMTP id bd17-20020a056808221100b003bdbf8de722mr1893661oib.49.1706282841301; Fri, 26 Jan 2024 07:27:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706282841; cv=pass; d=google.com; s=arc-20160816; b=GTSAemnKnZtevaHr31Xhx5ga4jD3RFsVTFyyu1mefvpEC2g5vZO/f2Q/ss8CadiyCU Xt/1V/yKs+Y+rTaybG7HtfjCVMc8r0OZIPRWTnfl//TLrGX/NzjEPvFMECgNONIN6OqK b0enhJVZsRgY8fW80IOxo7WIxtkn3kxFYYAIa9QD+nlq+iQ3TSVsGZuKcO+ELkkNsg5L RIzc7DpSQjZz+OTjlrWC7Up9bNRsj2GjZM8YuzQP06Dsn+CXqxzLveWry5vUNd9OLRdX trlBN5msVG1US94KbxzPMy3pLbovNIVeljmeYciryqM27SKRAURv60MJXBA/U8bTwB/h CPcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=b/XtWJSlEPajpPJBC99SxXmFSOIVYebBbltEyKIScQo=; fh=qG1PFHIxg14iWnMRAjdG3LWePhjLdmox8BNQ1uUIhmo=; b=JUAMgPmGBrrugA7SDa3EH9I/cWjNUWHko6tm/Bo6xl0wuEAB3bqw6n5uvItZ4T4D9L eqgtg2kDUEdm/ypfulzPsA6MaUTzRa38UfzgWP+w2u5OX9I4X8p8qQ+rQR6GS7kSMaw7 VKPl1c+/aBpCTtxnnOYTOGXpKSJzOuvruu8DVzXsHJe9LoVRTGvzCxZYnGDDc5KHfizV HpbZDAjyaJwDqO5ivqTeBye1VU4aK7P4Aa1OyfUB0MBOiJJx6SqITfdauifeaKPdtAxN uRN3GrqccrBH+0S4CSl3r+GNZGXigAVIOiQlL1HJqGT3nbcaljCHhJpstlOfaoUBpsMZ S06g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UM5SEB+u; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-40277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w21-20020ac857d5000000b0042a68ca11desi1344462qta.642.2024.01.26.07.27.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 07:27:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UM5SEB+u; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-40277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0FC1F1C21331 for ; Fri, 26 Jan 2024 15:27:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 163931DDDB; Fri, 26 Jan 2024 15:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="UM5SEB+u" Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 6FA6C1D531 for ; Fri, 26 Jan 2024 15:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706282773; cv=none; b=ft6eeGGCpBdzcyDH3D6xENkEXMN0cj17ikQGtovuoHnJNfZ4o8zkePpdtgiyTu5OwUlsfSaN80CUWIcDj2+rJZ0Rs9mhywwCRcw2aA2/7LOu7Jzmu5nCbOQ9t4DACc09PmFfFRdiUxHqoOjK4CzBMabN8O2G9+Myv3z5zExEr1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706282773; c=relaxed/simple; bh=9Qc4d5sEmbHsESq4fFjTmGiC96Oi9yFdgok9xRrMQeo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gMuZelx+i/HGbPV0CP6au455YLxZ9Kgi5z+P7cl8xj2IGDzeClpqiMo7AQ0C1VzZAP5ao0s5yI0OKG/ckUH1PmoUCCaiiqNIxyh5KJMaWVOqv0IuTcQRTc8+5UF3mBmVnzQoE7NP0SWofa35P9dfRxiCAtH1p83eZpz5jt+eFRw= 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=UM5SEB+u; arc=none smtp.client-ip=91.218.175.174 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 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1706282769; 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=b/XtWJSlEPajpPJBC99SxXmFSOIVYebBbltEyKIScQo=; b=UM5SEB+uF0i9MwWGor56/zRWlvXexakJGaSGya26mfWheRo0UKehMh77jBib4gCEtOMBpj 2edm+1ll+UjjnLXdmi+8AUYzUWZvXoY615OJBG0dxzhvnzpRn2Ql0tw6HJCOSo5/TDz6wK 3q8pJutBcghviqdvk+XqGOV536ctwB0= Date: Fri, 26 Jan 2024 15:26:00 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next] net: micrel: Fix set/get PHC time for lan8814 Content-Language: en-US To: Andrew Lunn Cc: Horatiu Vultur , hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Maxime Chevallier , Divya Koppera References: <20240126073042.1845153-1-horatiu.vultur@microchip.com> <8da0a157-6a09-4d82-ad36-7428fdb27f9b@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 26/01/2024 13:15, Andrew Lunn wrote: >>> + *sec |= lanphy_read_page_reg(phydev, 4, PTP_CLOCK_READ_SEC_MID); >> >> lanphy_read_page_reg returns int, but only 16 bits have meanings here. >> Is it safe to assume that other 16 bits will be zeros always? > > Yes. __phy_read() should only return a negative error code, or a value > which fits in a u16. If any of the top bits are set, its a bug in the > MDIO driver which needs finding and fixing. Got it. Thanks Andrew