Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp918501yba; Fri, 3 May 2019 12:40:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLbfB8QDs2Kyim4yNDMma+pZVYU6aPEUrh5JxlVrMlgIRehLwSOfZFdl0ecPDEZG5TapOr X-Received: by 2002:a17:902:2aa7:: with SMTP id j36mr12886544plb.38.1556912431213; Fri, 03 May 2019 12:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556912431; cv=none; d=google.com; s=arc-20160816; b=vtKyQgfViVjrIN3fnEwFtkuj72PiyhceKE7NrXhfjbZagL0L6f5HM6fRUkwNt0b4Os C+Lg+TFHXgS7Q39nFSp/99qIu1O1EJ2Q/my8yun3ogb0N9ZhPo5z8/6c5C4uQnWRiZTt CPJKDK3woe/KyIPGCnH1Mi1lIePl6nP+d16Vg40/d3Zr74jUqGmAsPEMaMFopr6SFFRx 6fu3/8Ds4xuuTH7DWf8IJkPnaG99EF91LtqSrZgedGwdCwwBfB1k1i+LrQE2y64zKZkP zwKaNgnx9WVUFtP1coJcwWCm69m0M5D/wLyk4GNLJ73YVYEBsRcbUm5CGbGmp6FpnHo1 d5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=B7HSNB3KjZQ7GPlLvEHckvFxiout4hZFQ5K+0s7JwSY=; b=yuJUqb3KmBvX7ommDdHfSGhInmr0z2qPngztuAI6r2V5yEoosZKhzp6l45NT/mz5F+ hgOGBhuIbADKK/sfVHI+TDrYVc6zJA7vzpt9c+sWfnPTGkuY09H5KSz5ukAgUXtBz4Tn CbLj3JSWxmbwiE01K6+WRMn6438BlHA+gZYOSX6iGUL+iHVLorDwRAVc++DK0fo+0wHe 2GiD824GPJTz1NHod85AiTr/kT5n84BBziyp5fXdaoTwVtvMR5bfdTCqkdGNPOefhCZK CbbvEb9K04TV9B6VZv3IjQKweHBVkbzaKvUyPisR0khP5ZBCC+Gfs8sSqlbXwIwp0bC6 cSbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si3736152pls.121.2019.05.03.12.40.15; Fri, 03 May 2019 12:40:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726980AbfECTHf (ORCPT + 99 others); Fri, 3 May 2019 15:07:35 -0400 Received: from smtp-out.xnet.cz ([178.217.244.18]:14192 "EHLO smtp-out.xnet.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfECTHe (ORCPT ); Fri, 3 May 2019 15:07:34 -0400 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 0A3B13233; Fri, 3 May 2019 21:07:32 +0200 (CEST) Received: from localhost (meh.true.cz [local]) by meh.true.cz (OpenSMTPD) with ESMTPA id 064ad94e; Fri, 3 May 2019 21:07:30 +0200 (CEST) Date: Fri, 3 May 2019 21:07:30 +0200 From: Petr =?utf-8?Q?=C5=A0tetiar?= To: Dan Carpenter Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , devel@driverdev.osuosl.org, Andrew Lunn , Florian Fainelli , Maxime Ripard , linux-kernel@vger.kernel.org, Srinivas Kandagatla , Frank Rowand , Heiner Kallweit Subject: Re: [PATCH v3 08/10] staging: octeon-ethernet: support of_get_mac_address new ERR_PTR error Message-ID: <20190503190730.GH71477@meh.true.cz> Reply-To: Petr =?utf-8?Q?=C5=A0tetiar?= References: <1556870168-26864-1-git-send-email-ynezz@true.cz> <1556870168-26864-9-git-send-email-ynezz@true.cz> <20190503103456.GF2269@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190503103456.GF2269@kadam> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Carpenter [2019-05-03 13:34:56]: Hi, > On Fri, May 03, 2019 at 09:56:05AM +0200, Petr Štetiar wrote: > > There was NVMEM support added to of_get_mac_address, so it could now > > return NULL and ERR_PTR encoded error values, so we need to adjust all > > current users of of_get_mac_address to this new fact. > > Which commit added NVMEM support? It hasn't hit net-next or linux-next > yet... Very strange. this patch is a part of the patch series[1], where the 1st patch[2] adds this NVMEM support to of_get_mac_address and follow-up patches are adjusting current of_get_mac_address users to the new ERR_PTR return value. > Why would of_get_mac_address() return a mix of NULL and error pointers? I've introduced this misleading API in v3, but corrected it in v4, so it now returns only valid pointer or ERR_PTR encoded error value. Just FYI, changes for staging/octeon are currently at v5[3]. 1. https://patchwork.ozlabs.org/project/netdev/list/?series=105972 2. https://patchwork.ozlabs.org/patch/1094916/ 3. https://patchwork.ozlabs.org/patch/1094942/ -- ynezz