diff --git a/README.md b/README.md index b865d7bea8095..18d7e1c1695cd 100644 --- a/README.md +++ b/README.md @@ -1,56 +1,2 @@ - -Kernel 4.16 with patchwork from mediatek for BPI-R2 - -## Requirements - -Need cross compile tools for the armhf architecture and additional bison and flex-package: -```sh -sudo apt-get install gcc-arm-linux-gnueabihf libc6-armhf-cross u-boot-tools bc make gcc libc6-dev libncurses5-dev libssl-dev bison flex -``` - -## Usage - - ./build.sh importconfig - ./build.sh config - ./build.sh - -## Branch details - -Kernel upstream branch are: - * 4.16, 4.14, 4.9 - -Kernel upstream + BPI-R2 -* 4.16_main, 4.14_main, 4.9_main - -## Kernel version - -Kernel breakdown features by version - -| | 4.4 | 4.9 | 4.14 | 4.16| -|----------| --- | --- | --- | ---| -| PCIe | Y | Y | Y | Y | Y | -| SATA | Y | Y | Y | Y | Y | -| 2 GMAC | Y | Y | N | N | N | -| DSA | N | Y | Y | Y | Y | -| VLAN | | | | | | -| HW NAT | | Y | Y | | | -| HW QOS | | Y | Y | | | -| Crypto | Y | Y | Y | Y | Y | -| WIFI | | | | | | -| BT | | | | | | -| VIDEO | Y | N | N | N | N | -| AUDIO | Y | N | N | N | N | - -## Links - -* BPI-R2: http://www.banana-pi.org/r2.html -* Kernel: https://www.kernel.org/ -* linux-mediatek: https://patchwork.kernel.org/project/linux-mediatek/list/ -* kernelci: https://kernelci.org/boot/mt7623n-bananapi-bpi-r2/ - -License ----- - -GPL-2.0 - -**Free Software, Hell Yeah!** +Kernel 4.16 from mediatek for BPI-R2 +Please refer to [README.md](https://github.com/frank-w/BPI-R2-4.14/blob/4.14-main/README.md) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index c58b39f55374b..2e3c98022e231 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -728,7 +728,7 @@ static int mtk_dpi_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct mtk_dpi *dpi; struct resource *mem; - struct device_node *ep, *bridge_node; + struct device_node *ep, *bridge_node = NULL; int comp_id; const struct of_device_id *match; int ret; diff --git a/drivers/gpu/drm/mediatek/mtk_drm_fbdev.c b/drivers/gpu/drm/mediatek/mtk_drm_fbdev.c index 2bff6bc1c7b71..da038fccfb0b9 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_fbdev.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_fbdev.c @@ -78,17 +78,17 @@ static int mtk_fbdev_probe(struct drm_fb_helper *helper, info = drm_fb_helper_alloc_fbi(helper); if (IS_ERR(info)) { + err = PTR_ERR(info); DRM_DEV_ERROR(dev->dev, "failed to allocate framebuffer info, %d\n", err); - err = PTR_ERR(info); goto out; } fb = mtk_drm_framebuffer_create(dev, &mode, private->fbdev_bo); if (IS_ERR(fb)) { + err = PTR_ERR(fb); DRM_DEV_ERROR(dev->dev, "failed to allocate DRM framebuffer, %d\n", err); - err = PTR_ERR(fb); goto out; } helper->fb = fb;