* HTC Dream: dream is better name for this machine
@ 2009-12-06 20:50 Pavel Machek
2009-12-06 20:55 ` Pavel Machek
2009-12-06 23:27 ` Brian Swetland
0 siblings, 2 replies; 4+ messages in thread
From: Pavel Machek @ 2009-12-06 20:50 UTC (permalink / raw)
To: linux-arm-kernel
While few people may know HTC Dream by its codename, it is better to
use name of released hardware in the sources.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/arch/arm/mach-msm/board-dream.c b/arch/arm/mach-msm/board-dream.c
index a0877a3..d3f37fa 100644
--- a/arch/arm/mach-msm/board-dream.c
+++ b/arch/arm/mach-msm/board-dream.c
@@ -12,16 +12,17 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
+ * This machine is also known by its codename, "trout".
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/setup.h>
#include <mach/board.h>
#include <mach/hardware.h>
@@ -40,12 +43,12 @@ static struct platform_device *devices[] __initdata = {
extern struct sys_timer msm_timer;
-static void __init trout_init_irq(void)
+static void __init dream_init_irq(void)
{
msm_init_irq();
}
-static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
+static void __init dream_fixup(struct machine_desc *desc, struct tag *tags,
char **cmdline, struct meminfo *mi)
{
mi->nr_banks=1;
@@ -54,12 +57,12 @@ static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
mi->bank[0].size = (101*1024*1024);
}
-static void __init trout_init(void)
+static void __init dream_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
}
-static struct map_desc trout_io_desc[] __initdata = {
+static struct map_desc dream_io_desc[] __initdata = {
{
.virtual = TROUT_CPLD_BASE,
.pfn = __phys_to_pfn(TROUT_CPLD_START),
@@ -68,10 +95,10 @@ static struct map_desc trout_io_desc[] __initdata = {
}
};
-static void __init trout_map_io(void)
+static void __init dream_map_io(void)
{
msm_map_common_io();
- iotable_init(trout_io_desc, ARRAY_SIZE(trout_io_desc));
+ iotable_init(dream_io_desc, ARRAY_SIZE(dream_io_desc));
#ifdef CONFIG_MSM_DEBUG_UART3
/* route UART3 to the "H2W" extended usb connector */
@@ -82,14 +109,14 @@ static void __init trout_map_io(void)
}
MACHINE_START(TROUT, "HTC Dream")
#ifdef CONFIG_MSM_DEBUG_UART
.phys_io = MSM_DEBUG_UART_PHYS,
.io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
#endif
.boot_params = 0x10000100,
- .fixup = trout_fixup,
- .map_io = trout_map_io,
- .init_irq = trout_init_irq,
- .init_machine = trout_init,
+ .fixup = dream_fixup,
+ .map_io = dream_map_io,
+ .init_irq = dream_init_irq,
+ .init_machine = dream_init,
.timer = &msm_timer,
MACHINE_END
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* HTC Dream: dream is better name for this machine
2009-12-06 20:50 HTC Dream: dream is better name for this machine Pavel Machek
@ 2009-12-06 20:55 ` Pavel Machek
2009-12-06 23:27 ` Brian Swetland
1 sibling, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2009-12-06 20:55 UTC (permalink / raw)
To: linux-arm-kernel
[Sorry, previous patch will not apply; I messed the trees. This one
should work.]
---
While few people may know HTC Dream by its codename, it is better to
use name of released hardware in the sources.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/arch/arm/mach-msm/board-dream.c b/arch/arm/mach-msm/board-dream.c
index 21afa85..d238e2c 100644
--- a/arch/arm/mach-msm/board-dream.c
+++ b/arch/arm/mach-msm/board-dream.c
@@ -12,6 +12,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
+ * This machine is also known by its codename, "trout".
*/
#include <linux/kernel.h>
@@ -40,12 +41,12 @@ static struct platform_device *devices[] __initdata = {
extern struct sys_timer msm_timer;
-static void __init trout_init_irq(void)
+static void __init dream_init_irq(void)
{
msm_init_irq();
}
-static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
+static void __init dream_fixup(struct machine_desc *desc, struct tag *tags,
char **cmdline, struct meminfo *mi)
{
mi->nr_banks = 1;
@@ -54,12 +55,12 @@ static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
mi->bank[0].size = (101*1024*1024);
}
-static void __init trout_init(void)
+static void __init dream_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
}
-static struct map_desc trout_io_desc[] __initdata = {
+static struct map_desc dream_io_desc[] __initdata = {
{
.virtual = TROUT_CPLD_BASE,
.pfn = __phys_to_pfn(TROUT_CPLD_START),
@@ -68,10 +69,10 @@ static struct map_desc trout_io_desc[] __initdata = {
}
};
-static void __init trout_map_io(void)
+static void __init dream_map_io(void)
{
msm_map_common_io();
- iotable_init(trout_io_desc, ARRAY_SIZE(trout_io_desc));
+ iotable_init(dream_io_desc, ARRAY_SIZE(dream_io_desc));
#ifdef CONFIG_MSM_DEBUG_UART3
/* route UART3 to the "H2W" extended usb connector */
@@ -85,9 +86,9 @@ MACHINE_START(TROUT, "HTC Dream")
.phys_io = MSM_DEBUG_UART_PHYS,
.io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
.boot_params = 0x10000100,
- .fixup = trout_fixup,
- .map_io = trout_map_io,
- .init_irq = trout_init_irq,
- .init_machine = trout_init,
+ .fixup = dream_fixup,
+ .map_io = dream_map_io,
+ .init_irq = dream_init_irq,
+ .init_machine = dream_init,
.timer = &msm_timer,
MACHINE_END
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* HTC Dream: dream is better name for this machine
2009-12-06 20:50 HTC Dream: dream is better name for this machine Pavel Machek
2009-12-06 20:55 ` Pavel Machek
@ 2009-12-06 23:27 ` Brian Swetland
2009-12-07 10:07 ` Pavel Machek
1 sibling, 1 reply; 4+ messages in thread
From: Brian Swetland @ 2009-12-06 23:27 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Dec 6, 2009 at 12:50 PM, Pavel Machek <pavel@ucw.cz> wrote:
>
> While few people may know HTC Dream by its codename, it is better to
> use name of released hardware in the sources.
I still think that it'd be less pain for everyone to leave it as
trout. If you go by sales volume, the most known released hardware
name is "Tmobile G1", some people know it as ADP1, and I believe it
has sold under a few other names in other markets, but the software
has, since day one, been trout and changing that just makes it harder
to merge other existing changes where we'd have to deal with renames
as well. The bootloader identifies it as "trout", and the userspace
software stack's hardware-specific bits refer to trout.
If it really drives everyone crazy, we could do a big rename once it's
all in and working, but right now I just don't see the benefit.
Brian
^ permalink raw reply [flat|nested] 4+ messages in thread
* HTC Dream: dream is better name for this machine
2009-12-06 23:27 ` Brian Swetland
@ 2009-12-07 10:07 ` Pavel Machek
0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2009-12-07 10:07 UTC (permalink / raw)
To: linux-arm-kernel
On Sun 2009-12-06 15:27:38, Brian Swetland wrote:
> On Sun, Dec 6, 2009 at 12:50 PM, Pavel Machek <pavel@ucw.cz> wrote:
> >
> > While few people may know HTC Dream by its codename, it is better to
> > use name of released hardware in the sources.
>
> I still think that it'd be less pain for everyone to leave it as
> trout. If you go by sales volume, the most known released hardware
> name is "Tmobile G1", some people know it as ADP1, and I believe it
> has sold under a few other names in other markets, but the software
Yes, operators brand their handsets. Unfortunately g1/adp1 names suck
-- for being alphabet soups -- and HTC Dream *is* name of the
hardware.
http://en.wikipedia.org/wiki/HTC_Dream
(and it is certainly better name than trout).
> has, since day one, been trout and changing that just makes it harder
> to merge other existing changes where we'd have to deal with renames
> as well. The bootloader identifies it as "trout", and the userspace
> software stack's hardware-specific bits refer to trout.
Well, the longer we wait, the harder it will be to change the nema...
> If it really drives everyone crazy, we could do a big rename once it's
> all in and working, but right now I just don't see the benefit.
It is normally better to change such stuff before merging to
mainline. Splitting/cleaning patches is generally enough work that
little renaming should not be huge problem.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-07 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06 20:50 HTC Dream: dream is better name for this machine Pavel Machek
2009-12-06 20:55 ` Pavel Machek
2009-12-06 23:27 ` Brian Swetland
2009-12-07 10:07 ` Pavel Machek
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).