From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pratyush Yadav Date: Tue, 19 Jan 2021 17:42:11 +0530 Subject: [PATCH 1/2] spi: nxp_fspi: Fix error reporting In-Reply-To: <20210118213250.727994-1-aford173@gmail.com> References: <20210118213250.727994-1-aford173@gmail.com> Message-ID: <20210119121209.dev4t2ci55lu2d5c@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18/01/21 03:32PM, Adam Ford wrote: > On the i.MX8M Mini, ret = clk_set_rate() sets ret to the value of the > rate the clock was able to set. When checking for errors, it only > checks that it is not NULL. Since positive numbers are not errors, > only check for negative numbers when handling errors. > > Fixes: 383fded70c4f ("spi: nxp_fspi: new driver for the FlexSPI controller") > Signed-off-by: Adam Ford Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments India