Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4975808imm; Tue, 11 Sep 2018 22:36:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdayLx3B3fB+2HZJl7PSp1iC6WwuJ/KF/zCQLcULRBcRaskXIQgdwUKLDD4jsMZLQ3t7t856 X-Received: by 2002:a62:8a4f:: with SMTP id y76-v6mr197248pfd.233.1536730577444; Tue, 11 Sep 2018 22:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536730577; cv=none; d=google.com; s=arc-20160816; b=eeUiPeRZbVsZ3u4943BGkvYz/7w5MSpQD7uClf1pWV8YeWYTnOcEhsRZ6z118Bdjlu 3nfmXLWnaaK7hE0TiEXpbYqnup7rnNGEjaukK0kH8XQK3hRdqpxQK9gZzTjNyIKo7qit tw4M96+BDIGmszWgHpOq4jJRfxSmSU6oG08FltrL40Pa/Vnpk7knUbR2fmWOc7Xvgb2v +8Ga8Yz9idXBJUyX3A/qTaplbQB2lz5jstcu0qn3auvUR6M5+s5KgO1aIJ4xCgRH1P3a a1XtS6ORsfonNRRt8qqimESOhQUGtT8BbYkaizlMw8f+Kso2EbeKvUMKtv96BuGXSjew Y2nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jT5+7JtWPBJBZZZG4eQIh3AZac3EnhQZE2+KTuHbuTM=; b=JrxEr6TQ4iNdQIwYZlqDMSnMIWDglapwGUjjTXhH/KAYWxRnL7+sMqtee/syQPjntE 8WAg6pD/wEzTED5FWNK1rxPeMeEzCudl2dW+u02gOITNpi2/8sku7HHRjgjlltz8kBZ3 CNTAXoG1yczsWwMSu0y5OuRz/0FH6aAc7X9MopRrqGpV6qyEFfZB2zRiSc9jYSgeEJoK t4VyNBHq8QBY8/NW+kNSJDtNKw7o0tLsEFki8sxapkUg/7Um5EsuoykK1KdWVjr6H6MS I959M1gVkwF6NWiIscZSCs+a7ihLe4slRMy1R7NWHD1gVS+S88M+/e8iLW67j/tcK8nT 05Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KW15IUSo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si17057732plb.489.2018.09.11.22.36.02; Tue, 11 Sep 2018 22:36:17 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KW15IUSo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbeILKip (ORCPT + 99 others); Wed, 12 Sep 2018 06:38:45 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45023 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbeILKio (ORCPT ); Wed, 12 Sep 2018 06:38:44 -0400 Received: by mail-wr1-f65.google.com with SMTP id v16-v6so544162wro.11; Tue, 11 Sep 2018 22:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jT5+7JtWPBJBZZZG4eQIh3AZac3EnhQZE2+KTuHbuTM=; b=KW15IUSoqFxS1S6G2oefemWnpJnNcuV2in6KAFs74LeStoErilQKi2oRGikOK51qNK V2jQMXqxfqlVu07YEQJrh2RFSikf/klYm8gF0k46IML+eCUsXFYtG1QCzD1JqAruajK8 m0EqJx5a8NYmaYyvy8gif9XUnyuKhcsKwHlnETRmyK2bWdSq8w9eLpI8X1Uff+rSW31v 3iLGMJoo3siw9AdVHwlIjhpVO0K61qdWRruq1BQ7WZdOuw7wKsDT6iLK2A9O6/PgwoE6 u2Y/sT50xaJRKhbl8pVwxrWnvwsJIGS0OXPzoiFESxK/yIZ6mjDjhETlJdC8YEuJSMJ9 wkKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jT5+7JtWPBJBZZZG4eQIh3AZac3EnhQZE2+KTuHbuTM=; b=VIv9trDN4YcxolnlURbNKVJ5yLAlpiuVCTBA430JWBV+rublS2xgcfO7qbkfwYZ06h g9/bRe6nNjQ8igNXsZmPXq0W9/UvGq5NqdkGB45e8J+koHxDVpZLk333ND/YpHkfORim P5uepT7AVqYzIr+M3K4RNpB2aujDRnIq2EtE+mhdFmCA/uZj2oRuUQ68i753sOOXe7+v mBzrAdNyMKKHvmiYCzSefgvAVV0xDvO2a9nPB9c/Q9inP93h5U5dHeoRamz+Lnjdr2ea 6VURU3SwqkmmPTYcYpRSU7SWzgIx6lzVKQjMxn3T0i04HrUZnwcwF+pFNHVxW8GE1aIs BzXg== X-Gm-Message-State: APzg51A4mPtnTtZ2ufdbfYorT7awfVeIDsi51ZH38yopnuPGrWngu/rd gIpMNRr2GiLpWC5EaU1iH1o= X-Received: by 2002:adf:f608:: with SMTP id t8-v6mr156662wrp.186.1536730553666; Tue, 11 Sep 2018 22:35:53 -0700 (PDT) Received: from foobar (211.red-88-7-211.staticip.rima-tde.net. [88.7.211.211]) by smtp.gmail.com with ESMTPSA id x16-v6sm23846003wrm.69.2018.09.11.22.35.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 22:35:52 -0700 (PDT) Date: Wed, 12 Sep 2018 07:35:50 +0200 From: Sergio Paracuellos To: YueHaibing Cc: Greg Kroah-Hartman , matthias.bgg@gmail.com, blogic@openwrt.org, neil@brown.name, peter.vernia@gmail.com, oliver.huebers@web.de, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH -next] staging: mt7621-pci: Use PTR_ERR_OR_ZERO in mt7621_pcie_parse_dt() Message-ID: <20180912053550.GA17293@foobar> References: <1536720608-106123-1-git-send-email-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536720608-106123-1-git-send-email-yuehaibing@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12, 2018 at 02:50:08AM +0000, YueHaibing wrote: > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Signed-off-by: YueHaibing > --- > drivers/staging/mt7621-pci/pci-mt7621.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c > index ba1f117..d2cb910 100644 > --- a/drivers/staging/mt7621-pci/pci-mt7621.c > +++ b/drivers/staging/mt7621-pci/pci-mt7621.c > @@ -396,10 +396,7 @@ static int mt7621_pcie_parse_dt(struct mt7621_pcie *pcie) > } > > pcie->base = devm_ioremap_resource(dev, ®s); > - if (IS_ERR(pcie->base)) > - return PTR_ERR(pcie->base); > - > - return 0; > + return PTR_ERR_OR_ZERO(pcie->base); > } This patch looks good but the 'mt7621_pcie_parse_dt' function is not completed at all. There is a lot of missing for each pci node to be parsed yet and some patch series which are doing this have not been tested yet so those patches are not included. Please see: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-September/125937.html Best regards, Sergio Paracuellos > > static int mt7621_pcie_request_resources(struct mt7621_pcie *pcie, > > >