From mboxrd@z Thu Jan 1 00:00:00 1970 From: sjg at google.com Date: Fri, 10 Jan 2020 03:57:50 -0500 Subject: [PATCH 04/19] x86: apl: Avoid accessing the PCI bus before it is probed In-Reply-To: <20191229211913.4.Ie6b0dc42cded91e6710d41548c1c26c2fee3bec9@changeid> References: <20191229211913.4.Ie6b0dc42cded91e6710d41548c1c26c2fee3bec9@changeid> <20191230041928.74874-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The PCI bus is not actually probed by the time the ofdata_to_platdata() method is called since that happens in the uclass's post_probe() method. Update the PMC and P2SB drivers to access the bus in its probe() method. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/p2sb.c | 20 ++++++++++++-------- arch/x86/cpu/apollolake/pmc.c | 20 +++++++++++++++++--- 2 files changed, 29 insertions(+), 11 deletions(-) Applied to u-boot-dm, thanks!