Received: by 10.223.164.221 with SMTP id h29csp2818775wrb; Tue, 3 Oct 2017 11:25:20 -0700 (PDT) X-Received: by 10.99.179.5 with SMTP id i5mr16775264pgf.442.1507055120236; Tue, 03 Oct 2017 11:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507055120; cv=none; d=google.com; s=arc-20160816; b=u4NgSLrcMZCE/HFFpi0BorMBPzXvMgJnFpgI3VXCQXnoagarQBXWwWFUPOl2IWYXfw cY3gLjeD0HG9oBfx3LnLWhrdxf9wgt1SGUI9g7yUj5z1Nw69nz0VMd+rjgOEXpdVfOPs yYRlc6LzltYWprfU44lZ/lN1C1ga+3MClSHtcKSx3rS0Xj4loQtb06CA46vMV/nWs31a 3FpVZHq2CFTDnnu+pY3iPqPiFtuOM2ASmf6IVfzWTMl6JP9a94/qiDNAPRd9PKbEG395 AF1sL/6IIN9p/bW2mCDzQAgJiGlYavVHTzv4MgL8wZ5MpnDqfqOHUpXKlYXxF+XYMQlM rWUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=MZ0gCaMhplSlCm5xj8vV5ahgHjGfmHG3NaXkg9MzrOs=; b=HC53UVgvOvcRVvq/DBp2Raz/CbwqFJKN2NMQySu9YayYn6JqujNZ+aPC/bHWsqO8yJ jGm+i2Z0JyJ+TuB6EdeRvVDVx7uboVIea59Mt8yf1/kvsQoPnjcY2d5/jAFkIpHjLF26 pbN+SAkyOFCN9yde/69CJma070JUPYOgQ+oBkZNdLeUVThyJBUYJ++WHThcQsQfqCU7i zpHJpWBxa0RRAYVQpk8Y3jnp0HHAPGezwQRyIHpilGazthmNAt3CMHlM6gTwEyGZbmVd le5O9gagNw4Ah/6mRoby3gg4jFtTzV1Cs7n+RgEz+Y7BhjWXUcdpmbBRMdm2VPekwzcR hJjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BYZ/aLIk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l65si10195269pfj.137.2017.10.03.11.25.04; Tue, 03 Oct 2017 11:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BYZ/aLIk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751291AbdJCSYb (ORCPT + 99 others); Tue, 3 Oct 2017 14:24:31 -0400 Received: from mail-vk0-f43.google.com ([209.85.213.43]:46830 "EHLO mail-vk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbdJCSY3 (ORCPT ); Tue, 3 Oct 2017 14:24:29 -0400 Received: by mail-vk0-f43.google.com with SMTP id o191so3562172vkd.3; Tue, 03 Oct 2017 11:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=MZ0gCaMhplSlCm5xj8vV5ahgHjGfmHG3NaXkg9MzrOs=; b=BYZ/aLIkk6qgQTQAIbXlFksc/IV8j4rq/DU4/Un/A6R2hO2LxUGc8HslyEZ3yWxTvb +kWUgMpR+ZrFnUZUUwJo3mE5T6aqooEqUuvC7RjERZPgQ8b3jBJLeSak1hnOgaZRVCD4 iico093cVbrOoWNGLFgHbOBGCBFFSBG7fQF3WGzs6dwlNqs2qJyUrV3zUVAxAEfu/gLn kT+ljN7+qQFSuQf3MNPCnGQUSGtERKVfKcr4YXtk/f7CowNr/m0MOwHzAH/nvr5hE57W tYHnhDdQe/7HEwyW4vKppcJ9wmdVilLQnR4F3royYi1DOZAKqyplyBQCzwXYMz87y/O3 Ilfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=MZ0gCaMhplSlCm5xj8vV5ahgHjGfmHG3NaXkg9MzrOs=; b=rZVv5iskSUXAhDkN2XpCLyUczWuYWWOULUm+kZk7H6qKaISxOy/6aqlYxKlS/SyMix IWuEh7lEk5sb7CUnTjHrTq3bIKP1QFhkX4t+hHfOAlSxJVl2QtqbI8kVEkhRzqsN3THX OVZTkCAbOL0yEeNSFsTONmeluEP6dyfpNYgRUQkSQaAH3xLE+MMexp56nvDWEqeFLfyg Vv0eL7l3y38Dj6VnYFLVxOXo67O3UOmZyQwKptacsbF4wnzjxyP+fsKZQMFg+VEHlQH1 GIug9uB/9iTsBQ4HCtb474gOHR8dM+rcmhk/8cU7nPl11WXlW/fYIQNUm3IXPsJU3WC/ wzow== X-Gm-Message-State: AHPjjUiIv1WD3+2bBFQLvBtEwnfSZPWzkefEAnlQnA6EYg9M9lGf2hXe /T4EQwyb2diJdvKpfXYuYjpfM0wiEPO6B+HIOR4= X-Google-Smtp-Source: AOwi7QBMjNBq7qq1ffVIl0m8yM5gzD7qOh8bFzTJWn3pIUQAHtFzOVVkPMQdhv3qQRONIzqiFlcaF9qcH4B+VXxtDNw= X-Received: by 10.31.192.211 with SMTP id q202mr10020221vkf.28.1507055068643; Tue, 03 Oct 2017 11:24:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.122.6 with HTTP; Tue, 3 Oct 2017 11:24:28 -0700 (PDT) Reply-To: rajatxjain@gmail.com In-Reply-To: <1507022935.16112.237.camel@linux.intel.com> References: <1506874730.16112.194.camel@linux.intel.com> <20171002213215.32201-1-rajatja@google.com> <1507022935.16112.237.camel@linux.intel.com> From: Rajat Jain Date: Tue, 3 Oct 2017 11:24:28 -0700 Message-ID: Subject: Re: [PATCH] HID: i2c-hid: Allow ACPI systems to specify "post-power-on-delay-ms" To: Andy Shevchenko Cc: Rajat Jain , Jiri Kosina , Benjamin Tissoires , David Arcari , Mika Westerberg , HungNien Chen , Hans de Goede , Brian Norris , Dmitry Torokhov , dtor@google.com, linux-input@vger.kernel.org, "linux-kernel@vger.kernel.org" , Jarkko Nikula Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 3, 2017 at 2:28 AM, Andy Shevchenko wrote: > + Cc: Jarkko, he spent a lot of nice hours to debug i2c HID touchscreen > devices on x86 ACPI enabled platforms, so, he might have a better idea > or some comments. Thanks Andy, I'll look out for any suggestions on inputs from Jarkko. > > On Mon, 2017-10-02 at 14:32 -0700, Rajat Jain wrote: >> The property "post-power-on-delay-ms"" allows a platform to specify >> the delay needed after power-on, but only via device trees. Thus >> allow ACPI systems to also provide the same information. > > This one is even less acceptable (in given form), see below why. > >> + if (!device_property_read_u32(&client->dev, "post-power-on- >> delay-ms", >> + &val)) > > The main idea behind unified device properties API is to provide a way > which will be resource provider agnostic, i.e. callers will get data in > some kind of generic way independently on the source of it. > > Since I2C HID protocol is well defined by Microsoft and it doesn't > involve _DSD, you make here even more gnostic solution. Agree. Since I don't understand the HID protocol (or _DSD for that matter) that well, and hence I want to solve my problem without disturbing any other code. I've sent yet another iteration (v3) that introduces a new function to parse the common properties, please let me know if this is any good. > > Besides the fact, each property must be registered in Device Tree > bindings (yes, even if it's going to be used for ACPI enabled platforms > initially). The property was already documented, however, thanks for reminding, I cleaned up the doc to indicate that regulator property is not a requirement for the delay property. Thanks & Best Regards, Rajat > > Thus, _if_ (and only if) we have no other solution, you need to clean up > your first version and send it as v3. > > Don't forget to add a version to the patch (git-format-patch has a > command line option to make this simpler). > > -- > Andy Shevchenko > Intel Finland Oy From 1580261534706458507@xxx Tue Oct 03 18:20:38 +0000 2017 X-GM-THRID: 1580183121510617626 X-Gmail-Labels: Inbox,Category Forums