Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753694Ab1CYO0y (ORCPT ); Fri, 25 Mar 2011 10:26:54 -0400 Received: from mga11.intel.com ([192.55.52.93]:36140 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753586Ab1CYO0w (ORCPT ); Fri, 25 Mar 2011 10:26:52 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.63,243,1299484800"; d="scan'208";a="671573566" Date: Fri, 25 Mar 2011 15:26:49 +0100 From: Samuel Ortiz To: Arnd Bergmann Cc: Waldemar Rymarkiewicz , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, hthebaud@insidefr.com, matti.j.aaltonen@nokia.com, Alan Cox Subject: Re: [PATCH] NFC: Driver for Inside Secure MicroRead NFC chip Message-ID: <20110325142648.GC3879@sortiz-mobl> References: <1300444824-13713-1-git-send-email-waldemar.rymarkiewicz@tieto.com> <1300444824-13713-2-git-send-email-waldemar.rymarkiewicz@tieto.com> <201103181319.54191.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103181319.54191.arnd@arndb.de> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1686 Lines: 40 On Fri, Mar 18, 2011 at 01:19:53PM +0100, Arnd Bergmann wrote: > On Friday 18 March 2011, Waldemar Rymarkiewicz wrote: > > Add new driver for MicroRead NFC chip connected to i2c bus. > > > > See Documentation/nfc/nfc-microread.txt. > > As I said in my first review and Alan also pointed out now, the > most important change will be to add a common NFC core layer, > before adding more hardware drivers. > > Also, regarding the user interface, we need to be really sure > that this is the best way of talking to NFC devices. The interface > you have today is a simple character device read/write kind, > which may be the best thing if the protocol stack on top is > really simple and there is never the need to have multiple > applications talking to different endpoints on the wireless > interface, and if there are no protocol headers being > send over the character device interface. > > Otherwise, a better interface is probably to add a new network > socket family and abstract the protocol layers in the kernel. Yes, NFC seems to be a good fit for a new socket family. Especially if we ever want to have a proper NFC p2p support from the kernel. Sending HCI commands should be done through a dedicated netlink socket too. I am currently strting to work on such solution, and I hope to be able to come up with a basic prototype for it in a few weeks. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ -- 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/