Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759406AbZJMLGi (ORCPT ); Tue, 13 Oct 2009 07:06:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751223AbZJMLGi (ORCPT ); Tue, 13 Oct 2009 07:06:38 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39590 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbZJMLGh (ORCPT ); Tue, 13 Oct 2009 07:06:37 -0400 Date: Tue, 13 Oct 2009 13:05:52 +0200 From: Pavel Machek To: Kyungmin Park Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, soni.trilok@gmail.com, Greg KH Subject: Re: [PATCH] Haptic class support (v2) Message-ID: <20091013110552.GD31984@elf.ucw.cz> References: <20091006074533.GA28889@july> <20091011090549.GE1414@ucw.cz> <9c9fda240910111732x262a9510rf3dd862aa16d0bdf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c9fda240910111732x262a9510rf3dd862aa16d0bdf@mail.gmail.com> X-Warning: Reading this can be dangerous to your mental health. 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: 1787 Lines: 47 On Mon 2009-10-12 09:32:28, Kyungmin Park wrote: > On Sun, Oct 11, 2009 at 6:05 PM, Pavel Machek wrote: > > On Tue 2009-10-06 16:45:33, Kyungmin Park wrote: > >> This patch includes two haptic devices, isa1000 and isa1200 > >> ISA1000 is gpio based haptic, but isa1200 is based on I2C > >> Both are working on Samsung SoCs and tested. > >> > >> To enable the haptic, echo 1 > /sys/class/haptic/${name}/enable > >> You can adjust the level by echo ${level} > /sys/class/haptic/${name}/enable > >> or > >> With oneshot feature, echo ${msec time} > /sys/class/haptic/${name}/oneshot > > > > New device classes should certainly be documented in Documentation/. > > > > For example... is level 0-100? > > Basically. range from 0 to 255. also each device can set max level in > case of isa1000 it's 6. How will userspace know the range? > > Is it valid to change level while 'oneshot' is running? > > we usually use it under 1 sec. but I think it's possible to change it > but not tried. You are specifying interface here. You have to decide if it is valid or not, then document it. > > Does oneshot use last level set? > > Right. it used last set value. > > If you don't mind to update these at Documentation please wait until > commit first patches merged. I'd expect your reply to be merged into the Documentation, and that to be merged with the rest of the patches... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/