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

From: Boris Brezillon
Date: Mon Oct 21 2024 - 10:08:08 EST


On Tue, 15 Oct 2024 00:31:38 +0100
Adrián Larumbe <adrian.larumbe@xxxxxxxxxxxxx> 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;