Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6389348pxv; Thu, 29 Jul 2021 13:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmCJDb82vkbm6ODBLoDDHWQ48oaVLsp6+XsN080w5fVsToYiEcjHcKPXwzlETqqsKbajVA X-Received: by 2002:a17:906:c256:: with SMTP id bl22mr6367606ejb.115.1627590307275; Thu, 29 Jul 2021 13:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627590307; cv=none; d=google.com; s=arc-20160816; b=CP+21ll4mOzY/xDZ8oOfmyymSZO+7ue4Pm5dNFzgYUxvhDOJZz8WicV+xqsvSZvTQP wqVIOqi8XdXqbBbSA/6k8QfK6N2L3YEmtyTBVArY0MIQy/nBGbHavITQW+V9Zkg7F5eD Z2AgRmmnlN9biADktjnFbIZrzuEMSiWwmXJUkvUh9XAcKHkr2zHJZdiBX0WLHdKfbKA4 Nj0mmKek05b8JlXeJm2uAXfZldpouuHl7dxEuxzOXfcJSP0J0Qav7aM27MBIxX3W079I qo847kRvLF6HHCOryLrO2P3YNzu3qIPBL7JH/W1lteHmLaePXyChfSb2Ot7OEEgcC2AK j5gA== 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=yH5uVOP6NDV3mxanWoiwRIAPujE42QlL9/YdYceDovY=; b=qSTj05lBX+UNl0MW8n1bghICu8d/OsJeMRCbSewOnWvlSxbPPKiUvZ7Vv4Crmduk9N fx6LA0ufIlEIw8GY8qQtcTwhIlWxv/VsS92WO19QoT95nybGagMsqGB8HToI3kmhTLSf opCST/x6Nku/ilIRKSZSRzVHm18fyOXV3sOzazlJRQgRamBfvsjZSLLIPsQwicX8lVBZ 7YhgcFuVy/nt3x1ExEUHB74p5Ub4SD8KSHxrL4iDZxCJDFxRymVnKpiOU+VcXxMicZIP 0T2MI78RGZVfTZ6m392uYLDyZCaYlW+UGQCT4LsR5clSO6RlBtW7r9W/nI7hJFWlCnls LmcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xmGtGuEA; 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 r26si3877906edt.275.2021.07.29.13.24.43; Thu, 29 Jul 2021 13:25:07 -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=xmGtGuEA; 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 S232906AbhG2UVL (ORCPT + 99 others); Thu, 29 Jul 2021 16:21:11 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:52666 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbhG2UVL (ORCPT ); Thu, 29 Jul 2021 16:21:11 -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=yH5uVOP6NDV3mxanWoiwRIAPujE42QlL9/YdYceDovY=; b=xmGtGuEAFWj5j0hXzagN7x9J1u XnFnrOvxIglDS75jzWXEtG7QXJarvjaRNOui7f0vy94kdztYi40aMzcfIWKVJq5/LWwFNBFhZBSP2 IViqvzi+a3rwLZZBGWrkZW7yAVFQvSoz6h8GQqd6Q8fPOtXCb69FeonaqC5gsMdJr02I=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m9CWb-00FMil-C9; Thu, 29 Jul 2021 22:21:01 +0200 Date: Thu, 29 Jul 2021 22:21:01 +0200 From: Andrew Lunn To: Anand Moon Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, devicetree@vger.kernel.org, Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Rob Herring , Kevin Hilman , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Jakub Kicinski , Maxime Coquelin , Philipp Zabel , Emiliano Ingrassia Subject: Re: [PATCHv1 3/3] net: stmmac: dwmac-meson8b: Add reset controller for ethernet phy Message-ID: References: <20210729201100.3994-1-linux.amoon@gmail.com> <20210729201100.3994-4-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729201100.3994-4-linux.amoon@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -465,6 +478,13 @@ static int meson8b_dwmac_probe(struct platform_device *pdev) > goto err_remove_config_dt; > } > > + dwmac->eth_reset = devm_reset_control_get_exclusive(dwmac->dev, "ethreset"); > + if (IS_ERR_OR_NULL(dwmac->eth_reset)) { > + dev_err(dwmac->dev, "Failed to get Ethernet reset\n"); > + ret = PTR_ERR(dwmac->eth_reset); > + goto err_remove_config_dt; > + } > + Hi Anand Since this is a new property, you need to handle it not being in the DT blob. You probably need to use devm_reset_control_get_optinal_exclusive() Andrew