public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: sm750fb: improve error handling in de_wait path
@ 2026-04-09 14:41 Hungyu Lin
  2026-04-09 14:41 ` [PATCH 1/2] staging: sm750fb: return -ETIMEDOUT on timeout in de_wait functions Hungyu Lin
  2026-04-09 14:41 ` [PATCH 2/2] staging: sm750fb: propagate error codes from de_wait() Hungyu Lin
  0 siblings, 2 replies; 6+ messages in thread
From: Hungyu Lin @ 2026-04-09 14:41 UTC (permalink / raw)
  To: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman
  Cc: linux-fbdev, linux-staging, linux-kernel, Hungyu Lin

This series improves error handling in the sm750fb driver.

The de_wait() helpers currently return -1 on timeout and callers
discard error codes by always returning -1. This series replaces
-1 with -ETIMEDOUT and propagates the error code to improve
error reporting.

Patch 1 replaces -1 with -ETIMEDOUT in de_wait() helpers.
Patch 2 propagates error codes in callers instead of returning -1.

Hungyu Lin (2):
  staging: sm750fb: return -ETIMEDOUT on timeout in de_wait functions
  staging: sm750fb: propagate error codes from de_wait()

 drivers/staging/sm750fb/sm750_accel.c | 22 ++++++++++++----------
 drivers/staging/sm750fb/sm750_hw.c    |  4 ++--
 2 files changed, 14 insertions(+), 12 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-04-09 15:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-09 14:41 [PATCH 0/2] staging: sm750fb: improve error handling in de_wait path Hungyu Lin
2026-04-09 14:41 ` [PATCH 1/2] staging: sm750fb: return -ETIMEDOUT on timeout in de_wait functions Hungyu Lin
2026-04-09 14:41 ` [PATCH 2/2] staging: sm750fb: propagate error codes from de_wait() Hungyu Lin
2026-04-09 15:05   ` Greg Kroah-Hartman
2026-04-09 15:15     ` Denny Lin
2026-04-09 15:22       ` Greg Kroah-Hartman

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