Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2088424rwb; Fri, 5 Aug 2022 13:03:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xIq79lqlNNc8P9MTIi1GQThMYgIzTI5+9S742AYnY/X59Ho9bn8zANLHC1T/huoj12ZS0 X-Received: by 2002:a05:6402:2989:b0:43e:91be:fd20 with SMTP id eq9-20020a056402298900b0043e91befd20mr8001003edb.109.1659729806136; Fri, 05 Aug 2022 13:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659729806; cv=none; d=google.com; s=arc-20160816; b=FHiRgWLBk3yWh9F5CAREJotDL+zuo9SrPn99K0eK2N9UzXT/jqYwvYImLQWPk0zGGK E14/gps17ZrcXS+XvyN4/+Og0jnjxoZ4frV0mFNT7wPyh8OWNaBn29aRwY1W1vT2+9pD KekZ73m+qi6pc2bjbgIZS8//6JRTlFQYAJfs9zanzKG4nA0ot6UihSgiRBtLdm8RZVUX 7EzL/x31Tc02b4w5ZLyWG/ImUf76c+F7Yq0GnJoAuU6ZSk3ugtJgcjhr9slFdwdA5OYM /jCbUiYn7r95PwAcT/exrr9evZpnu9/004flMsvkwuZAFbo5I5OqO9IvLC6zMyAqmZNu iHyg== 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=Gu0qTJgy7dDy5YxspPiR5zd6gZJo4q1W9Yd7U2dJ0jI=; b=Ae+1iVaV0ZO8UTtksSCvyKuUfQdzWB6y0i3d85mjDBqFpfshviwlFoVGrQkBDTUJaJ /BIytVHGPVHfW7hkFPaEfb6eIrfde+qB+Yj2hCEANE8G2Pn4u6vcAhmpm6UQJj0EbYe2 pOZF7KLZ/1S/eXA9kb/Sw8s9jFWlwDzIIsJ2uzRIsgf8IuWh+gwWpjBBiqVLSJKrEECl niMz9W+ca0cO1WGkZylrbsTU23fBG59lE2Ym4Rwh9rk0EKsOiZkoOmvCel9/ungLdAl0 HVMfOUgQClWUCyIbS4oFYZddUOvmrvk5++yq4Cm0Aue1S0uSxvV2Sgj9qrC7t/roz8rP xrfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=pqzbNPUX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb14-20020a0564020d0e00b004359f471717si710058edb.0.2022.08.05.13.03.00; Fri, 05 Aug 2022 13:03:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=pqzbNPUX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238648AbiHET5f (ORCPT + 99 others); Fri, 5 Aug 2022 15:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234198AbiHET5e (ORCPT ); Fri, 5 Aug 2022 15:57:34 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B50B826AD3; Fri, 5 Aug 2022 12:57:30 -0700 (PDT) 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=Gu0qTJgy7dDy5YxspPiR5zd6gZJo4q1W9Yd7U2dJ0jI=; b=pqzbNPUXZJxqxl0WHYvAj009OV 9CoLFJRFZUGfSH6agA4h/6IYcXmjuiiT8ni8yAHnvWG0h57hjPScme7DBgBQzl83MptKlYDHe2xpK aL8bLmMM+HYSGAdCwSg+ktyxcvqcnxWzWzXyk5adTkU47WLLxAyNafr4+NOxeqo5k+0s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oK3RT-00CWST-Js; Fri, 05 Aug 2022 21:57:07 +0200 Date: Fri, 5 Aug 2022 21:57:07 +0200 From: Andrew Lunn To: Nikita Shubin Cc: linux@yadro.com, Nikita Shubin , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rasmus Villemoes , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: dp83867: fix get nvmem cell fail Message-ID: References: <20220805084843.24542-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220805084843.24542-1-nikita.shubin@maquefel.me> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 05, 2022 at 11:48:43AM +0300, Nikita Shubin wrote: > From: Nikita Shubin > > If CONFIG_NVMEM is not set of_nvmem_cell_get, of_nvmem_device_get > functions will return ERR_PTR(-EOPNOTSUPP) and "failed to get nvmem > cell io_impedance_ctrl" error would be reported despite "io_impedance_ctrl" > is completely missing in Device Tree and we should use default values. > > Check -EOPNOTSUPP togather with -ENOENT to avoid this situation. Should be 'together' Reviewed-by: Andrew Lunn Andrew