All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Wang Qing <wangqing@vivo.com>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	linux-watchdog@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Wang Qing <wangqing@vivo.com>
Subject: Re: [PATCH V5] watchdog: mtk: support dual mode when the bark irq is available
Date: Wed, 21 Apr 2021 20:45:15 +0800	[thread overview]
Message-ID: <202104212029.VKA6lt7t-lkp@intel.com> (raw)
In-Reply-To: <1618992304-18903-1-git-send-email-wangqing@vivo.com>

[-- Attachment #1: Type: text/plain, Size: 4564 bytes --]

Hi Wang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on soc/for-next linus/master v5.12-rc8 next-20210420]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: mips-randconfig-r031-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/bb28c4d8391120b54c691e2407dae46761ef69af
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
        git checkout bb28c4d8391120b54c691e2407dae46761ef69af
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/watchdog/mtk_wdt.c:327:16: warning: missing terminating '"' character [-Winvalid-pp-token]
           dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
                         ^
>> drivers/watchdog/mtk_wdt.c:327:16: error: expected expression
   drivers/watchdog/mtk_wdt.c:328:19: warning: missing terminating '"' character [-Winvalid-pp-token]
                    dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
                                   ^
   2 warnings and 1 error generated.


vim +327 drivers/watchdog/mtk_wdt.c

   276	
   277	static int mtk_wdt_probe(struct platform_device *pdev)
   278	{
   279		struct device *dev = &pdev->dev;
   280		struct mtk_wdt_dev *mtk_wdt;
   281		const struct mtk_wdt_data *wdt_data;
   282		int err, irq;
   283	
   284		mtk_wdt = devm_kzalloc(dev, sizeof(*mtk_wdt), GFP_KERNEL);
   285		if (!mtk_wdt)
   286			return -ENOMEM;
   287	
   288		platform_set_drvdata(pdev, mtk_wdt);
   289	
   290		mtk_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(mtk_wdt->wdt_base))
   292			return PTR_ERR(mtk_wdt->wdt_base);
   293	
   294		if (dual_mode) {
   295			irq = platform_get_irq(pdev, 0);
   296			if (irq > 0) {
   297				err = devm_request_irq(&pdev->dev, irq, mtk_wdt_isr, 0, "wdt_bark",
   298							&mtk_wdt->wdt_dev);
   299				if (err)
   300					return err;
   301			} else {
   302				dual_mode = 0;
   303				dev_info(&pdev->dev, "couldn't get wdt irq, set dual_mode = 0\n");
   304			}
   305		}
   306	
   307		mtk_wdt->wdt_dev.info = &mtk_wdt_info;
   308		mtk_wdt->wdt_dev.ops = &mtk_wdt_ops;
   309		mtk_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT;
   310		mtk_wdt->wdt_dev.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT * 1000;
   311		mtk_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT;
   312		mtk_wdt->wdt_dev.parent = dev;
   313	
   314		watchdog_init_timeout(&mtk_wdt->wdt_dev, timeout, dev);
   315		watchdog_set_nowayout(&mtk_wdt->wdt_dev, nowayout);
   316		watchdog_set_restart_priority(&mtk_wdt->wdt_dev, 128);
   317	
   318		watchdog_set_drvdata(&mtk_wdt->wdt_dev, mtk_wdt);
   319	
   320		mtk_wdt_init(&mtk_wdt->wdt_dev);
   321	
   322		watchdog_stop_on_reboot(&mtk_wdt->wdt_dev);
   323		err = devm_watchdog_register_device(dev, &mtk_wdt->wdt_dev);
   324		if (unlikely(err))
   325			return err;
   326	
 > 327		dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
   328			 dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
   329	
   330		wdt_data = of_device_get_match_data(dev);
   331		if (wdt_data) {
   332			err = toprgu_register_reset_controller(pdev,
   333							       wdt_data->toprgu_sw_rst_num);
   334			if (err)
   335				return err;
   336		}
   337		return 0;
   338	}
   339	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39092 bytes --]

[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Wang Qing <wangqing@vivo.com>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	linux-watchdog@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Wang Qing <wangqing@vivo.com>
Subject: Re: [PATCH V5] watchdog: mtk: support dual mode when the bark irq is available
Date: Wed, 21 Apr 2021 20:45:15 +0800	[thread overview]
Message-ID: <202104212029.VKA6lt7t-lkp@intel.com> (raw)
In-Reply-To: <1618992304-18903-1-git-send-email-wangqing@vivo.com>

[-- Attachment #1: Type: text/plain, Size: 4564 bytes --]

Hi Wang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on soc/for-next linus/master v5.12-rc8 next-20210420]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: mips-randconfig-r031-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/bb28c4d8391120b54c691e2407dae46761ef69af
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
        git checkout bb28c4d8391120b54c691e2407dae46761ef69af
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/watchdog/mtk_wdt.c:327:16: warning: missing terminating '"' character [-Winvalid-pp-token]
           dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
                         ^
>> drivers/watchdog/mtk_wdt.c:327:16: error: expected expression
   drivers/watchdog/mtk_wdt.c:328:19: warning: missing terminating '"' character [-Winvalid-pp-token]
                    dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
                                   ^
   2 warnings and 1 error generated.


vim +327 drivers/watchdog/mtk_wdt.c

   276	
   277	static int mtk_wdt_probe(struct platform_device *pdev)
   278	{
   279		struct device *dev = &pdev->dev;
   280		struct mtk_wdt_dev *mtk_wdt;
   281		const struct mtk_wdt_data *wdt_data;
   282		int err, irq;
   283	
   284		mtk_wdt = devm_kzalloc(dev, sizeof(*mtk_wdt), GFP_KERNEL);
   285		if (!mtk_wdt)
   286			return -ENOMEM;
   287	
   288		platform_set_drvdata(pdev, mtk_wdt);
   289	
   290		mtk_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(mtk_wdt->wdt_base))
   292			return PTR_ERR(mtk_wdt->wdt_base);
   293	
   294		if (dual_mode) {
   295			irq = platform_get_irq(pdev, 0);
   296			if (irq > 0) {
   297				err = devm_request_irq(&pdev->dev, irq, mtk_wdt_isr, 0, "wdt_bark",
   298							&mtk_wdt->wdt_dev);
   299				if (err)
   300					return err;
   301			} else {
   302				dual_mode = 0;
   303				dev_info(&pdev->dev, "couldn't get wdt irq, set dual_mode = 0\n");
   304			}
   305		}
   306	
   307		mtk_wdt->wdt_dev.info = &mtk_wdt_info;
   308		mtk_wdt->wdt_dev.ops = &mtk_wdt_ops;
   309		mtk_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT;
   310		mtk_wdt->wdt_dev.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT * 1000;
   311		mtk_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT;
   312		mtk_wdt->wdt_dev.parent = dev;
   313	
   314		watchdog_init_timeout(&mtk_wdt->wdt_dev, timeout, dev);
   315		watchdog_set_nowayout(&mtk_wdt->wdt_dev, nowayout);
   316		watchdog_set_restart_priority(&mtk_wdt->wdt_dev, 128);
   317	
   318		watchdog_set_drvdata(&mtk_wdt->wdt_dev, mtk_wdt);
   319	
   320		mtk_wdt_init(&mtk_wdt->wdt_dev);
   321	
   322		watchdog_stop_on_reboot(&mtk_wdt->wdt_dev);
   323		err = devm_watchdog_register_device(dev, &mtk_wdt->wdt_dev);
   324		if (unlikely(err))
   325			return err;
   326	
 > 327		dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
   328			 dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
   329	
   330		wdt_data = of_device_get_match_data(dev);
   331		if (wdt_data) {
   332			err = toprgu_register_reset_controller(pdev,
   333							       wdt_data->toprgu_sw_rst_num);
   334			if (err)
   335				return err;
   336		}
   337		return 0;
   338	}
   339	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39092 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Wang Qing <wangqing@vivo.com>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	linux-watchdog@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Wang Qing <wangqing@vivo.com>
Subject: Re: [PATCH V5] watchdog: mtk: support dual mode when the bark irq is available
Date: Wed, 21 Apr 2021 20:45:15 +0800	[thread overview]
Message-ID: <202104212029.VKA6lt7t-lkp@intel.com> (raw)
In-Reply-To: <1618992304-18903-1-git-send-email-wangqing@vivo.com>

[-- Attachment #1: Type: text/plain, Size: 4564 bytes --]

Hi Wang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on soc/for-next linus/master v5.12-rc8 next-20210420]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: mips-randconfig-r031-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/bb28c4d8391120b54c691e2407dae46761ef69af
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
        git checkout bb28c4d8391120b54c691e2407dae46761ef69af
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/watchdog/mtk_wdt.c:327:16: warning: missing terminating '"' character [-Winvalid-pp-token]
           dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
                         ^
>> drivers/watchdog/mtk_wdt.c:327:16: error: expected expression
   drivers/watchdog/mtk_wdt.c:328:19: warning: missing terminating '"' character [-Winvalid-pp-token]
                    dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
                                   ^
   2 warnings and 1 error generated.


vim +327 drivers/watchdog/mtk_wdt.c

   276	
   277	static int mtk_wdt_probe(struct platform_device *pdev)
   278	{
   279		struct device *dev = &pdev->dev;
   280		struct mtk_wdt_dev *mtk_wdt;
   281		const struct mtk_wdt_data *wdt_data;
   282		int err, irq;
   283	
   284		mtk_wdt = devm_kzalloc(dev, sizeof(*mtk_wdt), GFP_KERNEL);
   285		if (!mtk_wdt)
   286			return -ENOMEM;
   287	
   288		platform_set_drvdata(pdev, mtk_wdt);
   289	
   290		mtk_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(mtk_wdt->wdt_base))
   292			return PTR_ERR(mtk_wdt->wdt_base);
   293	
   294		if (dual_mode) {
   295			irq = platform_get_irq(pdev, 0);
   296			if (irq > 0) {
   297				err = devm_request_irq(&pdev->dev, irq, mtk_wdt_isr, 0, "wdt_bark",
   298							&mtk_wdt->wdt_dev);
   299				if (err)
   300					return err;
   301			} else {
   302				dual_mode = 0;
   303				dev_info(&pdev->dev, "couldn't get wdt irq, set dual_mode = 0\n");
   304			}
   305		}
   306	
   307		mtk_wdt->wdt_dev.info = &mtk_wdt_info;
   308		mtk_wdt->wdt_dev.ops = &mtk_wdt_ops;
   309		mtk_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT;
   310		mtk_wdt->wdt_dev.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT * 1000;
   311		mtk_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT;
   312		mtk_wdt->wdt_dev.parent = dev;
   313	
   314		watchdog_init_timeout(&mtk_wdt->wdt_dev, timeout, dev);
   315		watchdog_set_nowayout(&mtk_wdt->wdt_dev, nowayout);
   316		watchdog_set_restart_priority(&mtk_wdt->wdt_dev, 128);
   317	
   318		watchdog_set_drvdata(&mtk_wdt->wdt_dev, mtk_wdt);
   319	
   320		mtk_wdt_init(&mtk_wdt->wdt_dev);
   321	
   322		watchdog_stop_on_reboot(&mtk_wdt->wdt_dev);
   323		err = devm_watchdog_register_device(dev, &mtk_wdt->wdt_dev);
   324		if (unlikely(err))
   325			return err;
   326	
 > 327		dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
   328			 dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
   329	
   330		wdt_data = of_device_get_match_data(dev);
   331		if (wdt_data) {
   332			err = toprgu_register_reset_controller(pdev,
   333							       wdt_data->toprgu_sw_rst_num);
   334			if (err)
   335				return err;
   336		}
   337		return 0;
   338	}
   339	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39092 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH V5] watchdog: mtk: support dual mode when the bark irq is available
Date: Wed, 21 Apr 2021 20:45:15 +0800	[thread overview]
Message-ID: <202104212029.VKA6lt7t-lkp@intel.com> (raw)
In-Reply-To: <1618992304-18903-1-git-send-email-wangqing@vivo.com>

[-- Attachment #1: Type: text/plain, Size: 4677 bytes --]

Hi Wang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on soc/for-next linus/master v5.12-rc8 next-20210420]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: mips-randconfig-r031-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/bb28c4d8391120b54c691e2407dae46761ef69af
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Wang-Qing/watchdog-mtk-support-dual-mode-when-the-bark-irq-is-available/20210421-160730
        git checkout bb28c4d8391120b54c691e2407dae46761ef69af
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/watchdog/mtk_wdt.c:327:16: warning: missing terminating '"' character [-Winvalid-pp-token]
           dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
                         ^
>> drivers/watchdog/mtk_wdt.c:327:16: error: expected expression
   drivers/watchdog/mtk_wdt.c:328:19: warning: missing terminating '"' character [-Winvalid-pp-token]
                    dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
                                   ^
   2 warnings and 1 error generated.


vim +327 drivers/watchdog/mtk_wdt.c

   276	
   277	static int mtk_wdt_probe(struct platform_device *pdev)
   278	{
   279		struct device *dev = &pdev->dev;
   280		struct mtk_wdt_dev *mtk_wdt;
   281		const struct mtk_wdt_data *wdt_data;
   282		int err, irq;
   283	
   284		mtk_wdt = devm_kzalloc(dev, sizeof(*mtk_wdt), GFP_KERNEL);
   285		if (!mtk_wdt)
   286			return -ENOMEM;
   287	
   288		platform_set_drvdata(pdev, mtk_wdt);
   289	
   290		mtk_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(mtk_wdt->wdt_base))
   292			return PTR_ERR(mtk_wdt->wdt_base);
   293	
   294		if (dual_mode) {
   295			irq = platform_get_irq(pdev, 0);
   296			if (irq > 0) {
   297				err = devm_request_irq(&pdev->dev, irq, mtk_wdt_isr, 0, "wdt_bark",
   298							&mtk_wdt->wdt_dev);
   299				if (err)
   300					return err;
   301			} else {
   302				dual_mode = 0;
   303				dev_info(&pdev->dev, "couldn't get wdt irq, set dual_mode = 0\n");
   304			}
   305		}
   306	
   307		mtk_wdt->wdt_dev.info = &mtk_wdt_info;
   308		mtk_wdt->wdt_dev.ops = &mtk_wdt_ops;
   309		mtk_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT;
   310		mtk_wdt->wdt_dev.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT * 1000;
   311		mtk_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT;
   312		mtk_wdt->wdt_dev.parent = dev;
   313	
   314		watchdog_init_timeout(&mtk_wdt->wdt_dev, timeout, dev);
   315		watchdog_set_nowayout(&mtk_wdt->wdt_dev, nowayout);
   316		watchdog_set_restart_priority(&mtk_wdt->wdt_dev, 128);
   317	
   318		watchdog_set_drvdata(&mtk_wdt->wdt_dev, mtk_wdt);
   319	
   320		mtk_wdt_init(&mtk_wdt->wdt_dev);
   321	
   322		watchdog_stop_on_reboot(&mtk_wdt->wdt_dev);
   323		err = devm_watchdog_register_device(dev, &mtk_wdt->wdt_dev);
   324		if (unlikely(err))
   325			return err;
   326	
 > 327		dev_info(dev, "Watchdog enabled (timeout=%d sec, nowayout=%d,
   328			 dual_mode=%d)\n", mtk_wdt->wdt_dev.timeout, nowayout, dual_mode);
   329	
   330		wdt_data = of_device_get_match_data(dev);
   331		if (wdt_data) {
   332			err = toprgu_register_reset_controller(pdev,
   333							       wdt_data->toprgu_sw_rst_num);
   334			if (err)
   335				return err;
   336		}
   337		return 0;
   338	}
   339	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39092 bytes --]

  reply	other threads:[~2021-04-21 12:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21  8:05 [PATCH V5] watchdog: mtk: support dual mode when the bark irq is available Wang Qing
2021-04-21  8:05 ` Wang Qing
2021-04-21  8:05 ` Wang Qing
2021-04-21 12:45 ` kernel test robot [this message]
2021-04-21 12:45   ` kernel test robot
2021-04-21 12:45   ` kernel test robot
2021-04-21 12:45   ` kernel test robot
2021-04-21 12:45 ` kernel test robot
2021-04-21 12:45   ` kernel test robot
2021-04-21 12:45   ` kernel test robot
2021-04-21 12:45   ` kernel test robot
2021-04-21 14:11 ` Guenter Roeck
2021-04-21 14:11   ` Guenter Roeck
2021-04-21 14:11   ` Guenter Roeck
2021-04-21 15:04 ` kernel test robot
2021-04-21 15:04   ` kernel test robot
2021-04-21 15:04   ` kernel test robot
2021-04-21 15:04   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104212029.VKA6lt7t-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=matthias.bgg@gmail.com \
    --cc=wangqing@vivo.com \
    --cc=wim@linux-watchdog.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.