Re: [PATCH v5 01/11] platform/raspberrypi: vchiq-mmal: Reset buffers_with_vpu on port_enable
From: Florian Fainelli
Date: Fri Nov 13 2026 - 22:28:33 EST
On 11/12/2026 3:17 AM, Jai Luthra wrote:
From: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>
Should we go through the timeout failure case with port_disable
not returning all buffers for whatever reason, the
buffers_with_vpu counter gets left at a non-zero value, which
will cause reference counting issues should the instance be
reused.
Reset the count when the port is enabled again, but before
any buffers have been sent to the VPU.
Fixes: 70ec64ccdaac ("staging: bcm2835-camera: Ensure all buffers are returned on disable")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>
Signed-off-by: Jai Luthra <jai.luthra@xxxxxxxxxxxxxxxx>
---
Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!
--
Florian