<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/raspberrypi/pisp_be/Kconfig, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-07-03T07:25:01Z</updated>
<entry>
<title>media: pisp_be: Fix pm_runtime underrun in probe</title>
<updated>2025-07-03T07:25:01Z</updated>
<author>
<name>Jacopo Mondi</name>
</author>
<published>2024-08-26T13:30:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e9bb2eacc7222ff8210903eb3b7d56709cc53228'/>
<id>urn:sha1:e9bb2eacc7222ff8210903eb3b7d56709cc53228</id>
<content type='text'>
During the probe() routine, the PiSP BE driver needs to power up the
interface in order to identify and initialize the hardware.

The driver resumes the interface by calling the
pispbe_runtime_resume() function directly, without going
through the pm_runtime helpers, but later suspends it by calling
pm_runtime_put_autosuspend().

This causes a PM usage count imbalance at probe time, notified by the
runtime_pm framework with the below message in the system log:

 pispbe 1000880000.pisp_be: Runtime PM usage count underflow!

Fix this by resuming the interface using the pm runtime helpers instead
of calling the resume function directly and use the pm_runtime framework
in the probe() error path. While at it, remove manual suspend of the
interface in the remove() function. The driver cannot be unloaded if in
use, so simply disable runtime pm.

To simplify the implementation, make the driver depend on PM as the
RPI5 platform where the ISP is integrated in uses the PM framework by
default.

Fixes: 12187bd5d4f8 ("media: raspberrypi: Add support for PiSP BE")
Cc: stable@vger.kernel.org
Tested-by: Naushir Patuck &lt;naush@raspberrypi.com&gt;
Reviewed-by: Naushir Patuck &lt;naush@raspberrypi.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Jacopo Mondi &lt;jacopo.mondi@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: raspberrypi: VIDEO_RASPBERRYPI_PISP_BE should depend on ARCH_BCM2835</title>
<updated>2024-08-09T05:56:38Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2024-07-22T15:28:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8ad75010c5bafe014860f33fc73a887ab561209'/>
<id>urn:sha1:c8ad75010c5bafe014860f33fc73a887ab561209</id>
<content type='text'>
Currently, the Raspberry Pi PiSP Backend (BE) ISP is only present on the
Broadcom BCM2712-based Raspberry Pi 5.  Hence add a dependency on
ARCH_BCM2835, to prevent asking the user about this driver when
configuring a kernel without Broadcom BCM2835 family support.  The
dependency can be relaxed if/when the encoder appears on other SoC
families.

Fixes: 12187bd5d4f8 ("media: raspberrypi: Add support for PiSP BE")
Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Acked-by: FLorian Fainelli &lt;florian.fainelli@broadcom.com&gt;
Acked-by: Jacopo Mondi &lt;jacopo.mondi@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: raspberrypi: Add support for PiSP BE</title>
<updated>2024-06-27T11:06:47Z</updated>
<author>
<name>Naushir Patuck</name>
</author>
<published>2024-06-26T18:14:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12187bd5d4f8c128c9deca1b7f95fde78eecf99b'/>
<id>urn:sha1:12187bd5d4f8c128c9deca1b7f95fde78eecf99b</id>
<content type='text'>
Add support for the Raspberry Pi PiSP Back End.

The driver has been upported from the Raspberry Pi kernel at revision
f74893f8a0c2 ("drivers: media: pisp_be: Update seqeuence numbers of the
buffers").

The ISP documentation is available at:
https://datasheets.raspberrypi.com/camera/raspberry-pi-image-signal-processor-specification.pdf

Signed-off-by: David Plowman &lt;david.plowman@raspberrypi.com&gt;
Signed-off-by: Naushir Patuck &lt;naush@raspberrypi.com&gt;
Signed-off-by: Nick Hollinghurst &lt;nick.hollinghurst@raspberrypi.org&gt;
Signed-off-by: Jacopo Mondi &lt;jacopo.mondi@ideasonboard.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
[hverkuil: drop dev_err after platform_get_irq to fix a coccinelle check]
</content>
</entry>
</feed>
