Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp288892rdb; Thu, 8 Feb 2024 06:11:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaVFXVppp6xnnGhQjWdYKdfeXZrPG4nVE9u/Lczuq2IZEPRaOrbwrtIA6j4Ee7sdtlvmpL X-Received: by 2002:a05:6830:106:b0:6dd:ebd7:7bd3 with SMTP id i6-20020a056830010600b006ddebd77bd3mr10667316otp.28.1707401460552; Thu, 08 Feb 2024 06:11:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707401460; cv=pass; d=google.com; s=arc-20160816; b=TcxQkv1oQVFBTv/jtP+NXhR4cF7cj400kTs2VBZJNL7SkDFhlIsXfsMmgXirgB9TtW Mn/Z2L6P+CgJxsAnnTyBuydTrOciXHXqev+7d5YihgLRsLSnj3z0/RUbaw+K0dv+dbN5 ZA48Mqx4ZBBd39hzupPMn7bpNs1PYvx/hb1T3Mv6DeZIEzDTgr7EWzfWW3EYqLBNjsE7 FmPtP85WzMt1SEFcwwFIJ/stU2fED7Cl/p+YjUnjt61g5dcfh7w+aiCknC3nlme871st i5t1fumK7cw3UldmWjDCWH82tKo+u8676fr+16T7Lzr4tOV0VzxJDQJHAA6RG5hV3C8V uLrg== 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=Dej5H/0l4N8S9JwfsbANmrzhys6YFfTllssE9ozh6P8=; fh=KcQsiQCE41LbIcOYyYVNvJhjUjWla41jlDn+eYSD848=; b=OX4N1AZy0czogUUXPiGSO0CiVTwYlPAZ8nUomf4I2Z3idSh+X6VaRR/SuTBCu//Sl3 L9rlTmv4Ksa0jS0Ew2kNtvKtBfQEAxut5jzgOWVRGuMMPU+mJDTBfi3nXUuX7GxjhxuV eb8n9TEf8qJN1WP96j+7KuqQpUMmTUxdnt9/Dqkov6sr8vueTiGBr7WsvLIgWvm622KV poADFguDu0KI/UTMEtWXusONHGGxwsuQbc7ViAsDYvArZu2x5zmmXkHapApjnpxxs7rD UjzJYMHx45Nc1rAqFnGgih300IvVxuvT5oscG+sC8CCOGSUOeClF3IjlnPPp+uAqNMOU A7Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="lRfpav/j"; 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-58198-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=2; AJvYcCXcsi098/qpwCI81aF0YqdUONL/XlgicmaEB37eX0MpOFAPz8mpPaKxnYTUB+ccVDmGHzW74tZ2QzRFlLKWrkjzJ2vOD6oerE2KB3mlsA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l22-20020a05683016d600b006e10d706922si1460663otr.77.2024.02.08.06.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 06:11:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58198-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="lRfpav/j"; 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-58198-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58198-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6EBFF2922E6 for ; Thu, 8 Feb 2024 13:57:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15A767B3C7; Thu, 8 Feb 2024 13:56:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="lRfpav/j" 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 75DBD1E485; Thu, 8 Feb 2024 13:56:46 +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=1707400608; cv=none; b=Us9ZvfUXtTMzjJHL4K0MM/ZLJbPa0ZhHKkfFGo0QwiBUWO+Wgv/Czo5F37RZIFU/hAPYiSMi9rJ6nlKrq9NwrmXejAjnnu+iTFsmaDHSBQjQgOe/nFffY96MxrlPK4DIa3p/18LhDnRhhFz3/d0unm+7JMzezxlbhOm7+xv+moU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707400608; c=relaxed/simple; bh=FuVF+eJ+3ABnfmzK4oUj76/6C587TcB1yKwdLXQapuU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i6HDQRRyRdmX+msf0TVLrKgQxO+3MRWfElsqN3jiducaj7Eu85n8Rk1DBfCh9dqKzrujRjIUbvKvez8hhrWw4G+MR6eF4wQsgvkUPZZvoOenZPvd/S+T7tyYk3MqFyLUBN0jlh1P22KKOYn74F8qhLhcOHTkQW4SbQtSL/CaDt0= 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=lRfpav/j; 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=Dej5H/0l4N8S9JwfsbANmrzhys6YFfTllssE9ozh6P8=; b=lRfpav/jSMFg7FFOHIB3QgRiKg atqKDwftQSwxyTcLW5pAccjMVhyraxElasRoopDU0yh6CnPTJq14ROx4k/LBhCQbsTn4FkqoEfGQf 00huKYVp70PB4+jj8/qs2qNQoOu/TCmiqdDz2ZOpycZydLwL653u+ZTjx4YNCrJ6fHbc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rY4tF-007JSy-Kl; Thu, 08 Feb 2024 14:56:33 +0100 Date: Thu, 8 Feb 2024 14:56:33 +0100 From: Andrew Lunn To: POPESCU Catalin Cc: "davem@davemloft.net" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "afd@ti.com" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , GEO-CHHER-bsp-development , "m.felsch@pengutronix.de" Subject: Re: [PATCH v2 2/2] net: phy: dp83826: support TX data voltage tuning Message-ID: <145e1c28-af2b-4aca-9fd3-f9d7a272516c@lunn.ch> References: <20240207175845.764775-1-catalin.popescu@leica-geosystems.com> <20240207175845.764775-2-catalin.popescu@leica-geosystems.com> <4dc382bd-3477-45cb-8044-fc5c2c7251f4@lunn.ch> 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: > > I could be reading this wrong, but it looks like > > DP83826_CFG_DAC_MINUS_DEFAULT actually means leave the value > > unchanged? Is there anything guaranteeing it does in fact have the > > default value in the hardware? > > > > Andrew > > Yes, the datasheet clearly states the default/reset values of both > registers VOD_CFG1 & VOD_CFG2 which are : > - cfg_dac_minus : 30h > - cfg_dac_plus : 10h And the device is actually and always reset by Linux when the driver loads? Anything the bootloader has done, or a previous kernel, will be cleared? Please add this explanation to the commit message. I'm being pedantic because we have had problems like this in the past. If a register was not actually set back to the default value, the bootloader set it to some other value, the board can work fine. Then a board can came along which the bootloader set the wrong value, and the default is actually needed. Fixing the driver to actually enforce the default breaks boards... Andrew