Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730AbaBFDrH (ORCPT ); Wed, 5 Feb 2014 22:47:07 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:36490 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942AbaBFDrE (ORCPT ); Wed, 5 Feb 2014 22:47:04 -0500 Message-ID: <52F30590.1020802@ti.com> Date: Thu, 6 Feb 2014 09:16:24 +0530 From: Satish Patel User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Roger Quadros , , , , , , Subject: Re: [PATCH v2 3/5] char: ti-usim: Add driver for USIM module on AM43xx References: <1390192434-19386-1-git-send-email-satish.patel@ti.com> <1390192434-19386-4-git-send-email-satish.patel@ti.com> <52F0E8EC.8030900@ti.com> In-Reply-To: <52F0E8EC.8030900@ti.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/4/2014 6:49 PM, Roger Quadros wrote: > Hi Satish, > > On 01/20/2014 06:33 AM, Satish Patel wrote: >> TI-USIM driver is a platform driver that provides a character >> driver interface to user applications. >> >> It allows user applications to call IOCTL's to >> perform smart card operations. >> >> Driver currently supports >> - ATR >> - T=0 & T=1 protocol >> - clock stop mode >> - smart card clock configuration >> - Tx/Rx application data units (APDU) to smart card >> - Interface to PHY using DT & phy interface >> >> Validation is done with ACOS3 smart cards >> >> Signed-off-by: Satish Patel >> --- >> .../devicetree/bindings/ti-usim/ti-usim.txt | 31 + >> drivers/char/Kconfig | 7 + >> drivers/char/Makefile | 1 + >> drivers/char/ti-usim-hw.h | 863 +++++++++ >> drivers/char/ti-usim.c | 1859 ++++++++++++++++++++ > > ti-usim.c is a very large driver that does everything but looks like limited to TI hardware. > How about splitting it into generic stuff and hw specific glue logic so that most of the generic stuff > could be used by different hardware types. > Two things over here - First interface between user application and smartcard controller driver. There is already an open source f/w in user space called "pcsc" exists for this. - Second communication between smartcard controller and smartcard phy. I have introduce lite interface called sc_phy which covers generic stuff between controller and phy. >> include/linux/ti-usim.h | 98 + >> 6 files changed, 2859 insertions(+), 0 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/ti-usim/ti-usim.txt >> create mode 100644 drivers/char/ti-usim-hw.h >> create mode 100644 drivers/char/ti-usim.c >> create mode 100644 include/linux/ti-usim.h >> > > cheers, > -roger > -- 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/