Re: nvmem creates multiple devices with the same name

2019-07-08 Thread Sascha Hauer
On Tue, Jul 02, 2019 at 05:54:54PM +0100, Srinivas Kandagatla wrote: > Hi Sascha, > > On 01/07/2019 09:06, Sascha Hauer wrote: > > Hi Srinivas, > > > > On Tue, May 21, 2019 at 11:21:07AM +0200, Sascha Hauer wrote: > > > On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: > > > >

Re: nvmem creates multiple devices with the same name

2019-07-02 Thread Boris Brezillon
On Tue, 21 May 2019 10:56:41 +0200 Sascha Hauer wrote: > Hi all, > > nvmem derives the device name directly from the partition name of the > underlying device. IMO this is wrong since it's not possible to create > two partitions with the same name on different devices. In my case I > have a NAND

Re: nvmem creates multiple devices with the same name

2019-07-02 Thread Srinivas Kandagatla
Hi Sascha, On 01/07/2019 09:06, Sascha Hauer wrote: Hi Srinivas, On Tue, May 21, 2019 at 11:21:07AM +0200, Sascha Hauer wrote: On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: On 21/05/2019 09:56, Sascha Hauer wrote: . Are there any suggestions how to register the nvmem

Re: nvmem creates multiple devices with the same name

2019-07-01 Thread Sascha Hauer
Hi Srinivas, On Tue, May 21, 2019 at 11:21:07AM +0200, Sascha Hauer wrote: > On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: > > > > > > On 21/05/2019 09:56, Sascha Hauer wrote: > > > . Are there any suggestions how to register the nvmem devices > > > with a different name?

Re: nvmem creates multiple devices with the same name

2019-05-21 Thread Sascha Hauer
On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: > > > On 21/05/2019 09:56, Sascha Hauer wrote: > > . Are there any suggestions how to register the nvmem devices > > with a different name? > > struct nvmem_config provides id field for this purpose, this will be used by > nvme

Re: nvmem creates multiple devices with the same name

2019-05-21 Thread Srinivas Kandagatla
On 21/05/2019 09:56, Sascha Hauer wrote: . Are there any suggestions how to register the nvmem devices with a different name? struct nvmem_config provides id field for this purpose, this will be used by nvmem to set the device name space along with name field. --srini

nvmem creates multiple devices with the same name

2019-05-21 Thread Sascha Hauer
Hi all, nvmem derives the device name directly from the partition name of the underlying device. IMO this is wrong since it's not possible to create two partitions with the same name on different devices. In my case I have a NAND device and a SPI NOR device which both happen to have a partition na