From 6dbd844d0fdae259bfb2475ffe2e1c6a98676fa8 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 3 Jan 2011 18:33:56 -0300 Subject: [PATCH] f32x: open /dev/mem with O_SYNC to disable caching - f32x/gpio-s3c24xx.c (gpio_init), f32x/gpio-xburst.c (gpio_init): open /dev/mem with O_SYNC to disable caching --- f32x/gpio-s3c24xx.c | 6 +++--- f32x/gpio-xburst.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/f32x/gpio-s3c24xx.c b/f32x/gpio-s3c24xx.c index b58ed86..34cce5e 100644 --- a/f32x/gpio-s3c24xx.c +++ b/f32x/gpio-s3c24xx.c @@ -1,8 +1,8 @@ /* * f32x/gpio-s3c24xx.c - Really primitive S3C244x GPIO access. Ports B-H only. * - * Written 2008 by Werner Almesberger - * Copyright 2008 Werner Almesberger + * Written 2008, 2011 by Werner Almesberger + * Copyright 2008, 2011 Werner Almesberger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ void gpio_init(void) { int fd; - fd = open("/dev/mem", O_RDWR); + fd = open("/dev/mem", O_RDWR | O_SYNC); if (fd < 0) { perror("/dev/mem"); exit(1); diff --git a/f32x/gpio-xburst.c b/f32x/gpio-xburst.c index 0b0e12e..dbec481 100644 --- a/f32x/gpio-xburst.c +++ b/f32x/gpio-xburst.c @@ -1,8 +1,8 @@ /* * f32x/gpio-xburst.c - Really primitive XBurst GPIO access * - * Written 2010 by Werner Almesberger - * Copyright 2010 Werner Almesberger + * Written 2010-2011 by Werner Almesberger + * Copyright 2010-2011 Werner Almesberger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ void gpio_init(void) { int fd; - fd = open("/dev/mem", O_RDWR); + fd = open("/dev/mem", O_RDWR | O_SYNC); if (fd < 0) { perror("/dev/mem"); exit(1);