Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4770795imu; Tue, 15 Jan 2019 05:48:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN5FNhqIKc2+JAxU8gLfdv2pW5+dBQieMd9qq70WrEjdxMVkBIj4Ew3IpqYQ/DbVOIyKpm8e X-Received: by 2002:a62:b9a:: with SMTP id 26mr4172792pfl.196.1547560126757; Tue, 15 Jan 2019 05:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547560126; cv=none; d=google.com; s=arc-20160816; b=wZS8cxx+5Qn7UWLrr+MMPXsrCScpgBG/6okY7jCC35vdSHyXcmEQLeY4OJUrM0SFsE HS6roJT/TqBZvRew/gE/jRKQoV77RbszuwmhIT42TSGu7yHtP8SAKz6hlY0qq9jS4W7U cQyiMVy0LJqNX1Ks5YfqdDh3d/mGP/7ZLilzOZTAPa23G0yKOKjlg2h8xBg855F5Peq6 tZU3UiyPpTrUDBtuXhT0CFa2nY997eqX9p2ohfG53jL2K/awE64X5s0QVCmOFknl3V74 QMzfFBkVxdDKKfoI+Pqm/winMQsb5H6ODhSeySXVDQ08V7sLt9uLE28IQ7z2Ji4pSFDv x4rw== 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; bh=jvo2A1J+jR4ya7hyU8VK1xd5DbGgYfdWfD20nJ0t9xQ=; b=wUwX5aML2ER9ZyqkNgvZjvLRxndsKgJJ2MWJKT30trBCGEK1QWuhzgRg/5i+W74yhE NzumyA594WDddHGSGLKXx1QWLZ11Sv0YG6vwFwmQYH0h2j7LnjyjHXymNO/PWCeENZ0R JQ8gu4owzNZ4N+cXXZWkTONDBlvSWx6Bpg1CO3x5LOwdvKHvIPjEpj0LroZv2/ipY4La WGgJodwDRyAuj0yTMIGWkP3GqavOmKxeNq6hkrKm2SMqyrkxm3QM3idHHcfBuOiR8dD5 +2EpHOgP9+gHTnj6h64GbHd+3qeFVWZ1k15TY71EWSSWyRU5L3qxQSOa9UXyZYviXWIC 6e5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gWPn4Vcf; 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 a90si3273423plc.314.2019.01.15.05.48.31; Tue, 15 Jan 2019 05:48:46 -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=@linaro.org header.s=google header.b=gWPn4Vcf; 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 S1728140AbfAOMkl (ORCPT + 99 others); Tue, 15 Jan 2019 07:40:41 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33670 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbfAOMkl (ORCPT ); Tue, 15 Jan 2019 07:40:41 -0500 Received: by mail-wr1-f67.google.com with SMTP id c14so2835138wrr.0 for ; Tue, 15 Jan 2019 04:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jvo2A1J+jR4ya7hyU8VK1xd5DbGgYfdWfD20nJ0t9xQ=; b=gWPn4VcfxeOhN1w4WMvw7yxrzVEj0yLYm823AxmR1IA8l4HC36X4mLkgEHVWkWgD6T 8gvx18aAXy0pXsbPdur1zO36k+Pq4nVgm3MQ19g2eO4LkSY+PFwcFkDEqEg/I6X9hQ1u SPog5AO+T+pDroxDbqKtwrWNug8ausLCrjz+8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jvo2A1J+jR4ya7hyU8VK1xd5DbGgYfdWfD20nJ0t9xQ=; b=l8NVuCcpg9waIBWysuArwqkmW932MHZmSQ+WKGAU7oVP2D/zdR77QfvqLVxi3cQX3/ FeE6k4Itnyugdtgr7887FMIJPLPSu2M/Jea8xj0tbG9hT3pH07emiTVd0nF9V7NpmJdx IycWokbXEWq5UkmPG5+jkKxbm7Ujhu+SrhylC7bsMpj4LmBhYhucaIgjlL46DMxG77L8 MNoG8/7omqi7tXAcX6h2Pk7Y9AIFOJ+lIbl9hdRhzqMthTAx53xAZJ0ffA2TVOv/j87J V+DZXF9Yw5TeOZ02GX5vXE+MZn1ro8uLNgIzj4YZ+Mhimti/ZBA3gFskHe7EPPGNAzht wxhA== X-Gm-Message-State: AJcUukcmKs+l2DFr3XJw3zEqhHptWMLFMQe2nGazLdA9Eo+1AkSsprFF 0E8RscI3+4WsM8tGelwN+ipMI3Ntjj0= X-Received: by 2002:adf:e34b:: with SMTP id n11mr2855433wrj.91.1547556039027; Tue, 15 Jan 2019 04:40:39 -0800 (PST) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id o81sm53102759wmd.10.2019.01.15.04.40.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 04:40:38 -0800 (PST) Subject: Re: [PATCH 0/8] nvmem: Various small fixes and improvements To: Alban Bedel Cc: linux-kernel@vger.kernel.org References: <20190106192820.12558-1-albeu@free.fr> From: Srinivas Kandagatla Message-ID: Date: Tue, 15 Jan 2019 12:40:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190106192820.12558-1-albeu@free.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/01/2019 19:28, Alban Bedel wrote: > Hi, > > this series is mostly small bug fixes, but also add a new API > to make things simpler in drivers that need to request an optional cell. > > Alban Bedel (8): > nvmem: core: Set the provider read-only when no write callback is > given > nvmem: core: Fix of_nvmem_cell_get() for optional cells > nvmem: Add nvmem_cell_get_optional and devm_nvmem_cell_get_optional > nvmem: core: Fix cell lookup when no cell is found > nvmem: core: Properly handle connection ID in of_nvmem_device_get() > nvmem: core: Always reference the device returned by > nvmem_device_get() > nvmem: core: Fix device reference leak > nvmem: core: Avoid useless iterations in nvmem_cell_get_from_lookup() > > drivers/nvmem/core.c | 86 +++++++++++++++++++++++++++------- > include/linux/nvmem-consumer.h | 16 +++++++ > 2 files changed, 86 insertions(+), 16 deletions(-) > Thanks Alban for the work! Most of the patches look good to me except nvmem_cell_get_optional()! Will send out comments on that patch separately! -srini