From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753299AbcGVA57 (ORCPT ); Thu, 21 Jul 2016 20:57:59 -0400 Received: from mail-vk0-f53.google.com ([209.85.213.53]:35681 "EHLO mail-vk0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752790AbcGVA55 (ORCPT ); Thu, 21 Jul 2016 20:57:57 -0400 MIME-Version: 1.0 In-Reply-To: <20160722001012.GA11426@jelly> References: <20160717185134.GA20462@deathstar> <20160717200339.GA29562@amd> <20160717225636.GB20462@deathstar> <20160719235120.GD19250@dtor-ws> <20160720062558.GA3792@amd> <20160720162356.GA25655@dtor-ws> <20160720214736.GA4321@jelly> <20160721063234.GA14200@amd> <20160721064241.GA31008@jelly> <20160721085421.GA15485@amd> <20160722001012.GA11426@jelly> From: Dmitry Torokhov Date: Thu, 21 Jul 2016 17:57:55 -0700 Message-ID: Subject: Re: v4.1 to v4.7: regression in tsc2005 driver To: Peter Hutterer Cc: Pavel Machek , Michael Welling , kernel list , "linux-input@vger.kernel.org" , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Sebastian Reichel , "aaro.koskinen@iki.fi" , Ivaylo Dimitrov , Patrik Bachan , serge@hallyn.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 21, 2016 at 5:10 PM, Peter Hutterer wrote: > On Thu, Jul 21, 2016 at 10:54:21AM +0200, Pavel Machek wrote: >> Should we have calibration info in the device tree, with kernel >> passing it to the x? >> >> Should kernel somehow do the calibration itself? > > if the kernel knows about the calibration it would make more sense to just > do it in the kernel directly. Historically we relied on userspace to perform calibration/transformation. Lately we've been introducing trivial transformations (inversion and axes swapping) and we allow plumbing this though DT; the rest I think is still better done in userspace (where you can do floating point, if desired). > but for anything even remotely run-time or > user-configured the xorg.conf snippet is the best solution. Thanks. -- Dmitry