From nobody Sun Oct 5 16:15:46 2025 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 359CE20B1E8; Fri, 1 Aug 2025 08:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754036544; cv=none; b=IeNduAgeiRYaygnWMKkN88UFmztny8ELcVNPL9tZIb7CQiAwEMHRnuW5SM80vn9I5RpxogapnGDlLqhX9eyoXlwPtx+oRDOYzmUXEHtT38VZUlxvffV0G3wbyjCYlWwH6yGH5xP7PG0P5C2k+Ir5tg1v5jujzCY3D5bvREYpkss= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754036544; c=relaxed/simple; bh=pHwO2lQbomnHeulpznF5TDaTNdoAuuEEitIN2jfiTGY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kD5R0G9CZiLEkpFE/jrt8hkpYgt16FuhXGByFMC0HNjKMUszJsdbkOhwvktqDVzOt0YEtw5fgiTCv4pmNir8kYUMFKlIUsgt2iW1wX7NUEo4lsJTkW2iwtdZ+/rttqcqb9nfAQi8ec9INjC3ErUSiW0zHfxGTtsUXf5S1sjDxoc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 352F41F00050; Fri, 1 Aug 2025 08:22:18 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id BB13CB00FC8; Fri, 1 Aug 2025 08:22:17 +0000 (UTC) X-Spam-Level: * Received: from shepard (unknown [192.168.1.65]) by laika.paulk.fr (Postfix) with ESMTP id 71270B00FC9; Fri, 1 Aug 2025 08:21:51 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Jack Zhu , Changhuang Liang , Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , Paul Kocialkowski Subject: [PATCH] media: starfive: camss: Use common dma-contig dma addr helper Date: Fri, 1 Aug 2025 10:21:49 +0200 Message-ID: <20250801082149.591192-1-paulk@sys-base.io> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The vb2_plane_cookie helpers is not meant to be used directly by drivers using the generic dma-contig allocator. Use the common helper to retrieve the plane dma address instead. Signed-off-by: Paul Kocialkowski Reviewed-by: Laurent Pinchart --- drivers/staging/media/starfive/camss/stf-video.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/media/starfive/camss/stf-video.c b/drivers/sta= ging/media/starfive/camss/stf-video.c index a0420eb6a0aa..b0b9b70b9641 100644 --- a/drivers/staging/media/starfive/camss/stf-video.c +++ b/drivers/staging/media/starfive/camss/stf-video.c @@ -167,10 +167,8 @@ static int video_buf_init(struct vb2_buffer *vb) struct stfcamss_video *video =3D vb2_get_drv_priv(vb->vb2_queue); struct stfcamss_buffer *buffer =3D to_stfcamss_buffer(vbuf); const struct v4l2_pix_format *fmt =3D &video->active_fmt.fmt.pix; - dma_addr_t *paddr; =20 - paddr =3D vb2_plane_cookie(vb, 0); - buffer->addr[0] =3D *paddr; + buffer->addr[0] =3D vb2_dma_contig_plane_dma_addr(vb, 0); =20 if (fmt->pixelformat =3D=3D V4L2_PIX_FMT_NV12) buffer->addr[1] =3D --=20 2.50.1