From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH] asm-generic/gpio.h: merge basic gpiolib wrappers Date: Fri, 28 Oct 2011 13:42:00 +0100 Message-ID: <20111028124200.GU19187@n2100.arm.linux.org.uk> References: <1319528012-19006-1-git-send-email-broonie@opensource.wolfsonmicro.com> <1319720503-3183-1-git-send-email-vapier@gentoo.org> <20111027131124.GK19187@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from caramon.arm.linux.org.uk ([78.32.30.218]:33550 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755651Ab1J1Mm1 (ORCPT ); Fri, 28 Oct 2011 08:42:27 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mike Frysinger , Linus Walleij Cc: Sekhar Nori , Kevin Hilman , Grant Likely , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, davinci-linux-open-source@linux.davincidsp.com On Fri, Oct 28, 2011 at 02:15:00PM +0200, Mike Frysinger wrote: > On Thu, Oct 27, 2011 at 15:11, Russell King - ARM Linux wrote: > > This is extremely dangerous. =A0Consider for example this code > > (see ARM mach-davinci's gpio.h): >=20 > it's interesting you highlight davinci. if i'm reading things > correctly, the current davinci code is broken today and my v2 propose= d > patch actually fixes it. That looks like an error in patch 5f3fcf9649dbb010ccac41259d04147775ec8= fc2 (ARM: 7040/1: mach-davinci: break out GPIO driver specifics) which does this: -#define __ARM_GPIOLIB_COMPLEX Linus, can you send a fix?