[PATCH 3/9] drm/panfrost: handle error when allocating AS number

Boris Brezillon boris.brezillon at collabora.com
Mon Oct 21 14:07:56 UTC 2024


On Tue, 15 Oct 2024 00:31:38 +0100
Adrián Larumbe <adrian.larumbe at collabora.com> wrote:

> -u32 panfrost_mmu_as_get(struct panfrost_device *pfdev, struct panfrost_mmu *mmu)
> +int panfrost_mmu_as_get(struct panfrost_device *pfdev, struct panfrost_mmu *mmu, u32 *asi)

Or, we return an int that encodes the AS id when >= 0, and the error
code when < 0.

>  {
>  	int as;


More information about the dri-devel mailing list