Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757718AbYJVTx2 (ORCPT ); Wed, 22 Oct 2008 15:53:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752277AbYJVTxU (ORCPT ); Wed, 22 Oct 2008 15:53:20 -0400 Received: from 81-174-11-161.static.ngi.it ([81.174.11.161]:41488 "EHLO mail.enneenne.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594AbYJVTxT (ORCPT ); Wed, 22 Oct 2008 15:53:19 -0400 Date: Wed, 22 Oct 2008 21:52:46 +0200 From: Rodolfo Giometti To: Andrew Morton Cc: Greg KH , linux-kernel@vger.kernel.org Message-ID: <20081022195245.GS4390@tekkaman> References: <1224683240-15439-1-git-send-email-giometti@linux.it> <1224683240-15439-2-git-send-email-giometti@linux.it> <20081022174004.GB10587@kroah.com> <20081022111145.e5f3c632.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081022111145.e5f3c632.akpm@linux-foundation.org> Organization: GNU/Linux Device Drivers, Embedded Systems and Courses X-PGP-Key: gpg --keyserver keyserver.linux.it --recv-keys D25A5633 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: 192.168.32.254 X-SA-Exim-Mail-From: giometti@enneenne.com Subject: Re: [PATCH 1/2] Add c2 port support. X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.enneenne.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1760 Lines: 57 On Wed, Oct 22, 2008 at 11:11:45AM -0700, Andrew Morton wrote: > No opinion yet - I haven't review them. > > > > Fixed. > The SMP is achieved by mutex_lock(), the local_irq_disable() is used to avoid interructions in code execution. C2 port has very stringent timings. > > > Can you please explain these two points? > Fixed. > > What I haven't yet got my head around is this: > > Currently this code supports only flash programming through sysfs > interface but extensions shoud be easy to add. > > is that really what we want to use sysfs for? As the prime interface > to a device driver (or is it a bus driver?) Didn't we used to use > device nodes for that sort of thing? I decided to use this interface since the C2 ports are simple and very easy to manage with such files abstraction. Whould you like I repropose the code with the fixed issues for your review? Thanks for your suggestions, Rodolfo -- GNU/Linux Solutions e-mail: giometti@enneenne.com Linux Device Driver giometti@linux.it Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti -- 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/