[U-Boot] [PATCH 08/11] dm: video: Don't do anything in alloc_fb() when plat->size is zero
Bin Meng
bmeng.cn at gmail.com
Wed Oct 12 05:09:50 CEST 2016
On Wed, Oct 12, 2016 at 8:06 AM, Simon Glass <sjg at chromium.org> wrote:
> On 9 October 2016 at 05:14, Bin Meng <bmeng.cn at gmail.com> wrote:
>> With DM VESA driver on x86 boards, plat->base/size/align are all
>> zeroes and starting address passed to alloc_fb() happens to be 1MB
>> aligned, so this routine does not trigger any issue. On QEMU with
>> U-Boot as coreboot payload, the starting address is within 1MB
>> range (eg: 0x7fb0000), thus causes failure in video_post_bind().
>>
>> Actually if plat->size is zero, it makes no sense to do anything
>> in this routine. Add such check there.
>>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>> ---
>>
>> drivers/video/video-uclass.c | 3 +++
>> 1 file changed, 3 insertions(+)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
applied to u-boot-x86, thanks!
More information about the U-Boot
mailing list