From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751485AbdCCBvb (ORCPT ); Thu, 2 Mar 2017 20:51:31 -0500 Received: from mail.kernel.org ([198.145.29.136]:33048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbdCCBv3 (ORCPT ); Thu, 2 Mar 2017 20:51:29 -0500 MIME-Version: 1.0 In-Reply-To: <20170302210351.1f740ffc@bbrezillon> References: <1488484223-844-1-git-send-email-albeu@free.fr> <1488484223-844-4-git-send-email-albeu@free.fr> <20170302210351.1f740ffc@bbrezillon> From: Moritz Fischer Date: Thu, 2 Mar 2017 17:50:45 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] nvmem: core: Allow allocating several anonymous nvmem devices To: Boris Brezillon Cc: Alban , Linux Kernel Mailing List , Devicetree List , linux-mtd@lists.infradead.org, Cyrille Pitchen , Richard Weinberger , Marek Vasut , Brian Norris , David Woodhouse , Mark Rutland , Rob Herring , Maxime Ripard , Srinivas Kandagatla Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 2, 2017 at 12:03 PM, Boris Brezillon wrote: > On Thu, 2 Mar 2017 20:50:23 +0100 > Alban wrote: > >> Currently the nvmem core expect the config to provide a name and ID >> that are then used to create the device name. When no device name is >> given 'nvmem' is used. However if there is several such anonymous >> devices they all get named 'nvmem0', which doesn't work. >> >> To fix this problem use the ID from the config only when the config >> also provides a name. When no name is provided take the uinque ID of >> the nvmem device instead. >> >> Signed-off-by: Alban > > Reviewed-by: Boris Brezillon Reviewed-by: Moritz Fischer Thanks, Moritz