[PATCH v4 03/11] mtd: intel-dg: implement region enumeration

Christophe JAILLET christophe.jaillet at wanadoo.fr
Thu Jan 2 10:37:43 UTC 2025


Le 01/01/2025 à 16:39, Alexander Usyskin a écrit :
> In intel-dg, there is no access to the spi controller,
> the information is extracted from the descriptor region.
> 
> CC: Lucas De Marchi <lucas.demarchi at intel.com>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Acked-by: Miquel Raynal <miquel.raynal at bootlin.com>
> Co-developed-by: Tomas Winkler <tomasw at gmail.com>
> Signed-off-by: Tomas Winkler <tomasw at gmail.com>
> Signed-off-by: Alexander Usyskin <alexander.usyskin at intel.com>

...

> @@ -89,6 +281,13 @@ static int intel_dg_mtd_probe(struct auxiliary_device *aux_dev,
>   		goto err;
>   	}
>   
> +	ret = intel_dg_nvm_init(nvm, device);
> +	if (ret < 0) {
> +		dev_err(device, "cannot initialize nvm\n");
> +		ret = -ENODEV;

Why setting to -ENODEV?

> +		goto err;
> +	}
> +
>   	dev_set_drvdata(&aux_dev->dev, nvm);
>   
>   	return 0;



More information about the Intel-gfx mailing list