* [PATCH 1/2] arm: omap2: mux: fix debugfs file permission
@ 2013-02-19 10:24 Felipe Balbi
2013-02-19 10:24 ` [PATCH 2/2] arm: omap2: voltage: remove unnecessary header Felipe Balbi
2013-03-04 19:18 ` [PATCH 1/2] arm: omap2: mux: fix debugfs file permission Tony Lindgren
0 siblings, 2 replies; 4+ messages in thread
From: Felipe Balbi @ 2013-02-19 10:24 UTC (permalink / raw)
To: linux-arm-kernel
OMAP's debugfs interface creates one file
for each signal in the mux table, such file
provides a read method but didn't provide
read permission. Fix it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
---
arch/arm/mach-omap2/mux.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 6a217c9..03fa4f4 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -739,8 +739,9 @@ static void __init omap_mux_dbg_create_entry(
list_for_each_entry(e, &partition->muxmodes, node) {
struct omap_mux *m = &e->mux;
- (void)debugfs_create_file(m->muxnames[0], S_IWUSR, mux_dbg_dir,
- m, &omap_mux_dbg_signal_fops);
+ (void)debugfs_create_file(m->muxnames[0], S_IWUSR | S_IRUGO,
+ mux_dbg_dir, m,
+ &omap_mux_dbg_signal_fops);
}
}
--
1.8.1.rc1.5.g7e0651a
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] arm: omap2: voltage: remove unnecessary header
2013-02-19 10:24 [PATCH 1/2] arm: omap2: mux: fix debugfs file permission Felipe Balbi
@ 2013-02-19 10:24 ` Felipe Balbi
2013-03-04 19:18 ` [PATCH 1/2] arm: omap2: mux: fix debugfs file permission Tony Lindgren
1 sibling, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2013-02-19 10:24 UTC (permalink / raw)
To: linux-arm-kernel
nothing from <linux/debugfs.h> is used on
voltage.c.
Signed-off-by: Felipe Balbi <balbi@ti.com>
---
arch/arm/mach-omap2/voltage.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c
index 3ac8fe1..595bf1a 100644
--- a/arch/arm/mach-omap2/voltage.c
+++ b/arch/arm/mach-omap2/voltage.c
@@ -23,7 +23,6 @@
#include <linux/io.h>
#include <linux/err.h>
#include <linux/export.h>
-#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/clk.h>
--
1.8.1.rc1.5.g7e0651a
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm: omap2: mux: fix debugfs file permission
2013-02-19 10:24 [PATCH 1/2] arm: omap2: mux: fix debugfs file permission Felipe Balbi
2013-02-19 10:24 ` [PATCH 2/2] arm: omap2: voltage: remove unnecessary header Felipe Balbi
@ 2013-03-04 19:18 ` Tony Lindgren
2013-03-04 20:19 ` Felipe Balbi
1 sibling, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2013-03-04 19:18 UTC (permalink / raw)
To: linux-arm-kernel
* Felipe Balbi <balbi@ti.com> [130219 02:28]:
> OMAP's debugfs interface creates one file
> for each signal in the mux table, such file
> provides a read method but didn't provide
> read permission. Fix it.
>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
Heh indeed, although read still seems to work without it.
Applying into omap-for-v3.9/fixes.
Regards,
Tony
> ---
> arch/arm/mach-omap2/mux.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
> index 6a217c9..03fa4f4 100644
> --- a/arch/arm/mach-omap2/mux.c
> +++ b/arch/arm/mach-omap2/mux.c
> @@ -739,8 +739,9 @@ static void __init omap_mux_dbg_create_entry(
> list_for_each_entry(e, &partition->muxmodes, node) {
> struct omap_mux *m = &e->mux;
>
> - (void)debugfs_create_file(m->muxnames[0], S_IWUSR, mux_dbg_dir,
> - m, &omap_mux_dbg_signal_fops);
> + (void)debugfs_create_file(m->muxnames[0], S_IWUSR | S_IRUGO,
> + mux_dbg_dir, m,
> + &omap_mux_dbg_signal_fops);
> }
> }
>
> --
> 1.8.1.rc1.5.g7e0651a
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-04 20:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-19 10:24 [PATCH 1/2] arm: omap2: mux: fix debugfs file permission Felipe Balbi
2013-02-19 10:24 ` [PATCH 2/2] arm: omap2: voltage: remove unnecessary header Felipe Balbi
2013-03-04 19:18 ` [PATCH 1/2] arm: omap2: mux: fix debugfs file permission Tony Lindgren
2013-03-04 20:19 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).