]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ipu3-cio2: Request IRQ earlier
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 20 Dec 2022 14:01:20 +0000 (16:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:29 +0000 (13:39 +0200)
commitda8608cf2e5b7a13d9ddf834c00bb54f34c8418f
tree621a7690520dbb163da7f41bd76afd67901ce901
parent04e8b87339d0ccdb42dbc4f34814624126778920
media: ipu3-cio2: Request IRQ earlier

[ Upstream commit a069f79bfa6ec1ea0744981ea8425c8a25322579 ]

Call devm_request_irq() before registering the async notifier, as otherwise
it would be possible to use the device before the interrupts could be
delivered to the driver.

Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2-main.c