[U-Boot] [PATCH V2 3/4] ARM: mx6: Add PCI express driver

Marek Vasut marex at denx.de
Sat Dec 14 06:33:00 CET 2013


On Saturday, December 14, 2013 at 06:23:30 AM, Jagan Teki wrote:
[...]
> > +/*
> > + * Replace the original ARM DABT handler with a simple jump-back one.
> > + *
> > + * The problem here is that if we have a PCIe bridge attached to this
> > PCIe + * controller, but no PCIe device is connected to the bridges'
> > downstream + * port, the attempt to read/write from/to the config space
> > will produce + * a DABT. This is a behavior of the controller and can
> > not be disabled + * unfortuatelly.
> > + *
> > + * To work around the problem, we backup the current DABT handler
> > address + * and replace it with our own DABT handler, which only bounces
> > right back + * into the code.
> > + */
> > +static void imx_pcie_fix_dabt_handler(bool set)
> > +{
> > +       extern uint32_t *_data_abort;
> 
> Not a good idea to use extern in .c - any comments?

Why is half of the CC dropped from this email? (restored by hand)

As for the extern, there is no better way to replace the DABT handler (see patch 
0001) for this purpose . This will be changed later though, once Alberts' 
patches land , but that's a post-2014.01 matter.

Best regards,
Marek Vasut


More information about the U-Boot mailing list