[PATCH] mtd: nand: gpmi: disable the clocks on errors

Fabio Estevam festevam at gmail.com
Mon Oct 24 06:14:30 PDT 2016


[Adding Brian on Cc]

On Mon, Oct 24, 2016 at 10:31 AM, Boris Brezillon
<boris.brezillon at free-electrons.com> wrote:
> On Sat, 22 Oct 2016 14:15:22 -0200
> Fabio Estevam <festevam at gmail.com> wrote:
>
>> From: Fabio Estevam <fabio.estevam at nxp.com>
>>
>> We should disable the previously enabled GPMI clocks in the error paths.
>>
>> Also, when gpmi_enable_clk() fails simply return the error
>> code immediately rather than jumping to to the 'err_out' label.
>>
>> Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
>
> Acked-by: Boris Brezillon <boris.brezillon at free-electrons.com>
>
> Brian, can you take this patch in the MTD tree and queue it for the
> next -rc?



More information about the linux-mtd mailing list