X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors
@ 2025-08-13 19:13 Wolfram Sang
  2025-08-15 15:50 ` Yen-Chi Huang
  2025-08-28 12:08 ` Ilpo Järvinen
  0 siblings, 2 replies; 5+ messages in thread
From: Wolfram Sang @ 2025-08-13 19:13 UTC (permalink / raw)
  To: platform-driver-x86
  Cc: Wolfram Sang, Yen-Chi Huang, Hans de Goede, Ilpo Järvinen

The watchdog core will handle error messages already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Change since v1: simplified more into a single return statement

 drivers/platform/x86/portwell-ec.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/platform/x86/portwell-ec.c b/drivers/platform/x86/portwell-ec.c
index 322f296e9315..b603e68c82e9 100644
--- a/drivers/platform/x86/portwell-ec.c
+++ b/drivers/platform/x86/portwell-ec.c
@@ -237,13 +237,7 @@ static int pwec_probe(struct platform_device *pdev)
 	}
 
 	ec_wdt_dev.parent = &pdev->dev;
-	ret = devm_watchdog_register_device(&pdev->dev, &ec_wdt_dev);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "failed to register Portwell EC Watchdog\n");
-		return ret;
-	}
-
-	return 0;
+	return devm_watchdog_register_device(&pdev->dev, &ec_wdt_dev);
 }
 
 static struct platform_driver pwec_driver = {
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors
  2025-08-13 19:13 [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors Wolfram Sang
@ 2025-08-15 15:50 ` Yen-Chi Huang
  2025-08-18 11:50   ` Ilpo Järvinen
  2025-08-28 12:08 ` Ilpo Järvinen
  1 sibling, 1 reply; 5+ messages in thread
From: Yen-Chi Huang @ 2025-08-15 15:50 UTC (permalink / raw)
  To: Wolfram Sang, platform-driver-x86; +Cc: Hans de Goede, Ilpo Järvinen

Hi Wolfram,

Thanks for your cleanup.

Yen-Chi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors
  2025-08-15 15:50 ` Yen-Chi Huang
@ 2025-08-18 11:50   ` Ilpo Järvinen
  2025-08-20 11:01     ` Yen-Chi Huang
  0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2025-08-18 11:50 UTC (permalink / raw)
  To: Yen-Chi Huang; +Cc: Wolfram Sang, platform-driver-x86, Hans de Goede

On Fri, 15 Aug 2025, Yen-Chi Huang wrote:

> Hi Wolfram,
> 
> Thanks for your cleanup.
> 
> Yen-Chi

Hi Yen-Chi,

Since you're relatively new you might not know this:

The usual custom is to include your Reviewed-by tag into the reply if you 
think the patch is fine and useful. That being said, it is not mandatory 
to provide tag for anything nor should it be used as a rubber stamp for 
everything, there could well be patches which need more work or should be 
rejected, obviously don't give your tag for those (but reply with your 
concerns instead if that's the case).

The Reviewed-by tags will be recorded into the commits and it's also a 
way to credit the reviewers for their work.

-- 
 i.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors
  2025-08-18 11:50   ` Ilpo Järvinen
@ 2025-08-20 11:01     ` Yen-Chi Huang
  0 siblings, 0 replies; 5+ messages in thread
From: Yen-Chi Huang @ 2025-08-20 11:01 UTC (permalink / raw)
  To: Ilpo Järvinen; +Cc: Wolfram Sang, platform-driver-x86, Hans de Goede

Hi Ilpo,

When I replied earlier, I thought Wolfram's change was correct, but I had
not yet built and run the patch on hardware, so I did not provide any tags
at that time. Thanks for the clarification about the convention; I'll keep
that in mind for future reviews.

I have now built and tested this patch on NANO-6064, and it works fine.

Thanks Wolfram for the fix.

Reviewed-by: Yen-Chi Huang <jesse.huang@portwell.com.tw>
Tested-by: Yen-Chi Huang <jesse.huang@portwell.com.tw>

Best,
Yen-Chi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors
  2025-08-13 19:13 [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors Wolfram Sang
  2025-08-15 15:50 ` Yen-Chi Huang
@ 2025-08-28 12:08 ` Ilpo Järvinen
  1 sibling, 0 replies; 5+ messages in thread
From: Ilpo Järvinen @ 2025-08-28 12:08 UTC (permalink / raw)
  To: platform-driver-x86, Wolfram Sang; +Cc: Yen-Chi Huang, Hans de Goede

On Wed, 13 Aug 2025 21:13:44 +0200, Wolfram Sang wrote:

> The watchdog core will handle error messages already.
> 
> 


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: portwell-ec: don't print superfluous errors
      commit: ba9eddc43f2f05a99d3f7535c9367845aca35904

--
 i.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-28 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 19:13 [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors Wolfram Sang
2025-08-15 15:50 ` Yen-Chi Huang
2025-08-18 11:50   ` Ilpo Järvinen
2025-08-20 11:01     ` Yen-Chi Huang
2025-08-28 12:08 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox