https://github.com/torvalds/linux
Revision ae01b2493c3bf03c504c32ac4ebb01d528508db3 authored by Tejun Heo on 16 March 2011, 10:14:55 UTC, committed by Jeff Garzik on 24 April 2011, 15:32:16 UTC
NVIDIA mcp65 familiy of controllers cause command timeouts when DIPM
is used.  Implement ATA_FLAG_NO_DIPM and apply it.

This problem was reported by Stefan Bader in the following thread.

 http://thread.gmane.org/gmane.linux.ide/48841

stable: applicable to 2.6.37 and 38.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stefan Bader <stefan.bader@canonical.com>
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
1 parent 3f7ac1d
Raw File
Tip revision: ae01b2493c3bf03c504c32ac4ebb01d528508db3 authored by Tejun Heo on 16 March 2011, 10:14:55 UTC
libata: Implement ATA_FLAG_NO_DIPM and apply it to mcp65
Tip revision: ae01b24
gcd.c
#include <linux/kernel.h>
#include <linux/gcd.h>
#include <linux/module.h>

/* Greatest common divisor */
unsigned long gcd(unsigned long a, unsigned long b)
{
	unsigned long r;

	if (a < b)
		swap(a, b);
	while ((r = a % b) != 0) {
		a = b;
		b = r;
	}
	return b;
}
EXPORT_SYMBOL_GPL(gcd);
back to top