From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Subject: Re: [PATCH V2 2/5] spi: fspi: dynamically alloc AHB memory Date: Sun, 2 Feb 2020 13:39:41 -0300 Message-ID: References: <20200202125950.1825013-1-aford173@gmail.com> <20200202125950.1825013-2-aford173@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: linux-spi , Han Xu , Yogesh Gaur , Ashish Kumar , Mark Brown , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" To: Adam Ford Return-path: In-Reply-To: <20200202125950.1825013-2-aford173-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-spi.vger.kernel.org On Sun, Feb 2, 2020 at 10:00 AM Adam Ford wrote: > > From: Han Xu > > Apply patch from NXP upstream repo to > dynamically allocate AHB memory as needed. The commit log could be improved here. What is the motivation for doing this? > + if (!f->ahb_addr) { > + dev_err(f->dev, "failed to alloc memory\n"); There is no need for this error message as the MM core will take care of it.