[U-Boot] [PATCH] mx6: Fix imx6_is_bmode_from_gpr9 always returns 0

Fabio Estevam festevam at gmail.com
Thu Nov 9 00:42:31 UTC 2017


Hi Jeroen,

On Wed, Nov 8, 2017 at 3:01 PM, Jeroen Vollenbrock <jeroen at athom.nl> wrote:
> Due to the cast to u8, this function always returned 0.
>
> CC: Stefano Babic <sbabic at denx.de>
>
> ---
>  arch/arm/include/asm/mach-imx/sys_proto.h |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h
> index 970c4ca..0447eef 100644
> --- a/arch/arm/include/asm/mach-imx/sys_proto.h
> +++ b/arch/arm/include/asm/mach-imx/sys_proto.h
> @@ -86,7 +86,8 @@ enum imx6_bmode {
>
>  static inline u8 imx6_is_bmode_from_gpr9(void)

Maybe make it 'static inline bool' instead?

Regards,

Fabio Estevam


More information about the U-Boot mailing list