Received: by 10.192.165.148 with SMTP id m20csp112960imm; Tue, 1 May 2018 18:50:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo6PjubpYTwSl9+WvBP9byMuS39X3RiW/WLOW04tA10iUN+jDUpMk3/raRziwc6yX71vKx9 X-Received: by 2002:a65:6603:: with SMTP id w3-v6mr14687914pgv.151.1525225824247; Tue, 01 May 2018 18:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525225824; cv=none; d=google.com; s=arc-20160816; b=R2NInu3s11VyQxA35K/D0vMK4Xm5xJZeqg2n56J25LSZ77E1JAEWgSpkRNBVLrXhBj Fn6E3FPS+tL/ByozUowWZqzs9wTurQoYdvSfjBi+nRcJdwaxok6O5pBu2id8rwgqNVfE +xuRXHoh8Ws5E7R5ZkJIC0s/56q+nrajnjnAL0hlbA0OrMworLk2nBZhKCA/yK0WeJOo Id7B6ZDaV8Zg2t82Rxvf9qhARcNCJAr6zMZbRPad+ROsHNLdm1X1bLHl7Q1qdXGgCKTV tc1bnIIuGwGQNs2q8mMNbp5W1sEhW04/uDfc5whkPqlArsGYmoBZWG9tsAw4Pkk/lrJW zYYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=xH2ikg57COENALm6qy6ym1NKiP+DwkNFSmeUarYKkbQ=; b=lSMswyiS4aH01Wr8SCxPCthCHbBasLW7E/icMXzx3wgR++uVvOEd3rmWu8BP+jLUJW 9uHXiUmKpB9Vc/jqUbRrW+rYKHJR4Q400wr21JZmKnW5IyfUf+RuplYjvvTNP3QwCewm uxBQTDCjlV25MGEcFXwIhCTXWz5EFPkRUC1FeI9fYl2yypOl8CFACxf5x3wmJG5uYKid VUvMVjx8XirHLjv3vUodLVGmayBWd6NQ5SQXy6E801Ww+Sz711Yi7MQbArUym2zdmzpj j2AEbWQi5eszesjx10G2knARPmti92dOzv21vHS2swFEx0LyAkWay1RMfJ+LSkzKC45p lQtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=f99NRCRt; 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 y63-v6si8666791pgb.311.2018.05.01.18.50.09; Tue, 01 May 2018 18:50:24 -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=fail header.i=@lechnology.com header.s=default header.b=f99NRCRt; 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 S1751234AbeEBBt6 (ORCPT + 99 others); Tue, 1 May 2018 21:49:58 -0400 Received: from vern.gendns.com ([206.190.152.46]:52672 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbeEBBt4 (ORCPT ); Tue, 1 May 2018 21:49:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xH2ikg57COENALm6qy6ym1NKiP+DwkNFSmeUarYKkbQ=; b=f99NRCRtePe9O4IyR2ygJedPhI C91ilYjzaNWOkT0QhsvaAf4If5/+vJ4r/GMTpghw1CdSdwBJ1QjdXZFmHsxCsiTimWp3WULmvEHsT mBp4/KNaYcOEME8Jz7vFaPpIHs/VjDPhZbk5yu04Qaf0nwJy2tNGIorSs6GEsO35xbZHK+A8DbCc5 avkQcGODdYiLz0S2dmuHIgR4Hq/J+TCb5ZslqnLigWDSyfWDZxre5AzPxIh41rFhgwsLbkUZB53L1 m0A09ZFb8s9vM3DrYj0+AhDB3RRYflh7Nk9oP+HRCbnIcHOsNHO0MFF6vcVOXrtvgKJH975jBNJzY 5Zkr6RpA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:46380 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fDgu2-002B9i-GC; Tue, 01 May 2018 21:49:54 -0400 Subject: Re: [PATCH v9 03/27] clk: davinci: psc: allow for dev == NULL To: Sekhar Nori , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org References: <20180427001745.4116-1-david@lechnology.com> <20180427001745.4116-4-david@lechnology.com> <8940259b-5811-ce9f-8262-17d39ca0a46f@ti.com> From: David Lechner Message-ID: <94d4cfc5-0ea7-e642-c7e3-8d549bdef8ce@lechnology.com> Date: Tue, 1 May 2018 20:49:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <8940259b-5811-ce9f-8262-17d39ca0a46f@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/01/2018 09:02 AM, Sekhar Nori wrote: > On Friday 27 April 2018 05:47 AM, David Lechner wrote: >> +static inline void *_devm_kzalloc(struct device *dev, size_t size, gfp_t flags) >> +{ >> + if (dev) >> + return devm_kzalloc(dev, size, flags); >> + >> + return kzalloc(size, flags); >> +} > > I have the same question on the utility of this. A memory allocation > error so early on is not going to result in a bootable system anyway. > So, I wonder if its better to just BUG() in such cases. That will > actually help faster debug than returning an error back. I know the push > back on using BUG(), but clock drivers are special, and I think thats > why its seems to be used quite a bit already. > Same reply here as well. On DA850/DA830, you might not get a console, but you will "boot" even if one of the PSC devices fails though. WARN() is probably just as good as BUG() in this case too.