Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10638863imu; Thu, 6 Dec 2018 04:32:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/VaBXIO8famIf4qCR6Ql9DIe0D0ABBPMvhjPQvzllHv3TVU7QJhdgHGs+Ep21+ugsNvu4KL X-Received: by 2002:a17:902:59d6:: with SMTP id d22mr28701892plj.10.1544099536567; Thu, 06 Dec 2018 04:32:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544099536; cv=none; d=google.com; s=arc-20160816; b=U9Y9K0F0upnYSmxKryVN2t/arJzMpn/bNzqrTxjLeOnwfdZBg9TWzeU967wu1Ss/SS 9+x4Z0NMm4vi5DsKsBtB6DnAC2fy2fJQZkROgPviAhEVB0nxCHi/IRTZ5ixtXxJwRFiv OGYxsjSQ4dIzW+iX7IY8zY5CoBOHCbtDPLezH8YxhHkq9XeKUnQTqi5s6+DpeWdotIH3 t4F+fwQFp3HSNY2KHu0HLZHe190jD5Ut841te3qD+dFbvDk4HlVkzhnL2fO3YSmyLccE Rvpvi1DCd5NFjCs9XSIOH0X9vtIxuJS/ns+SB3z9ks+E+D6z4TYcWvBeg+5Bj9WCTpVg rtSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=BCeQ1DMNjeaKJnC+fsKDsP194IybAkkg/awb6d+lxK0=; b=KHnyiy9edguFXbd11zoKA4XCqfu+2KwBgjrW1DHsIxRTPLlgtyn7zvkkGR3r308X+9 x0KvS1NBya0gSvf5f7+BOKNLPQkup9poJRLdQ1qsiISETSa30gSLWf7unby1CkgIdiiW daFs04s6wtp+L1kJtSHP9ALHWsIcKYp8wfQAlPC1QftAOcyBH2BdTwaLjfsuyaHE4D3g XBRn0sEVTzd0Cctm7mbHhSg5zq9InBZODmjHjVLq7Ke3u6Aih/pj6aZa694oQSd/0z6M FgH4MKW5Vzln3KpwGun1teD2clnX+LljvVObTQT0t49+EnttLw5rLPhu5yZ3lemvr9oW pPew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=mutwC5rZ; 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 p126si153567pgp.529.2018.12.06.04.31.56; Thu, 06 Dec 2018 04:32:16 -0800 (PST) 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=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=mutwC5rZ; 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 S1729558AbeLFMa6 (ORCPT + 99 others); Thu, 6 Dec 2018 07:30:58 -0500 Received: from mail-eopbgr1400090.outbound.protection.outlook.com ([40.107.140.90]:33216 "EHLO JPN01-TY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727996AbeLFMa6 (ORCPT ); Thu, 6 Dec 2018 07:30:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BCeQ1DMNjeaKJnC+fsKDsP194IybAkkg/awb6d+lxK0=; b=mutwC5rZN5qknUG1g0OOZBAKZx3u6uQujJYQezpcqYYar30Vsxf+5TRhtSehGquqYenmtDZlOeJETll+EB7js2S8ITXFt4GUoo9jQK9u2wayvdM9kG0K7gZdERbJfsNi2/eMbN5MUH5mLlaWAXVY4ldZp3+Nm0sqOmkaynxVI0s= Received: from TY1PR01MB1769.jpnprd01.prod.outlook.com (52.133.163.146) by TY1PR01MB1561.jpnprd01.prod.outlook.com (52.133.162.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.17; Thu, 6 Dec 2018 12:30:53 +0000 Received: from TY1PR01MB1769.jpnprd01.prod.outlook.com ([fe80::9dd3:2789:8699:7885]) by TY1PR01MB1769.jpnprd01.prod.outlook.com ([fe80::9dd3:2789:8699:7885%4]) with mapi id 15.20.1382.023; Thu, 6 Dec 2018 12:30:52 +0000 From: Phil Edworthy To: Andy Shevchenko CC: Michael Turquette , Stephen Boyd , Russell King , Geert Uytterhoeven , =?iso-8859-1?Q?Uwe_Kleine-K=F6nig?= , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH v9 1/2] clk: Add comment about __of_clk_get_by_name() error values Thread-Topic: [PATCH v9 1/2] clk: Add comment about __of_clk_get_by_name() error values Thread-Index: AQHUivk3i4Y+f5/feUuqUWNTx+pZGqVtAtEAgASlWYA= Date: Thu, 6 Dec 2018 12:30:52 +0000 Message-ID: References: <20181203111309.3709-1-phil.edworthy@renesas.com> <20181203111309.3709-2-phil.edworthy@renesas.com> <20181203133040.GN10650@smile.fi.intel.com> In-Reply-To: <20181203133040.GN10650@smile.fi.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=phil.edworthy@renesas.com; x-originating-ip: [193.141.220.21] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;TY1PR01MB1561;20:xB/9pCi7ydiHEkR9cfr1q1Hszy7CoWdXxjN0Yltn7rdRWD8g1NkxGGxOkImaqGCG2ftGwQRQy3W3Ue5FK+yoxsT1YPVoXqLwPGJJW5KoANQVZaCpo7DoyHu+Sc4LzhibM+V1p6k/v5G3rB3ExPFNYs+SmYwZdu4vPDHRdp73o/M= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: fcaf1fb9-b9ce-4dc4-6a7e-08d65b76a9a2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:TY1PR01MB1561; x-ms-traffictypediagnostic: TY1PR01MB1561: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231455)(999002)(944501520)(52105112)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:TY1PR01MB1561;BCL:0;PCL:0;RULEID:;SRVR:TY1PR01MB1561; x-forefront-prvs: 087894CD3C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(346002)(39860400002)(366004)(136003)(199004)(189003)(51914003)(478600001)(229853002)(74316002)(102836004)(6506007)(53546011)(76176011)(71190400001)(71200400001)(81166006)(81156014)(53936002)(55016002)(105586002)(14444005)(256004)(106356001)(9686003)(2906002)(8676002)(186003)(97736004)(6916009)(33656002)(6116002)(3846002)(54906003)(316002)(7736002)(305945005)(14454004)(446003)(26005)(476003)(11346002)(44832011)(25786009)(6436002)(5660300001)(86362001)(68736007)(486006)(8936002)(66066001)(6246003)(7696005)(4326008)(99286004);DIR:OUT;SFP:1102;SCL:1;SRVR:TY1PR01MB1561;H:TY1PR01MB1769.jpnprd01.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /zGu961oHRsGeLLGQQa1VH1XV9LgAkEoF3zPvF6y77iEUsdka5h9YtO59eKi++h2lLkVFOz6O42n2EKh7gFPc23OvHWXaJfJpsRRFNf2ft3Rci8htR5lxe4GJFxg4o22mzt+7i5Svb26Xnvg7OtyT08y5oaYfp9FwO8CCjFD21Q0F7HALRViJ2CRmVw7P024I/iNXqjqOKYG0IjEYiqWl6D9QaDosDeDQVS+Mcc/jJofv7qos0/NRO08CBYtF1A0SE3MJtgyMBkvpE09xQT3qu1MkOzIcTgkm1RrWyxoOsGXrXwNk2YgmSNfS/iVPx16onpNISpJaDg4mqQw7bIH0DR/695HbMqVYwvjVakbDiU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcaf1fb9-b9ce-4dc4-6a7e-08d65b76a9a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2018 12:30:52.8047 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB1561 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 03 December 2018 13:31 Andy Shevchenko wrote: > On Mon, Dec 03, 2018 at 11:13:08AM +0000, Phil Edworthy wrote: > > It's not immediately obvious from the code that failure to get a clock > > provider can return either -ENOENT or -EINVAL. Therefore, add a > > comment to highlight this. >=20 > > +/* > > + * Beware the return values when np is valid, but no clock provider is > found. > > + * If name =3D NULL, the function returns -ENOENT. > > + * If name !=3D NULL, the function returns -EINVAL. This is because > > +__of_clk_get() >=20 > I would start new sentence from new line (this will emphasize the possibl= e > variants) >=20 > * This is ... I disagree, the explanation is specifically related to the case where the f= unction returns -EINVAL. Though this is a nit, so I'm not really bothered either wa= y. Thanks for the review! Phil > Otherwise looks good to me: >=20 > Reviewed-by: Andy Shevchenko >=20 > > + * is called even if of_property_match_string() returns an error. > > + */ > > static struct clk *__of_clk_get_by_name(struct device_node *np, > > const char *dev_id, > > const char *name) > > -- > > 2.17.1 > > >=20 > -- > With Best Regards, > Andy Shevchenko >=20