Revision 242ce41fc92214c3430495edd43783c3ba3dcd2b authored by Sergei Shtylyov on 30 December 2006, 00:49:18 UTC, committed by Linus Torvalds on 30 December 2006, 18:56:43 UTC
There's no need to check in piix_config_drive_for_dma() for broken MW DMA
mode 0 as this mode is not supported by the driver (it sets
hwif->mwdma_mask to 0x6), and hence can't be selected by ide_dma_speed().

(Alan sayeth "Probably right but if not you've got a subtle corruptor.  Should
at least stick a BUG_ON mode 0 setting right close when the mode is set.")

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 755cd90
Raw File
bug.h
#ifndef _SPARC_BUG_H
#define _SPARC_BUG_H

#ifdef CONFIG_BUG
/* Only use the inline asm until a gcc release that can handle __builtin_trap
 * -rob 2003-06-25
 *
 * gcc-3.3.1 and later will be OK -DaveM
 */
#if (__GNUC__ > 3) || \
    (__GNUC__ == 3 && __GNUC_MINOR__ > 3) || \
    (__GNUC__ == 3 && __GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ >= 4)
#define __bug_trap()		__builtin_trap()
#else
#define __bug_trap()					\
	__asm__ __volatile__ ("t 0x5\n\t" : : )
#endif

#ifdef CONFIG_DEBUG_BUGVERBOSE
extern void do_BUG(const char *file, int line);
#define BUG() do {					\
	do_BUG(__FILE__, __LINE__);			\
	__bug_trap();				\
} while (0)
#else
#define BUG()		__bug_trap()
#endif

#define HAVE_ARCH_BUG
#endif

#include <asm-generic/bug.h>

#endif
back to top