]> git.hungrycats.org Git - linux/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>
Thu, 30 May 2024 07:49:38 +0000 (09:49 +0200)
commit5379d2a100d8bd173c98ca6a7ae661dd3e8276d5
tree373e41d9cb808a54649d2779d37d3c52d668ff70
parente51e7096fd4e24a0c9de175a44875d46fa72eaff
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.c