[U-Boot] [PATCH 10/14] pci: Fix pci_field_width() for 32-bit values

Bin Meng bmeng.cn at gmail.com
Fri Nov 13 08:11:16 CET 2015


Hi Simon,

On Fri, Nov 13, 2015 at 5:45 AM, Simon Glass <sjg at chromium.org> wrote:
> This should return 8, not 32. Fix it.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>

This patch should be squashed into the patch#4 where this bug was
introduced in the first place.

>  common/cmd_pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/cmd_pci.c b/common/cmd_pci.c
> index 306e734..747d6b9 100644
> --- a/common/cmd_pci.c
> +++ b/common/cmd_pci.c
> @@ -36,7 +36,7 @@ static int pci_field_width(enum pci_size_t size)
>                 return 4;
>         case PCI_SIZE_32:
>         default:
> -               return 32;
> +               return 8;
>         }
>  }
>
> --

Regards,
Bin


More information about the U-Boot mailing list