From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Ford Subject: Re: [PATCH V2 2/5] spi: fspi: dynamically alloc AHB memory Date: Mon, 3 Feb 2020 04:53:34 -0600 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: Fabio Estevam Return-path: In-Reply-To: Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Sun, Feb 2, 2020 at 10:39 AM Fabio Estevam wrote: > > 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? My motivation is to get the flexspi on the i.MX8MM to work, and I did a list of the patches applied on the NXP branch to see what was applied on top of their 4.19 kernel and this patch series generated from that list. Most of the NXP commits are one-line commits, and I don't know the motivation for what's happening. NXP did it, and I know it works on the Flexspi driver. Maybe Han Xu can comment, since it's really his patch. adam > > > + 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.