From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 11 Jun 2018 08:53:56 -0600 Subject: [U-Boot] [PATCH 06/18] dm: pci: Make ranges dt property optional In-Reply-To: <1528637118-32739-7-git-send-email-bmeng.cn@gmail.com> References: <1528637118-32739-1-git-send-email-bmeng.cn@gmail.com> <1528637118-32739-7-git-send-email-bmeng.cn@gmail.com> 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 On 10 June 2018 at 05:25, Bin Meng wrote: > From: Christian Gmeiner > > If we use U-Boot as coreboot payload with a generic dts without > any ranges specified we fail in pci pre_probe and our pci bus > is not usable. > > So convert decode_regions(..) into a void function and do the simple > error handling there. > > Signed-off-by: Christian Gmeiner > Reviewed-by: Bin Meng > [bmeng: fixed 'u-boot' in the commit message and checkpatch warning] > Signed-off-by: Bin Meng > > --- > > drivers/pci/pci-uclass.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) Reviewed-by: Simon Glass