Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5156918pxj; Wed, 9 Jun 2021 10:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkC/fHkW4EtLgYYX5zqKLhQNTe7cqHce04iBXzcH3VIZ395Nz+hvwFGUQfAOpbi889Xjvi X-Received: by 2002:a50:c8c3:: with SMTP id k3mr525368edh.318.1623259453782; Wed, 09 Jun 2021 10:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259453; cv=none; d=google.com; s=arc-20160816; b=ce0pJMsn6IhTHVILjEbLCQZINKEUv+dCLEx1wcs6pJrLrv6mnJVKt1bUlJ0VFTx9S4 Br3QSBQsp8HDVTwrhTLfbTQUNiGVfcEiMkXoYf1xua6NvGgrScuurbk5+Hy8JWksInSr 2kyYTTvVkstae7Ob6E+yVgSdhY5bYmrXy+Z6LNwOE1DVr0nV2TUD+D7tESAxQlClMwNY W77NZ7Ff/Y7ou+oNeB1D13K01NFFA3gT5UQOWlZrpIYdYWA3jrpIephkwHUaET8Glsj2 E0BrhjzLER1sh4eukfS00ZzSt1AJDP9N4Cm6imY80hkG/AydWIhSOmnpMdIH3gytINRj 0KGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DGwxn+bZWtAvpA1OSTc+4zAEmH1VrC+7CgJGeQ0J8YA=; b=CzAWXZL2Iz6xVTE9fnhAnP+/+swAPuGZoG1Zln271fUxcmsSWgwqcE5UC2qDuE/ZJI OTl0/jQ8G0hVTStoLPCUML63D71dp5wFRLlKEiqKD23eALO28aoEQrXjTN4P7TvBZTOH eiMZHFA8/1FtKjVYC27WH85vEXDHz0dEkIW6CUQOxRUpJU14u/x3z/pTVs3rTXqmOyB+ WyJMzjDqddIGc2ryLZr0YTkb9Owr767RrSGUHjHc9UHFjKTQ4bygPM9GFQNDFytzc2zk IpNt4I5qv11D5t7w941/NERMmp5ioud2QwHy59Ow1PEUoYXO96wZcOnfeitshW/VO6nU gKLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Idh1GhO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si212494edp.268.2021.06.09.10.23.49; Wed, 09 Jun 2021 10:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Idh1GhO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235289AbhFIMTz (ORCPT + 99 others); Wed, 9 Jun 2021 08:19:55 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:53918 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234448AbhFIMTy (ORCPT ); Wed, 9 Jun 2021 08:19:54 -0400 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=DGwxn+bZWtAvpA1OSTc+4zAEmH1VrC+7CgJGeQ0J8YA=; b=Idh1GhO3skYZIjFNizWUFSnXck yruSGCTYZm+sqB9Qr2IQxwT2x83WwldACMCnzY6GjUhR19M4o73/9mhlX9UQ12R765DG+YWZ35Iqs 4D7ToC5JtdohmeaX9m/+991beCeBdsVPG6GQoqVSEOip1eTMf3a9Mx4lG9v9Q4siZYmg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lqx9U-008UXB-6q; Wed, 09 Jun 2021 14:17:44 +0200 Date: Wed, 9 Jun 2021 14:17:44 +0200 From: Andrew Lunn To: Jisheng Zhang Cc: Joakim Zhang , "davem@davemloft.net" , "kuba@kernel.org" , "robh+dt@kernel.org" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "f.fainelli@gmail.com" , dl-linux-imx , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V3 net-next 3/4] net: phy: realtek: add dt property to enable ALDPS mode Message-ID: References: <20210608031535.3651-1-qiangqing.zhang@nxp.com> <20210608031535.3651-4-qiangqing.zhang@nxp.com> <20210608175104.7ce18d1d@xhacker.debian> <20210609095633.1bce2c22@xhacker.debian> <20210609110428.5a136b03@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210609110428.5a136b03@xhacker.debian> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Aha, I see you want to keep the ALDPS bits(maybe configured by prelinux env) untouched. > If ALDPS has been enabled by prelinux env, even there's no "realtek,aldps-enable" > in DT, the ALDPS may be keep enabled in linux. Thus the ALDPS behavior rely on > the prelinux env. I'm not sure whether this is correct or not. > > IMHO, the "realtek,aldps-enable" is a "yes" or "no" bool. If it's set, ALDPS > will be enabled in linux; If it's no, ALDPS will be disabled in linux. We > should not rely on prelinux env. If you look at V1 of this patch, you will see i commented that maybe it needs to be a tristate, not a boolean. Disable it, enable it, leave it as is. If we do need the third state, we can add it latter. There is something to be said for not relying on the bootloader. But the hardware default appears to be ALDPS enabled. So this case seems reasonably safe. Andrew