* [PATCH] ARM: amba: Link fb device to its parent
@ 2011-06-20 20:44 Loïc Minier
2011-06-24 8:07 ` Paul Mundt
0 siblings, 1 reply; 5+ messages in thread
From: Loïc Minier @ 2011-06-20 20:44 UTC (permalink / raw)
To: linux-arm-kernel
Some pieces of userspace like debian-installer expect to find the fb0
driver name by readlink-ing /sys/class/graphics/fb0/device/driver but
this was broken with amba-clcd as it sets up fb_info manually and missed
the .device parent pointer.
Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>
---
drivers/video/amba-clcd.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c
index 5fc983c..cf03ad0 100644
--- a/drivers/video/amba-clcd.c
+++ b/drivers/video/amba-clcd.c
@@ -447,6 +447,8 @@ static int clcdfb_register(struct clcd_fb *fb)
goto out;
}
+ fb->fb.device = &fb->dev->dev;
+
fb->fb.fix.mmio_start = fb->dev->res.start;
fb->fb.fix.mmio_len = resource_size(&fb->dev->res);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: amba: Link fb device to its parent
2011-06-20 20:44 [PATCH] ARM: amba: Link fb device to its parent Loïc Minier
@ 2011-06-24 8:07 ` Paul Mundt
2011-06-24 9:01 ` Russell King - ARM Linux
2011-06-24 13:57 ` Nicolas Pitre
0 siblings, 2 replies; 5+ messages in thread
From: Paul Mundt @ 2011-06-24 8:07 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jun 20, 2011 at 10:44:17PM +0200, Lo??c Minier wrote:
> Some pieces of userspace like debian-installer expect to find the fb0
> driver name by readlink-ing /sys/class/graphics/fb0/device/driver but
> this was broken with amba-clcd as it sets up fb_info manually and missed
> the .device parent pointer.
>
> Signed-off-by: Lo??c Minier <loic.minier@linaro.org>
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: Paul Mundt <lethal@linux-sh.org>
> ---
> drivers/video/amba-clcd.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
While this is titled as an ARM patch it's certainly fbdev-specific. I'll
apply it barring any objections from Russell.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: amba: Link fb device to its parent
2011-06-24 8:07 ` Paul Mundt
@ 2011-06-24 9:01 ` Russell King - ARM Linux
2011-06-24 13:57 ` Nicolas Pitre
1 sibling, 0 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2011-06-24 9:01 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jun 24, 2011 at 05:07:21PM +0900, Paul Mundt wrote:
> On Mon, Jun 20, 2011 at 10:44:17PM +0200, Lo??c Minier wrote:
> > Some pieces of userspace like debian-installer expect to find the fb0
> > driver name by readlink-ing /sys/class/graphics/fb0/device/driver but
> > this was broken with amba-clcd as it sets up fb_info manually and missed
> > the .device parent pointer.
> >
> > Signed-off-by: Lo??c Minier <loic.minier@linaro.org>
> > Cc: Russell King <linux@arm.linux.org.uk>
> > Cc: Paul Mundt <lethal@linux-sh.org>
> > ---
> > drivers/video/amba-clcd.c | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> While this is titled as an ARM patch it's certainly fbdev-specific. I'll
> apply it barring any objections from Russell.
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: amba: Link fb device to its parent
2011-06-24 8:07 ` Paul Mundt
2011-06-24 9:01 ` Russell King - ARM Linux
@ 2011-06-24 13:57 ` Nicolas Pitre
2011-06-26 16:20 ` Paul Mundt
1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Pitre @ 2011-06-24 13:57 UTC (permalink / raw)
To: linux-arm-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1000 bytes --]
On Fri, 24 Jun 2011, Paul Mundt wrote:
> On Mon, Jun 20, 2011 at 10:44:17PM +0200, Lo??c Minier wrote:
> > Some pieces of userspace like debian-installer expect to find the fb0
> > driver name by readlink-ing /sys/class/graphics/fb0/device/driver but
> > this was broken with amba-clcd as it sets up fb_info manually and missed
> > the .device parent pointer.
> >
> > Signed-off-by: Lo??c Minier <loic.minier@linaro.org>
> > Cc: Russell King <linux@arm.linux.org.uk>
> > Cc: Paul Mundt <lethal@linux-sh.org>
> > ---
> > drivers/video/amba-clcd.c | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> While this is titled as an ARM patch it's certainly fbdev-specific. I'll
> apply it barring any objections from Russell.
BTW this should be "Loïc Minier" not "Lo??c Minier" The original email
was fine with proper UTF-8 in that regard. Maybe you should have a look
at your MUA config so the resulting patch log going into git is not
dammaged.
Nicolas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: amba: Link fb device to its parent
2011-06-24 13:57 ` Nicolas Pitre
@ 2011-06-26 16:20 ` Paul Mundt
0 siblings, 0 replies; 5+ messages in thread
From: Paul Mundt @ 2011-06-26 16:20 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jun 24, 2011 at 09:57:06AM -0400, Nicolas Pitre wrote:
> On Fri, 24 Jun 2011, Paul Mundt wrote:
>
> > On Mon, Jun 20, 2011 at 10:44:17PM +0200, Lo??c Minier wrote:
> > > Some pieces of userspace like debian-installer expect to find the fb0
> > > driver name by readlink-ing /sys/class/graphics/fb0/device/driver but
> > > this was broken with amba-clcd as it sets up fb_info manually and missed
> > > the .device parent pointer.
> > >
> > > Signed-off-by: Lo??c Minier <loic.minier@linaro.org>
> > > Cc: Russell King <linux@arm.linux.org.uk>
> > > Cc: Paul Mundt <lethal@linux-sh.org>
> > > ---
> > > drivers/video/amba-clcd.c | 2 ++
> > > 1 files changed, 2 insertions(+), 0 deletions(-)
> > >
> > While this is titled as an ARM patch it's certainly fbdev-specific. I'll
> > apply it barring any objections from Russell.
>
> BTW this should be "Lo?c Minier" not "Lo??c Minier" The original email
> was fine with proper UTF-8 in that regard. Maybe you should have a look
> at your MUA config so the resulting patch log going into git is not
> dammaged.
>
My MUA ignores UTF-8 intentionally, but this has no bearing on the status
in my git tree.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-26 16:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 20:44 [PATCH] ARM: amba: Link fb device to its parent Loïc Minier
2011-06-24 8:07 ` Paul Mundt
2011-06-24 9:01 ` Russell King - ARM Linux
2011-06-24 13:57 ` Nicolas Pitre
2011-06-26 16:20 ` Paul Mundt
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).