diff --git a/debian/changelog b/debian/changelog index c4081aeda..b9e833944 100644 --- a/debian/changelog +++ b/debian/changelog @@ -27,6 +27,9 @@ linux-2.6 (2.6.32-12) UNRELEASED; urgency=low [ Aurelien Jarno ] * [sh4] Add a sh7751r flavour. + [ Martin Michlmayr ] + * dns323-setup.c: fix WARN() when booting (Arnaud Patard). + -- Ben Hutchings Tue, 06 Apr 2010 02:26:51 +0100 linux-2.6 (2.6.32-11) unstable; urgency=low diff --git a/debian/patches/features/arm/dns323-rev-a1-gpio-request.patch b/debian/patches/features/arm/dns323-rev-a1-gpio-request.patch new file mode 100644 index 000000000..dd264fe0a --- /dev/null +++ b/debian/patches/features/arm/dns323-rev-a1-gpio-request.patch @@ -0,0 +1,31 @@ +From: Arnaud Patard +Date: Sat, 3 Apr 2010 08:31:33 +0000 (+0200) +Subject: [ARM] dns323-setup.c: fix WARN() when booting +X-Git-Url: http://git.marvell.com/?p=orion.git;a=commitdiff_plain;h=5efda86f74aa62f589297d0638c400b3f3fc6c64 + +[ARM] dns323-setup.c: fix WARN() when booting + +Since commit b2a731aa5cbca7e0252da75e16de7ae5feb1313a, dns323_init() is +setting the power led gpio direction with gpio_direction_output() but +doesn't request the gpio before (which is not permitted by the gpio +layer afaik). This behaviour is triggering a WARN() at boot time. + +Tested-by: Christian Samsel +Cc: Martin Michlmayr +Signed-off-by: Arnaud Patard +Signed-off-by: Nicolas Pitre + [ Part 2: "Attached Text" ] +--- + +diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c +index 421b82f..685f34a 100644 +--- a/arch/arm/mach-orion5x/dns323-setup.c ++++ b/arch/arm/mach-orion5x/dns323-setup.c +@@ -439,6 +439,7 @@ static void __init dns323_init(void) + */ + if (dns323_dev_id() == MV88F5181_DEV_ID) { + dns323_leds[0].active_low = 1; ++ gpio_request(DNS323_GPIO_LED_POWER1, "Power Led Enable"); + gpio_direction_output(DNS323_GPIO_LED_POWER1, 0); + } + diff --git a/debian/patches/series/12 b/debian/patches/series/12 index 71b62e8b8..13c6940b8 100644 --- a/debian/patches/series/12 +++ b/debian/patches/series/12 @@ -3,3 +3,4 @@ + features/all/drivers-block-drbd-add.patch + bugfix/all/phylib-fix-typo-in-bcm6xx-PHY-driver-table.patch + bugfix/all/ACPI-EC-Allow-multibyte-access-to-EC.patch ++ features/arm/dns323-rev-a1-gpio-request.patch