From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756915Ab3A2NcK (ORCPT ); Tue, 29 Jan 2013 08:32:10 -0500 Received: from mail.kernel.org ([198.145.19.201]:44970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756335Ab3A2NcI (ORCPT ); Tue, 29 Jan 2013 08:32:08 -0500 Date: Tue, 29 Jan 2013 05:33:46 -0800 From: Greg KH To: Priyaranjan Das Cc: linux-kernel@vger.kernel.org, mankad.maulik@gmail.com Subject: Re: Query related to MSR(Magnetic Stripe Reader) Device Driver Message-ID: <20130129133346.GA1505@kroah.com> References: <20130122163655.GA21090@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2013 at 03:25:08PM +0530, Priyaranjan Das wrote: > Hi Greg, > > On Tue, Jan 22, 2013 at 10:06 PM, Greg KH wrote: > > On Tue, Jan 22, 2013 at 03:02:32PM +0530, Priyaranjan Das wrote: > >> Hi All, > >> > >> I am working on MSR(Magnetic Stripe Reader) for a product . I wish to > >> know whether any MSR( Magnetic Stripe/card Reader) driver is available > >> in the current source or not. I need this for reference. Could anyone > >> please help me? > > > > Most of these types of devices that I have worked with always show up as > > a keyboard device (ps/2 pass-through or a USB hid device.) What type of > > interface does your device present to the operating system? > > > > The MSR will be a part of a SoC. It is a memory mapped device hence > there is no interface like USB. Ok, that's different. But how will your driver want to communicate the reader data to userspace? That will probably determine where you want to put it. I would recommend making it an input device and sending keystrokes that you read from the card, so you can properly integrate into userspace applications that are used to using a card reader. > MSR IP contains an ADC which the driver will read and interpret the > data. I am planning to write a Driver for the same. Will this driver > fall under drivers/mfd/* ? As per the above, I would think drivers/input/ wouldn't you? Hope this helps, greg k-h