login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
27
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
Date: Monday, October 27, 2008 - 9:25 am
On Sun, 26 Oct 2008 19:41:09 +0100 Pavel Machek <pavel@suse.cz> wrote:
quoted text
> Hi! > > > > > Thanks for the effort, but it looks like it did not make it, right? > > > > > > Correct - Linus was unpredictable and released 2.6.27 that evening, > > > four days early giving me no time to push the fix to him. > > > > > > However, it's gone in as part of the first ARM merge, so should be in > > > -rc1. > > > > Is it in -stable? if not, is it considered as -stable material? > > Yes, I guess it should go to stable. > > commit 69fc7eed5f56bce15b239e5110de2575a6970df4 > Author: Dmitry Baryshkov <dbaryshkov@gmail.com> > Date: Thu Oct 9 16:58:13 2008 +0100 > > [ARM] 5300/1: fixup spitz reset during boot > > Some machines don't have the pullup/down on their reset > pin, so configuring the reset generating pin as input makes > them reset immediately. Fix that by making reset pin direction > configurable. > > Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> > Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> > Signed-off-by: Pavel Machek <pavel@suse.cz> > > diff --git a/arch/arm/mach-pxa/include/mach/reset.h b/arch/arm/mach-pxa/include/mach/reset.h > index 9489a48..7b8842c 100644 > --- a/arch/arm/mach-pxa/include/mach/reset.h > +++ b/arch/arm/mach-pxa/include/mach/reset.h > @@ -10,9 +10,12 @@ > extern unsigned int reset_status; > extern void clear_reset_status(unsigned int mask); > > -/* > - * register GPIO as reset generator > +/** > + * init_gpio_reset() - register GPIO as reset generator > + * > + * @gpio - gpio nr > + * @output - set gpio as out/low instead of input during normal work
Use colon (':') after function parameters, not hyphen/dash.
quoted text
> */ > -extern int init_gpio_reset(int gpio); > +extern int init_gpio_reset(int gpio, int output); > > #endif /* __ASM_ARCH_RESET_H */ > diff --git a/arch/arm/mach-pxa/reset.c b/arch/arm/mach-pxa/reset.c > index 31d7885..1b2af57 100644 > --- a/arch/arm/mach-pxa/reset.c > +++ b/arch/arm/mach-pxa/reset.c > @@ -20,7 +20,7 @@ static void do_hw_reset(void); > > static int reset_gpio = -1; > > -int init_gpio_reset(int gpio) > +int init_gpio_reset(int gpio, int output) > { > int rc; > > @@ -30,9 +30,12 @@ int init_gpio_reset(int gpio) > goto out; > } > > - rc = gpio_direction_input(gpio); > + if (output) > + rc = gpio_direction_output(gpio, 0); > + else > + rc = gpio_direction_input(gpio); > if (rc) { > - printk(KERN_ERR "Can't configure reset_gpio for input\n"); > + printk(KERN_ERR "Can't configure reset_gpio\n"); > gpio_free(gpio); > goto out; > } > diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c > index 9b4f24c..524f656 100644 > --- a/arch/arm/mach-pxa/spitz.c > +++ b/arch/arm/mach-pxa/spitz.c > @@ -618,7 +618,7 @@ static void spitz_restart(char mode) > > static void __init common_init(void) > { > - init_gpio_reset(SPITZ_GPIO_ON_RESET); > + init_gpio_reset(SPITZ_GPIO_ON_RESET, 1); > pm_power_off = spitz_poweroff; > arm_pm_restart = spitz_restart; > > diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c > index 9f3ef9e..130e37e 100644 > --- a/arch/arm/mach-pxa/tosa.c > +++ b/arch/arm/mach-pxa/tosa.c > @@ -781,7 +781,7 @@ static void __init tosa_init(void) > gpio_set_wake(MFP_PIN_GPIO1, 1); > /* We can't pass to gpio-keys since it will drop the Reset altfunc */ > > - init_gpio_reset(TOSA_GPIO_ON_RESET); > + init_gpio_reset(TOSA_GPIO_ON_RESET, 0); > > pm_power_off = tosa_poweroff; > arm_pm_restart = tosa_restart; > >
-- ~Randy --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
2.6.27-rc8 regression on arm: kernel will no longer boot o ...
, Pavel Machek
, (Thu Oct 9, 2:19 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Stanislav Brabec
, (Thu Oct 9, 5:00 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Russell King
, (Thu Oct 9, 7:23 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Russell King
, (Thu Oct 9, 9:28 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Pavel Machek
, (Sun Oct 12, 1:53 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Pavel Machek
, (Wed Oct 15, 3:17 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Russell King
, (Wed Oct 15, 4:39 am)
Re: 2.6.27-rc8 regression on arm: kernel will no longer bo ...
, Rafael J. Wysocki
, (Fri Oct 24, 3:01 pm)
[Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Pavel Machek
, (Sun Oct 26, 11:41 am)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Randy Dunlap
, (Mon Oct 27, 9:25 am)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Andrew Morton
, (Mon Oct 27, 11:42 pm)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Russell King
, (Tue Oct 28, 1:44 am)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Alan Cox
, (Tue Oct 28, 2:24 am)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Randy Dunlap
, (Tue Oct 28, 10:56 am)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Pavel Machek
, (Tue Oct 28, 11:24 am)
Re: [Patch 2.6.27] fix booting on Sharp Zaurus c3000
, Randy Dunlap
, (Tue Oct 28, 1:05 pm)
[PATCH] arm: fix kernel-doc syntax
, Randy Dunlap
, (Fri Nov 7, 11:43 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Thomas Gleixner
Re: 2.6.21-rc1: known regressions (v2) (part 2)
Jeff Garzik
Re: Linux 2.6.29
Eric W. Biederman
[PATCH 1/2] msi: Safer state caching.
Andreas Schwab
Re: Linux 2.6.21-rc1
Mark Lord
Re: [PATCH 1/7] block: Add block_flush_device()
git
:
Erik Faye-Lund
Re: What should be the CRLF policy when win + Linux?
Francis Moreau
Re: Track /etc directory using Git
Junio C Hamano
Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Octavio Alvarez
Re: What does git reset do?
Junio C Hamano
Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
linux-netdev
:
Jarek Poplawski
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Paul E. McKenney
Re: [PATCH 2/2] udp: RCU handling for Unicast packets.
Rick Jones
[PATCH] iproute2: enable setting rto_min, rtt and rttvar in tc-esque units
Christian Bell
Re: [PATCH 1/2] udp: introduce struct udp_table and multiple rwlocks
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
git-commits-head
:
Linux Kernel Mailing List
drm/radeon/kms: add rn50/r100/r200 CS tracker.
Linux Kernel Mailing List
p54usb: Add device ID for Dell WLA3310 USB
Linux Kernel Mailing List
V4L/DVB: saa7134: clear warning noise
Linux Kernel Mailing List
Input: bcm5974 - add driver for Macbook Air and Pro Penryn touchpads
Linux Kernel Mailing List
mfd: driver for the TC6387XB TMIO controller.
openbsd-misc
:
Calomel Org
Re: PF cluestick please - low priority queue spills over into normal queue
Jim Willis
Re: procfs in OpenBSD
Rick Pettit
Re: : Real men don't attack straw men
Timo Schoeler
Re: OT: 32bit vs 64bit network card question
Tony Abernethy
Re: Completeness & consistency, was: A sad thread
Colocation donated by:
Syndicate