Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-17 Thread Brian Norris
On Sat, Sep 13, 2014 at 01:23:59AM +0200, Alexandre Belloni wrote: > From: Boris BREZILLON > > Retrieve the NFC clock to make sure it is enabled. Make that optional to > ensure > compatibility with previous device trees but document it as mandatory so newer > device trees will include it. > >

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-17 Thread Brian Norris
On Sat, Sep 13, 2014 at 01:23:59AM +0200, Alexandre Belloni wrote: From: Boris BREZILLON boris.brezil...@free-electrons.com Retrieve the NFC clock to make sure it is enabled. Make that optional to ensure compatibility with previous device trees but document it as mandatory so newer device

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Alexandre Belloni
Hi, On 13/09/2014 at 10:26:18 +0100, Ezequiel Garcia wrote : > > + nfc->clk = devm_clk_get(>dev, NULL); > > + if (!IS_ERR(nfc->clk)) { > > + ret = clk_prepare_enable(nfc->clk); > > + if (ret) > > + return ret; > > + } else { > >

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Ezequiel Garcia
On 13 September 2014 00:23, Alexandre Belloni wrote: > From: Boris BREZILLON > > Retrieve the NFC clock to make sure it is enabled. Make that optional to > ensure > compatibility with previous device trees but document it as mandatory so newer > device trees will include it. > > Signed-off-by:

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Ezequiel Garcia
On 13 September 2014 00:23, Alexandre Belloni alexandre.bell...@free-electrons.com wrote: From: Boris BREZILLON boris.brezil...@free-electrons.com Retrieve the NFC clock to make sure it is enabled. Make that optional to ensure compatibility with previous device trees but document it as

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Alexandre Belloni
Hi, On 13/09/2014 at 10:26:18 +0100, Ezequiel Garcia wrote : + nfc-clk = devm_clk_get(pdev-dev, NULL); + if (!IS_ERR(nfc-clk)) { + ret = clk_prepare_enable(nfc-clk); + if (ret) + return ret; + } else { +

[PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Alexandre Belloni
From: Boris BREZILLON Retrieve the NFC clock to make sure it is enabled. Make that optional to ensure compatibility with previous device trees but document it as mandatory so newer device trees will include it. Signed-off-by: Boris BREZILLON Signed-off-by: Alexandre Belloni Acked-by: Josh Wu

[PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Alexandre Belloni
From: Boris BREZILLON boris.brezil...@free-electrons.com Retrieve the NFC clock to make sure it is enabled. Make that optional to ensure compatibility with previous device trees but document it as mandatory so newer device trees will include it. Signed-off-by: Boris BREZILLON