Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756935AbYAVR4b (ORCPT ); Tue, 22 Jan 2008 12:56:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755712AbYAVR4T (ORCPT ); Tue, 22 Jan 2008 12:56:19 -0500 Received: from smtp-102-tuesday.noc.nerim.net ([62.4.17.102]:1779 "EHLO mallaury.nerim.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755524AbYAVR4S (ORCPT ); Tue, 22 Jan 2008 12:56:18 -0500 Date: Tue, 22 Jan 2008 18:56:15 +0100 From: Jean Delvare To: "Felipe Balbi" Cc: linux-kernel@vger.kernel.org, david-b@pacbell.net, tony@atomide.com, "Linux I2C" Subject: Re: [PATCH 2/2] I2C: ISP1301_OMAP: New-style i2c driver updates, part 2 Message-ID: <20080122185615.4a8ebbea@hyperion.delvare> In-Reply-To: <31e679430801220413j763589b0j171873c9a90a3cb3@mail.gmail.com> References: <1199379597-6273-1-git-send-email-me@felipebalbi.com> <1199379597-6273-2-git-send-email-me@felipebalbi.com> <1199379597-6273-3-git-send-email-me@felipebalbi.com> <20080122130158.4d4d44dc@hyperion.delvare> <31e679430801220413j763589b0j171873c9a90a3cb3@mail.gmail.com> X-Mailer: Sylpheed-Claws 2.5.5 (GTK+ 2.10.6; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 34 On Tue, 22 Jan 2008 14:13:58 +0200, Felipe Balbi wrote: > On Jan 22, 2008 2:01 PM, Jean Delvare wrote: > > On Thu, 3 Jan 2008 11:59:57 -0500, Felipe Balbi wrote: > > > - if (machine_is_omap_h2()) > > > - omap_free_gpio(2); > > > - > > > > Why? > > Board specific code should go to board files. I'll try to find a > better way of doing this. Maybe using a private_data. > Ditto to all cases below. I agree that board code should ideally not be there, however you can't just drop it and hope nobody will notice. It needs to be done in such a way that everything still works afterwards. IMHO it is better move such changes to a later patch so as to not make this one needlessly complex. > > (Did you test you patch on OMAP H2?) > > Can't remember anymore, but before applying these patches isp1301 was > crashing the kernel on H2 and H3. That's bad, this should be fixed, if possible even before applying your patches. Thanks, -- Jean Delvare -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/