Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp594859rdb; Fri, 26 Jan 2024 05:16:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzBB+OTe9lIzh/kYYMsn7RcYjnuvtwBsvrQl/0g/dxtvxbkbspzZuufF9vsyEifaVC3TcH X-Received: by 2002:aca:1219:0:b0:3bd:4c05:8744 with SMTP id 25-20020aca1219000000b003bd4c058744mr1332285ois.99.1706274970912; Fri, 26 Jan 2024 05:16:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706274970; cv=pass; d=google.com; s=arc-20160816; b=SySYddWxVFzVwhrKv2tl6kJHDLQTzTZImM/HCVPWRYedfXDozLg54k4C4P7ttEUxpG 4GK04yUDQGAH6jlD5WePMtKaG+WMlDI8Yy0B/7JF+NQDyaNuqeLE1UqjG0fvY1fGKlsT zGPdZjuTR/w2mGUWG8q4R6Mk8+KhBCwiMamNZobYfF60HwRi9rG0Ul3i0jXQ4h/G7KFM f3WYHkeb8IFmEyAYGyvyW0kb1+sI/+NY4zzvh6tfzM220P7VW4pyPLlRfunIBufnyGer 6ICUDdUDfHcuGdgvXXohDpDW6LusVLWeGIIr6X7F0rhb5QNKa4+Re/l0ZfB7HC2SMkTL yDuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=50z3iua35YdHF3I4F9KF6AiAKfWmqunUUJx8CeyD42I=; fh=M0gsF3T/1H7L+t4QFvdkMbcEGwEJUsnff1Vd7rCLT5c=; b=VvEZfm6TwJsI7Epo0fTn2UwjDE9hDFUbmYhnjJo0+dtI0q0W7+3cUbIm06loFeeRuT ic/GMQU63Ldf6P8AXEY3Kg9xXmCOx7YWztODNR6vsKYRpsMw2Xu65xwZOhR9FxNUHpPh 2SSqtyq76+AYM3Rt2nzoNT6g8+BjW3F1tSsTJgVKC3aCNAnrtUokqfygZjOvqP8NVfjD dPtuMGQn7uHlClL/muBgPdn7iv+xEf5SNCpGYMJt3UQ6+ODbrWTgQgl0tX6YIpKqvNg4 iQKXogrAkzYNBbJl02lAcdTCxOsoFW1Sf0WUBEH619Gu/FJjGOFc2UuWItC0B1+MaY5l z4Mw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=4jIEQT8Y; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-40122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q10-20020ad45caa000000b0067fae204a04si1300883qvh.39.2024.01.26.05.16.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 05:16:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40122-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=@lunn.ch header.s=20171124 header.b=4jIEQT8Y; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-40122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 A3D941C21C36 for ; Fri, 26 Jan 2024 13:16:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E13AF1B811; Fri, 26 Jan 2024 13:16:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="4jIEQT8Y" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 A16F01B7F9; Fri, 26 Jan 2024 13:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706274960; cv=none; b=t/4uly3gUmErHY+3hePjs5nIasG4U3y10pQeOYQiyOXcMzuweG6FT9fdt1Y1u8KKCDO/qyS98mP8yHQGtZndC0q3SWdk02zpan9M2a42VKG9AiCsqVmahMP/6JWX3jNqSH9x6D3fMs1a85DrQ+6rf3f/sXiF+6jMRG+/d5bqmoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706274960; c=relaxed/simple; bh=FGY+lD+y60lvRkLTTesPfWuaivVUyv7pYO/2UAczccA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TH6WWTKh1+LVvazY9wPif5HvmyDRqAen9ypaY0uljRII0ysC4Wk9USRDsxTgN2i/xpny93V0lgTr5dfCjJ1soRVwU8vPIGe5U2sRAtGaJlVCdgcpZdmF11flVv0HX3Hi6KooH8kEbjMh6Gs8wkOAKaP17e/6wGfkfm9w0cTcNOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=4jIEQT8Y; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=50z3iua35YdHF3I4F9KF6AiAKfWmqunUUJx8CeyD42I=; b=4jIEQT8Y909onTWoy8B8fayYei /1O+LlSWYYQgibr7K/vjXYCTR0szYmjhB/dEQOVyysqtaDy3RIY93Am++wBoL7QyCLHOWmfw9N62W HcPVV/KiX3odBWaQkRjIx4YlAWtux1XRbQ7Lu+EDpMqbns4mpneZewmbWX7hv/ncYPlI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rTM3X-006AmJ-5i; Fri, 26 Jan 2024 14:15:39 +0100 Date: Fri, 26 Jan 2024 14:15:39 +0100 From: Andrew Lunn To: Vadim Fedorenko 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 Subject: Re: [PATCH net-next] net: micrel: Fix set/get PHC time for lan8814 Message-ID: References: <20240126073042.1845153-1-horatiu.vultur@microchip.com> <8da0a157-6a09-4d82-ad36-7428fdb27f9b@linux.dev> 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-Disposition: inline In-Reply-To: <8da0a157-6a09-4d82-ad36-7428fdb27f9b@linux.dev> > > + *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. Andrew