Re: [PATCH] drm/mediatek: add dsi module reset driver

From: kbuild test robot
Date: Sun May 19 2019 - 13:51:23 EST


Hi Jitao,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.1 next-20190517]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Jitao-Shi/drm-mediatek-add-dsi-module-reset-driver/20190519-214457
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

In file included from drivers/gpu//drm/mediatek/mtk_dsi.c:29:0:
drivers/gpu//drm/mediatek/mtk_dsi.c: In function 'mtk_dsi_reset_all':
>> drivers/gpu//drm/mediatek/mtk_dsi.c:250:27: warning: large integer implicitly truncated to unsigned type [-Woverflow]
MMSYS_SW_RST_DSI_B, ~MMSYS_SW_RST_DSI_B);
^
include/linux/regmap.h:77:42: note: in definition of macro 'regmap_update_bits'
regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
^~~

vim +250 drivers/gpu//drm/mediatek/mtk_dsi.c

246
247 static void mtk_dsi_reset_all(struct mtk_dsi *dsi)
248 {
249 regmap_update_bits(dsi->mmsys_sw_rst_b, dsi->sw_rst_b,
> 250 MMSYS_SW_RST_DSI_B, ~MMSYS_SW_RST_DSI_B);
251 usleep_range(1000, 1100);
252
253 regmap_update_bits(dsi->mmsys_sw_rst_b, dsi->sw_rst_b,
254 MMSYS_SW_RST_DSI_B, MMSYS_SW_RST_DSI_B);
255 }
256

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip