Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933968AbcKNIhT (ORCPT ); Mon, 14 Nov 2016 03:37:19 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:46461 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932297AbcKNIhP (ORCPT ); Mon, 14 Nov 2016 03:37:15 -0500 X-AuditID: b6c32a4a-f79426d000001a38-d0-582977b772fc Subject: Re: [PATCH 01/16] ARM: scu: Provide support for parsing SCU device node to enable SCU To: Jisheng Zhang Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rmk+kernel@armlinux.org.uk, arnd@arndb.de, horms@verge.net.au, magnus.damm@gmail.com, geert+renesas@glider.be, vireshk@kernel.org, shiraz.linux.kernel@gmail.com, krzk@kernel.org, thomas.ab@samsung.com, Russell King , Dinh Nguyen , Patrice Chotard , Linus Walleij , Liviu Dudau , Ray Jui , Stephen Warren , Heiko Stuebner , Shawn Guo , Michal Simek , Wei Xu , Andrew Lunn , Jun Nie , "cpgs ." From: "pankaj.dubey" Message-id: <71596b86-7653-5c02-fc46-59409a91243f@samsung.com> Date: Mon, 14 Nov 2016 14:10:16 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-version: 1.0 In-reply-to: <20161114141251.7ea86e7a@xhacker> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Tf0wbdRTPt3e9OxarZ8fGN/UXucxMSChtLe1XHegcW25bdUQX1zg3dsIF iO2V9NopxjjMEgbT0XGwbKvdgMqQdKij/CrDaVs2cBLEiXZOmc5BI8NBE8mMUcksPZbw3+e9 93nv8z4veRSmric1VIXg4p0CZ2OIVXjfUJY5p//NLKvOV43Q+PUohhalYRLdimahwJ+dGDr1 oQTQ3Zt/KNHB3jsAzY8M4qht+jcSjY+fI1HTfx8rUHAqpkQ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3Ii0mJkPOD2MJLIfoRBWNKSoi1403Itd texBUpGvypyZOGcPsZIlpNvSmWk20RIJrWgGaVlqaQ+1wgh7zkkgnb8+53c+Xzg/OFJC3kiq pAf06bxJz2lZyl+cpt1xTN1wMEQT1lKuhO5+NwG/zB0SGHWHgO1LDQEV5WYEf958IOHk7UkE Yw+axFA19FoC3d21Erjw84YI7IMeEp7esVLgLmlG0HotRwwDNz9RMDaqAevDZwiGyxwUPCks EsGIUwmXv3WS8P7+aTHkXkfgGOigYKj9ArFJhWsu1SD81POYwD+mzAhbXj2icNEjNW609Evw YEWdBNtteRTu89ylsKPqOG50fRXh4qtev9BjluBzThvCDZ5LBB7+3kxsVyTGbkjluWTeFMTr kwzJB/Qp0eyunbFqYIP0nI6PZjXq+J0JbFAmp83wduFh/9Wmzdu37mBXb9wfm2r52kca8ySH 3lXWibJRE5mP/KQMHcm0uz6KZjiA6Xl5i8pH/lI57UBMcfZpYnqwkN7P1NomfaygVzC2ghHJ jPQHMZ3j1cR0Q9DlFDMxViKetih6NVM6WE9Ns4zeyPwy5/jSYno5k2c+63tfRGsY+6RVPOMs YDrLhnzsR4cy9V1XfCsRXnb1TpEzvJRp+GQlzqP5llkRyyzNMku7gggbCuCNgi5FJxjDwkMF Tidk6FNCkww6O/KeTX0bq3QhS/U2N6KliJ0rM04Ea+Qklylk6dyIkRKsQjZuCNHIZclc1mHe ZNhnytDyghtFeb9RRKgWJRm8R6hP37cmMgoAItdGRERAJKuU7S19u1tOp3DpfBrPG3nTv5xI 6qfKRke3HE8X6GNbFYp19oT4XDYOTibcW2/93QuuUzjmy7n4F11ULVmmOBF8InCPY0755jzn eOBHKqvmmnYOvhzbs2xxXEzBqqMX25VF60bb5rnmV5pxoCP3SH+Mc0/iko62upYPZM+AzK79 /Lu173mUvHtkZPTMhoHm9ttWlau6ZIoVC6ncmpWESeD+AqgQHPFMAwAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161114083711epcas2p148ce476a5ea112f5ac5efb674a8e459c X-Msg-Generator: CA X-Sender-IP: 182.195.34.23 X-Local-Sender: =?UTF-8?B?7YyQ7Lm07KaIG1NTSVItVHVybiBLZXkgU29sdXRpb25zGw==?= =?UTF-8?B?7IK87ISx7KCE7J6QGy4vQ2hpZWYgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?UEFOS0FKIEtVTUFSIERVQkVZG1NTSVItVHVybiBLZXkgU29s?= =?UTF-8?B?dXRpb25zG1NhbXN1bmcgRWxlY3Ryb25pY3MbLi9DaGllZiBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG1NXQUhRG0MxMElEMDdJRDAxMDk5Nw==?= CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161114062145epcas5p10d8dc920fce008aa0d6c9388db94341a X-RootMTR: 20161114062145epcas5p10d8dc920fce008aa0d6c9388db94341a References: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> <1479099731-28108-2-git-send-email-pankaj.dubey@samsung.com> <20161114141251.7ea86e7a@xhacker> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 36 Hi Jisheng, On Monday 14 November 2016 11:42 AM, Jisheng Zhang wrote: > Hi Pankaj, > > On Mon, 14 Nov 2016 10:31:56 +0530 Pankaj Dubey wrote: >> + >> + np = of_find_matching_node(NULL, scu_match); > > could we check np before calling of_iomap()? > of_iomap takes care of that, and will return NULL if np is NULL. So additional check of np is not required here. >> + scu_base = of_iomap(np, 0); >> + of_node_put(np); >> + if (!scu_base) { >> + pr_err("%s failed to map scu_base via DT\n", __func__); > > For non-ca5, non-ca9 based SoCs, we'll see this error msg. We understand > what does it mean, but it may confuse normal users. In current version, > berlin doesn't complain like this for non-ca9 SoCs > OK, let me see other reviewer's comment on this. Then we will decide if this error message is required or can be omitted. Thanks, Pankaj Dubey