* [patch] minor fix to kgdboe configuration logic
@ 2004-03-21 0:46 Matt Mackall
2004-03-22 14:47 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Matt Mackall @ 2004-03-21 0:46 UTC (permalink / raw)
To: Andrew Morton, linux-kernel, Tom Rini
This seems to have gotten dropped. Without it, kgdboe can get into a
half-configured state.
kgdboe - fix configuration of MAC address
tiny-mpm/drivers/net/kgdb_eth.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff -puN drivers/net/kgdb_eth.c~kgdboe-mac-init drivers/net/kgdb_eth.c
--- tiny/drivers/net/kgdb_eth.c~kgdboe-mac-init 2004-03-16 12:03:11.000000000 -0600
+++ tiny-mpm/drivers/net/kgdb_eth.c 2004-03-16 12:03:11.000000000 -0600
@@ -46,6 +46,7 @@ static struct netpoll np = {
.remote_port = 6442,
.remote_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
};
+static int configured;
int eth_getDebugChar(void)
{
@@ -101,9 +102,9 @@ static void rx_hook(struct netpoll *np,
}
}
-static int option_setup(char *opt)
+static void option_setup(char *opt)
{
- return netpoll_parse_options(&np, opt);
+ configured = !netpoll_parse_options(&np, opt);
}
__setup("kgdboe=", option_setup);
@@ -119,7 +120,7 @@ static int init_kgdboe(void)
set_debug_traps();
- if(!np.remote_ip || netpoll_setup(&np))
+ if(!configured || netpoll_setup(&np))
return 1;
kgdboe = 1;
_
--
Matt Mackall : http://www.selenic.com : Linux development and consulting
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] minor fix to kgdboe configuration logic
2004-03-21 0:46 [patch] minor fix to kgdboe configuration logic Matt Mackall
@ 2004-03-22 14:47 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2004-03-22 14:47 UTC (permalink / raw)
To: Matt Mackall; +Cc: Andrew Morton, linux-kernel
On Sat, Mar 20, 2004 at 06:46:19PM -0600, Matt Mackall wrote:
> This seems to have gotten dropped. Without it, kgdboe can get into a
> half-configured state.
>
> kgdboe - fix configuration of MAC address
>
>
> tiny-mpm/drivers/net/kgdb_eth.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
Thanks, applied.
--
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-22 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-21 0:46 [patch] minor fix to kgdboe configuration logic Matt Mackall
2004-03-22 14:47 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome