Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp435095ybi; Thu, 30 May 2019 00:41:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx+g8xkJmOMn/MpDkZwLnNJilLzW2rsAaVXTYuOKNia5XXO7tEduq3uZi/7ROkmgWzvVQ6 X-Received: by 2002:a05:6a00:43:: with SMTP id i3mr2373890pfk.113.1559202071430; Thu, 30 May 2019 00:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559202071; cv=none; d=google.com; s=arc-20160816; b=GD+qdFGYl+1m+Ny3k2284oPW4/AzlrxSXik+b51koSt/4E2Wt1uAFJ0no0pW9bfnOz bTfi6fU1y/58cfeRpOy8LArgm6KmAREeFPpXTae4YFcXRmKwER9zhECi5jT5lHJC3iAX Qa4lAdJ+m4VYBSn+/y684b8wX9VVYu8iM80CjsxfM+XYXDw9YEqn5XR6xHquUIjeZ2Ck AWKyED14SOO/pqvpVVsQ/GKg7mxHwdsUEbIC/0o+0E2h1EXf1IW1+Hi450F8tr9tHVF7 NNBF9d7RHtT5uzlIQ2C9Pi+OfbetOODQ76/JlCmc0cx5pkvkLKSPEO0wfiQliOWSZZbX IMrw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7nvQSt9u8hnEYp0RlBDRlIGBODePoq9QbKJNU2Z6R6I=; b=OcJBxuAshu2jypNi0DOSzWnip86iipDDIDL//5r/dNBXbpUOs+9egpZLijXVkijwR4 8pbJGYj2hUbv8xwzmzbMvZjqdvFFNxxXsyoDUdl5ht4ymXOdAqmTpNwG48Quj5//wEI8 n76CRq+3MYUsaa7I5se2c0VYA3HqrDolWqwNRfkA1N6776JYul/5Mfo1cVRCRQiqtFR7 936OaTiPiDf8u/HMnkLdWikDNnYYnYMjNy80NaPrX55E0JxKF2IfpualDak+caX8jCxE rAkSZAjqwshKgXTpwdUXYIQgV8zxJUPa8i7z/aVhUeO8fUHCHV/3vzlFr8xNyTbVLueh TeJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tYfDxhjH; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si2550241pgb.109.2019.05.30.00.40.54; Thu, 30 May 2019 00:41:11 -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=@linaro.org header.s=google header.b=tYfDxhjH; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfE3Hib (ORCPT + 99 others); Thu, 30 May 2019 03:38:31 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45587 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbfE3Hia (ORCPT ); Thu, 30 May 2019 03:38:30 -0400 Received: by mail-wr1-f66.google.com with SMTP id b18so3414278wrq.12 for ; Thu, 30 May 2019 00:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7nvQSt9u8hnEYp0RlBDRlIGBODePoq9QbKJNU2Z6R6I=; b=tYfDxhjHwopW10j/LxPwT+r0xzailTUFARfEDHBcC2xcwtT5AONzXsv/P+4QFLJDxQ extfmqu0pOByaM1XGJssrrcyVS0NsezxhOF+qaSlvoEtV/8rXBMoVlWtpYDGpRMVcrfQ 6ljwDf4tDjC5ALOcHnrNFMK4O5yRdq3OfkxOSG/Hvl4A5W4QgXo9Teo8v1L6h81ThGZQ x34p3Ls/t5EQbukEgfFyaaS85GIqnPDEh7qyS4kcgBsl1d8yOi5Rd1osThsexsDcaMNT SumZ64jZ0dXTlozznClUyrp/hPGXPo2CvP1xyCCBIEpNnRnaUxJ0RvqhtcBv60pPBDu4 e2Og== 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:content-transfer-encoding :in-reply-to:user-agent; bh=7nvQSt9u8hnEYp0RlBDRlIGBODePoq9QbKJNU2Z6R6I=; b=Mf3Wa0BYX8A29YjzBVZxZJAL+yy23DOjawI/7WA1ghX35+d4bSW8tELG8DR/Xa9CRJ 3tVogXqgelnwtgs+KNTJsFR3G6GzH6jNHDkjbAp+zXcFy442hH0R8HTFg56bibY4kjCB yeIq93iPnmTkn7MDsRO53iEz/LbROt1idPIzBsHxDeFRNTI0mZIKigmJkiuIDUtZbvKF Asbp4dUYqFqo2uzpINi45r2+cnDsOap/sG+5zUOWqAV+vAUBiAqWRpuujxo+gtaqP1KW 1eRkzRsrufPn4lJEp6bvKMmmPfo7HHYuohTut4o5p4Ex67Q8urt4k5oPQ+VEYO5Vsl/y OLBA== X-Gm-Message-State: APjAAAWnIGlyEVIMz25Ook2sbxxO6fAayuadDDc0Mos0HQrwzVbj5+OJ oZF4Jbl42WSjRULrADIyTUvW1a+9MCA= X-Received: by 2002:a5d:694c:: with SMTP id r12mr1589045wrw.214.1559201909288; Thu, 30 May 2019 00:38:29 -0700 (PDT) Received: from dell ([2.27.167.43]) by smtp.gmail.com with ESMTPSA id 32sm4553425wra.35.2019.05.30.00.38.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2019 00:38:28 -0700 (PDT) Date: Thu, 30 May 2019 08:38:27 +0100 From: Lee Jones To: Jacek Anaszewski Cc: Dan Murphy , Pavel Machek , broonie@kernel.org, lgirdwood@gmail.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH v4 6/6] leds: lm36274: Introduce the TI LM36274 LED driver Message-ID: <20190530073827.GL4574@dell> References: <20190522192733.13422-1-dmurphy@ti.com> <20190522192733.13422-7-dmurphy@ti.com> <20190523125012.GB20354@amd> <0c2bd6af-92c5-2458-dc41-1ea413545347@ti.com> <89a80aa8-66ee-d0ec-fa54-c55ca8de06af@gmail.com> <20190529135821.GK4574@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 May 2019, Jacek Anaszewski wrote: > On 5/29/19 3:58 PM, Lee Jones wrote: > > On Fri, 24 May 2019, Jacek Anaszewski wrote: > > > > > Hi, > > > > > > On 5/23/19 9:09 PM, Dan Murphy wrote: > > > > Pavel > > > > > > > > Thanks for the review > > > > > > > > On 5/23/19 7:50 AM, Pavel Machek wrote: > > > > > Hi! > > > > > > > > > > > +++ b/drivers/leds/leds-lm36274.c > > > > > > > > > > > +static int lm36274_parse_dt(struct lm36274 *lm36274_data) > > > > > > +{ > > > > > > + struct fwnode_handle *child = NULL; > > > > > > + char label[LED_MAX_NAME_SIZE]; > > > > > > + struct device *dev = &lm36274_data->pdev->dev; > > > > > > + const char *name; > > > > > > + int child_cnt; > > > > > > + int ret = -EINVAL; > > > > > > + > > > > > > + /* There should only be 1 node */ > > > > > > + child_cnt = device_get_child_node_count(dev); > > > > > > + if (child_cnt != 1) > > > > > > + return ret; > > > > > > > > > > I'd do explicit "return -EINVAL" here. > > > > > > > > > > > > > ACK > > > > > > > > > > +static int lm36274_probe(struct platform_device *pdev) > > > > > > +{ > > > > > > + struct ti_lmu *lmu = dev_get_drvdata(pdev->dev.parent); > > > > > > + struct lm36274 *lm36274_data; > > > > > > + int ret; > > > > > > + > > > > > > + lm36274_data = devm_kzalloc(&pdev->dev, sizeof(*lm36274_data), > > > > > > + GFP_KERNEL); > > > > > > + if (!lm36274_data) { > > > > > > + ret = -ENOMEM; > > > > > > + return ret; > > > > > > + } > > > > > > > > > > And certainly do "return -ENOMEM" explicitly here. > > > > > > > > > > > > > ACK > > > > > > > > > Acked-by: Pavel Machek > > > > > > I've done all amendments requested by Pavel and updated branch > > > ib-leds-mfd-regulator on linux-leds.git, but in the same time > > > > What do you mean by updated? You cannot update an 'ib' (immutable > > branch). Immutable means that it cannot change, by definition. > > We have already talked about that. Nobody has pulled so the branch > could have been safely updated. You have no sure way to know that. And since I have no way to know, or faith that you won't update it again, pulling it now/at all would seem like a foolish thing to do. Until you can provide me with an assurance that you will not keep updating/changing the supposedly immutable pull-requests you send out, I won't be pulling any more in. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog