archive mirror
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <>
	Thomas Gleixner <>,
	"Ahmed S. Darwish" <>,
	Sebastian Andrzej Siewior <>
Subject: [PATCH 2/2] video: omapfb: Remove WARN_ON(in_interrupt()).
Date: Wed, 27 Jan 2021 18:29:02 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

From: "Ahmed S. Darwish" <>

dsi_sync_vc() uses in_interrupt() to create a warning if the function is
used in non-preemptible context.

The usage of in_interrupt() in drivers is phased out and Linus clearly
requested that code which changes behaviour depending on context should
either be separated or the context be conveyed in an argument passed by the
caller, which usually knows the context.

The wait_for_completion() function (used in dsi_sync_vc_vp() and
dsi_sync_vc_l4() has already a check if it is invoked from proper

Remove WARN_ON(in_interrupt()) from the driver.

Signed-off-by: Ahmed S. Darwish <>
Signed-off-by: Sebastian Andrzej Siewior <>
 drivers/video/fbdev/omap2/omapfb/dss/dsi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dsi.c b/drivers/video/fbdev/omap2/omapfb/dss/dsi.c
index dc34bb04b865c..df90091de75f8 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dsi.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dsi.c
@@ -2373,8 +2373,6 @@ static int dsi_sync_vc(struct platform_device *dsidev, int channel)
-	WARN_ON(in_interrupt());
 	if (!dsi_vc_is_enabled(dsidev, channel))
 		return 0;

      parent reply	other threads:[~2021-01-27 17:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27 17:29 [PATCH 0/2] video: omap*: Remove in_interrupt() usage Sebastian Andrzej Siewior
2021-01-27 17:29 ` [PATCH 1/2] video: omap: " Sebastian Andrzej Siewior
2021-01-27 17:29 ` Sebastian Andrzej Siewior [this message]

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:

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

  git send-email \ \ \ \ \ \ \ \

* 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).