mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM at91sam9260ek: remove unused reset entry
@ 2012-10-08 11:02 Sascha Hauer
  2012-10-08 12:15 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2012-10-08 11:02 UTC (permalink / raw)
  To: barebox

The at91sam9260ek has a custom reset function which does the same thing
as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
as it should do. Remove the function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/boards/at91sam9260ek/Makefile        |    1 -
 arch/arm/boards/at91sam9260ek/lowlevel_init.S |   25 -------------------------
 2 files changed, 26 deletions(-)
 delete mode 100644 arch/arm/boards/at91sam9260ek/lowlevel_init.S

diff --git a/arch/arm/boards/at91sam9260ek/Makefile b/arch/arm/boards/at91sam9260ek/Makefile
index 73ef72e..eb072c0 100644
--- a/arch/arm/boards/at91sam9260ek/Makefile
+++ b/arch/arm/boards/at91sam9260ek/Makefile
@@ -1,2 +1 @@
-obj-y += lowlevel_init.o
 obj-y += init.o
diff --git a/arch/arm/boards/at91sam9260ek/lowlevel_init.S b/arch/arm/boards/at91sam9260ek/lowlevel_init.S
deleted file mode 100644
index 0438921..0000000
--- a/arch/arm/boards/at91sam9260ek/lowlevel_init.S
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Board specific setup info
- *
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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 the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- */
-
-#include <asm/barebox-arm-head.h>
-
-.globl reset
-reset:
-	common_reset r0
-	b board_init_lowlevel_return
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM at91sam9260ek: remove unused reset entry
  2012-10-08 11:02 [PATCH] ARM at91sam9260ek: remove unused reset entry Sascha Hauer
@ 2012-10-08 12:15 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-10-08 12:24   ` Antony Pavlov
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-08 12:15 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 13:02 Mon 08 Oct     , Sascha Hauer wrote:
> The at91sam9260ek has a custom reset function which does the same thing
> as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
> as it should do. Remove the function.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

btw we should rename the command reset reboot because it start to be confusing

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM at91sam9260ek: remove unused reset entry
  2012-10-08 12:15 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-08 12:24   ` Antony Pavlov
  2012-10-10  8:46     ` Sascha Hauer
  0 siblings, 1 reply; 7+ messages in thread
From: Antony Pavlov @ 2012-10-08 12:24 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On 8 October 2012 16:15, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com> wrote:
> On 13:02 Mon 08 Oct     , Sascha Hauer wrote:
>> The at91sam9260ek has a custom reset function which does the same thing
>> as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
>> as it should do. Remove the function.
>>
>> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
>> ---
> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>
> btw we should rename the command reset reboot because it start to be confusing

IMHO it is a very good idea!

-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM at91sam9260ek: remove unused reset entry
  2012-10-08 12:24   ` Antony Pavlov
@ 2012-10-10  8:46     ` Sascha Hauer
  2012-10-10  9:39       ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2012-10-10  8:46 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Mon, Oct 08, 2012 at 04:24:18PM +0400, Antony Pavlov wrote:
> On 8 October 2012 16:15, Jean-Christophe PLAGNIOL-VILLARD
> <plagnioj@jcrosoft.com> wrote:
> > On 13:02 Mon 08 Oct     , Sascha Hauer wrote:
> >> The at91sam9260ek has a custom reset function which does the same thing
> >> as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
> >> as it should do. Remove the function.
> >>
> >> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> >> ---
> > Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> >
> > btw we should rename the command reset reboot because it start to be confusing
> 
> IMHO it is a very good idea!

I would rather use a different name for the reset functions which are in
the startup code. In the end the reset command just resets the board.
'reboot' sounds like something is being shutdown before restarting a
board.

Changing a command is quite painful since all environment scripts will
be broken. I don't think reset is used in the environment, but the
API change to the mount command always nags me when using a new barebox
which has an older environment in flash. I think we really have to be
more careful when changing commands.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM at91sam9260ek: remove unused reset entry
  2012-10-10  8:46     ` Sascha Hauer
@ 2012-10-10  9:39       ` Jean-Christophe PLAGNIOL-VILLARD
  2012-10-10  9:47         ` Sascha Hauer
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-10  9:39 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 10:46 Wed 10 Oct     , Sascha Hauer wrote:
> On Mon, Oct 08, 2012 at 04:24:18PM +0400, Antony Pavlov wrote:
> > On 8 October 2012 16:15, Jean-Christophe PLAGNIOL-VILLARD
> > <plagnioj@jcrosoft.com> wrote:
> > > On 13:02 Mon 08 Oct     , Sascha Hauer wrote:
> > >> The at91sam9260ek has a custom reset function which does the same thing
> > >> as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
> > >> as it should do. Remove the function.
> > >>
> > >> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > >> ---
> > > Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > >
> > > btw we should rename the command reset reboot because it start to be confusing
> > 
> > IMHO it is a very good idea!
> 
> I would rather use a different name for the reset functions which are in
> the startup code. In the end the reset command just resets the board.
> 'reboot' sounds like something is being shutdown before restarting a
> board.
> 
> Changing a command is quite painful since all environment scripts will
> be broken. I don't think reset is used in the environment, but the
> API change to the mount command always nags me when using a new barebox
> which has an older environment in flash. I think we really have to be
> more careful when changing commands.
reset means reset the screen in linux

and I check nearly no one use reset in the env
execpt sam9g45 and defaultenv2

when I ask to do not update the var to pass the arch number on arm you give
the invert comment env evolve and we do not want to loose tis freedom

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM at91sam9260ek: remove unused reset entry
  2012-10-10  9:39       ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-10  9:47         ` Sascha Hauer
  2012-10-10 10:53           ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2012-10-10  9:47 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Wed, Oct 10, 2012 at 11:39:21AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 10:46 Wed 10 Oct     , Sascha Hauer wrote:
> > On Mon, Oct 08, 2012 at 04:24:18PM +0400, Antony Pavlov wrote:
> > > On 8 October 2012 16:15, Jean-Christophe PLAGNIOL-VILLARD
> > > <plagnioj@jcrosoft.com> wrote:
> > > > On 13:02 Mon 08 Oct     , Sascha Hauer wrote:
> > > >> The at91sam9260ek has a custom reset function which does the same thing
> > > >> as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
> > > >> as it should do. Remove the function.
> > > >>
> > > >> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > > >> ---
> > > > Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > > >
> > > > btw we should rename the command reset reboot because it start to be confusing
> > > 
> > > IMHO it is a very good idea!
> > 
> > I would rather use a different name for the reset functions which are in
> > the startup code. In the end the reset command just resets the board.
> > 'reboot' sounds like something is being shutdown before restarting a
> > board.
> > 
> > Changing a command is quite painful since all environment scripts will
> > be broken. I don't think reset is used in the environment, but the
> > API change to the mount command always nags me when using a new barebox
> > which has an older environment in flash. I think we really have to be
> > more careful when changing commands.
> reset means reset the screen in linux
> 
> and I check nearly no one use reset in the env
> execpt sam9g45 and defaultenv2
> 
> when I ask to do not update the var to pass the arch number on arm you give
> the invert comment env evolve and we do not want to loose tis freedom

You are right, but still we have a problem in this area and I wanted to
mention it. One way out could for example be that we introduce some
version counter which we increase when incompatible changes occur. Then
we could fall back to the default env. I haven't thought that to an end
though.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM at91sam9260ek: remove unused reset entry
  2012-10-10  9:47         ` Sascha Hauer
@ 2012-10-10 10:53           ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-10 10:53 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 11:47 Wed 10 Oct     , Sascha Hauer wrote:
> On Wed, Oct 10, 2012 at 11:39:21AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 10:46 Wed 10 Oct     , Sascha Hauer wrote:
> > > On Mon, Oct 08, 2012 at 04:24:18PM +0400, Antony Pavlov wrote:
> > > > On 8 October 2012 16:15, Jean-Christophe PLAGNIOL-VILLARD
> > > > <plagnioj@jcrosoft.com> wrote:
> > > > > On 13:02 Mon 08 Oct     , Sascha Hauer wrote:
> > > > >> The at91sam9260ek has a custom reset function which does the same thing
> > > > >> as the default function. Also it does not define MACH_HAS_LOWLEVEL_INIT
> > > > >> as it should do. Remove the function.
> > > > >>
> > > > >> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > > > >> ---
> > > > > Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > > > >
> > > > > btw we should rename the command reset reboot because it start to be confusing
> > > > 
> > > > IMHO it is a very good idea!
> > > 
> > > I would rather use a different name for the reset functions which are in
> > > the startup code. In the end the reset command just resets the board.
> > > 'reboot' sounds like something is being shutdown before restarting a
> > > board.
> > > 
> > > Changing a command is quite painful since all environment scripts will
> > > be broken. I don't think reset is used in the environment, but the
> > > API change to the mount command always nags me when using a new barebox
> > > which has an older environment in flash. I think we really have to be
> > > more careful when changing commands.
> > reset means reset the screen in linux
> > 
> > and I check nearly no one use reset in the env
> > execpt sam9g45 and defaultenv2
> > 
> > when I ask to do not update the var to pass the arch number on arm you give
> > the invert comment env evolve and we do not want to loose tis freedom
> 
> You are right, but still we have a problem in this area and I wanted to
> mention it. One way out could for example be that we introduce some
> version counter which we increase when incompatible changes occur. Then
> we could fall back to the default env. I haven't thought that to an end
> though.
agreed, I've add such info in the env for it's own format

maybe with a question to the end use the first time with a timeout
if he really want to keep the current one

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-10 10:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-08 11:02 [PATCH] ARM at91sam9260ek: remove unused reset entry Sascha Hauer
2012-10-08 12:15 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-08 12:24   ` Antony Pavlov
2012-10-10  8:46     ` Sascha Hauer
2012-10-10  9:39       ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-10  9:47         ` Sascha Hauer
2012-10-10 10:53           ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox