[PATCH 1/7] arm: mach-omap: Change file flags in emmc handler
Sascha Hauer
s.hauer at pengutronix.de
Fri May 5 00:03:36 PDT 2017
On Fri, Apr 28, 2017 at 02:46:02PM +0200, Daniel Schultz wrote:
> This handler tries to read from a file descriptor with 'write only'
> flags and fails. Add read permissions for the file, so the handler can
> read the partition layout.
>
> Signed-off-by: Daniel Schultz <d.schultz at phytec.de>
Applied this one and 2/7 for now.
Sascha
> ---
> arch/arm/mach-omap/am33xx_bbu_emmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap/am33xx_bbu_emmc.c b/arch/arm/mach-omap/am33xx_bbu_emmc.c
> index 3220575..d3adb37 100644
> --- a/arch/arm/mach-omap/am33xx_bbu_emmc.c
> +++ b/arch/arm/mach-omap/am33xx_bbu_emmc.c
> @@ -39,7 +39,7 @@ static int emmc_mlo_handler(struct bbu_handler *handler, struct bbu_data *data)
> if (ret != 0)
> return ret;
>
> - fd = open(handler->devicefile, O_WRONLY);
> + fd = open(handler->devicefile, O_RDWR);
> if (fd < 0) {
> pr_err("could not open %s: %s\n", handler->devicefile,
> errno_str());
> --
> 1.9.1
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list