Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 6829/1: amba: make hardcoded periphid override hardware

This makes a hardcoded periphid from the platform override any
magic number found in the hardware. This shall henceforth be used
when the information found in the hardware is either missing,
i.e. not encoding the CID with the magic cookie 0xb105f00d, or
incorrect such that the revision number should have been bumped in
hardware, but the silicon designer has failed to do so.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Linus Walleij and committed by
Russell King
97ceed1f e536fbe1

+5
+5
drivers/amba/bus.c
··· 603 603 if (ret) 604 604 goto err_out; 605 605 606 + /* Hard-coded primecell ID instead of plug-n-play */ 607 + if (dev->periphid != 0) 608 + goto skip_probe; 609 + 606 610 /* 607 611 * Dynamically calculate the size of the resource 608 612 * and use this for iomap ··· 647 643 if (ret) 648 644 goto err_release; 649 645 646 + skip_probe: 650 647 ret = device_add(&dev->dev); 651 648 if (ret) 652 649 goto err_release;