]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: omap2: gpmc-nand: Print something useful on CS request failure
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 12 Feb 2013 19:22:20 +0000 (16:22 -0300)
committerJon Hunter <jon-hunter@ti.com>
Mon, 1 Apr 2013 19:53:37 +0000 (14:53 -0500)
If CS request fails the current error message is rather unhelpful.
Fix it by printing the failing chip select and the error code.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
arch/arm/mach-omap2/gpmc-nand.c

index afc1e8c32d6ccf8ced2372f6131300a8407ed1d7..e50e438b64aabd435962d479d39f0a2686a49139 100644 (file)
@@ -122,7 +122,8 @@ int gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data,
        err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE,
                                (unsigned long *)&gpmc_nand_resource[0].start);
        if (err < 0) {
-               dev_err(dev, "Cannot request GPMC CS\n");
+               dev_err(dev, "Cannot request GPMC CS %d, error %d\n",
+                       gpmc_nand_data->cs, err);
                return err;
        }