[U-Boot] [PATCH v2 02/11] x86: quark: Avoid chicken and egg problem

Simon Glass sjg at chromium.org
Wed Sep 2 16:05:19 CEST 2015


On 2 September 2015 at 03:17, Bin Meng <bmeng.cn at gmail.com> wrote:
> If we convert to use driver model pci on quark, we will encounter
> some chicken and egg problems like below:
>
> - To enable PCIe root ports, we need program some registers on the
>   message bus via pci bus. With driver model, the first time to
>   access pci bus, the pci enumeration process will be triggered.
>   But without first enabling PCIe root ports, pci enumeration
>   just hangs when scanning PCIe root ports.
> - Similar situation happens when trying to access GPIO from the
>   PCIe enabling codes, as GPIO requires its block base address
>   to be assigned via a pci configuration register in the bridge.
>
> To avoid such dilemma, replace all pci calls in the quark codes
> to use the local version which does not go through driver model.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>
> ---
>
> Changes in v2:
> - New patch to avoid chicken and egg problem
>
>  arch/x86/cpu/quark/quark.c | 30 +++++++++++++++---------------
>  1 file changed, 15 insertions(+), 15 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list