Skip to contentSkip to conversation

MTD CVS update: 'mtd/kernel mtdblock.c'

DISCUSSION David Woodhouse 3 participants 5 messages Oct 24, 2000 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · [email protected] said:

Made changes so that 'mtdblock' would build with 2.2.x kernels again
and not only on ARM platforms. People PLEASE remember that this code is used in two different kernel trees AND on different CPU architectures.

*(int *)0=0; doesn't cause an oops on all platforms. That was why BUG() was introduced. Probably better just to omit my paranoia checks altogether, once we're happy that mtdblock actually works. For now, surround them in #ifdef PARANOIA. I thought I'd done that already.

DECLARE_MUTEX_LOCKED wants adding to compatmac.h if it's not already there.

What was the reasoning for removing the 'static' from the declaration of thr_wq?

Anyway, it didn't build _only_ on ARM - it built on SH too :)

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
Quoted 6 lines · David Woodhouse

*(int *)0=0; doesn't cause an oops on all platforms. That was why BUG() was introduced. Probably better just to omit my paranoia checks altogether, once we're happy that mtdblock actually works. For now, surround them in #ifdef PARANOIA. I thought I'd done that already.

Alright, will do.

Quoted 2 lines

DECLARE_MUTEX_LOCKED wants adding to compatmac.h if it's not already there.

Will do.

Quoted 3 lines

What was the reasoning for removing the 'static' from the declaration of thr_wq?

Uhhh...that would be my stupidity. I forgot to put 'static' back on the declaration.

-Steve

Signature · 7 lines
 Steven J. Hill - Embedded SW Engineer
 Public Key: 'finger [email protected]'
 FPR1: E124 6E1C AF8E 7802 A815
 FPR2: 7D72 829C 3386 4C4A E17D


To unsubscribe, send "unsubscribe mtd" to [email protected]
#4 lore raw

Re: Proper way of setting MTD_DEBUG

Quoted 3 lines · Bradley D. LaRonde

What is the proper way of setting MTD_DEBUG?

I re-wrote the debugging such that it is now a configuration option in the MTD sub-system menu where you choose the level of verbosity. There a four levels which are defined in the 'include/linux/mtd/mtd.h' that you can use to define the severity/verbosity of a debug statement.

-Steve

Signature · 7 lines
 Steven J. Hill - Embedded SW Engineer
 Public Key: 'finger [email protected]'
 FPR1: E124 6E1C AF8E 7802 A815
 FPR2: 7D72 829C 3386 4C4A E17D


To unsubscribe, send "unsubscribe mtd" to [email protected]
#5 lore raw

Re: Proper way of setting MTD_DEBUG

Ahh... I'm looking at an older version (the one in 2.4.0-test7).

Regards,
Brad

----- Original Message -----
From: "Steven J. Hill" <[email protected]>
To: "Bradley D. LaRonde" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, October 24, 2000 2:59 PM
Subject: Re: Proper way of setting MTD_DEBUG

Quoted 4 lines
Quoted 3 lines · Bradley D. LaRonde

What is the proper way of setting MTD_DEBUG?

Quoted 13 lines

I re-wrote the debugging such that it is now a configuration option in the MTD sub-system menu where you choose the level of verbosity. There a four levels which are defined in the 'include/linux/mtd/mtd.h' that you can use to define the severity/verbosity of a debug statement.

-Steve

Signature · 4 lines
 Steven J. Hill - Embedded SW Engineer
 Public Key: 'finger [email protected]'
 FPR1: E124 6E1C AF8E 7802 A815
 FPR2: 7D72 829C 3386 4C4A E17D

To unsubscribe, send "unsubscribe mtd" to [email protected]