diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2017-04-28 14:46:02 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-05 09:01:49 +0200 |
commit | 6fc580129f577ea59f837d62d8d764939ab04e08 (patch) | |
tree | d762422e59d7b958a5d39b415bea6d6103e28683 | |
parent | 49c2421feecf7402f69f4d0ea82004c0c5ee1746 (diff) | |
download | barebox-6fc580129f577ea59f837d62d8d764939ab04e08.tar.gz barebox-6fc580129f577ea59f837d62d8d764939ab04e08.tar.xz |
arm: mach-omap: Change file flags in emmc handler
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@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-omap/am33xx_bbu_emmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/am33xx_bbu_emmc.c b/arch/arm/mach-omap/am33xx_bbu_emmc.c index 3220575cd4..d3adb3744c 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()); |