From patchwork Tue Jul 31 04:48:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10549865 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 55D1F96FA for ; Tue, 31 Jul 2018 04:48:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 428572A097 for ; Tue, 31 Jul 2018 04:48:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36EFE2A108; Tue, 31 Jul 2018 04:48:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A159C2A0B3 for ; Tue, 31 Jul 2018 04:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbeGaG1G (ORCPT ); Tue, 31 Jul 2018 02:27:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:57560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbeGaG1G (ORCPT ); Tue, 31 Jul 2018 02:27:06 -0400 Received: from localhost.localdomain (unknown [106.200.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A39C2208A2; Tue, 31 Jul 2018 04:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533012525; bh=V8BQDWbeqrtqBOTujIOpsmCvOrOeLkCNabpx3PR78Nw=; h=From:To:Cc:Subject:Date:From; b=G0lqGX7zD3g09tfCE2ZNmRpZNJwQSOktSPJ5DVZlDNtGwG0XraKkGoZSKQaZg2NBr wclTEowayuMieSHNoV5AxmsRtPhHQXSh7PcnjSSLbqVxmFOtgO1OcsgXgqNZO+58Fo BKtWtPoaQk4B6yue4XWfIlwL8kAoybZwXHoYet2c= From: Vinod Koul To: linux-input@vger.kernel.org Cc: Bjorn Andersson , Dmitry Torokhov , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH v6 0/3] input: pm8941-pwrkey: Add support for reboot reason Date: Tue, 31 Jul 2018 10:18:04 +0530 Message-Id: <20180731044807.16878-1-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To add support for reboot reason there have been some attempts [1], [2] in past. Based on these discussions we added a new pon driver and made pwrkey and resin as child nodes to pon. Since the pwrkey and resin are similar, abstract pwrkey driver and then add support for resin in the same driver. [1]: https://patchwork.kernel.org/patch/9751627/ [2]: https://patchwork.kernel.org/patch/10381801/ Changes in v6: - Drop power changes merged thru reset tree - Rebase on input-next Changes in v5: - Make pon driver tristate Changes in v4: - Add Rob's ack - Fix typo and description in pon binding - Separate out resin binding to an independent patch Changes in v3: - Add Bjorn's ack - Make variable for event code u32 Changes in v2: - Add Bjorn's ack - Fix power binding by removing reg property - Use single block for parent check in pm8941-pwrkey as suggested by Dimitry Vinod Koul (3): dt-bindings: Input: Add additional property to qcom pwrkey input: pm8941-pwrkey: Abstract register offsets and event code input: pm8941-pwrkey: Add resin entry .../bindings/input/qcom,pm8941-pwrkey.txt | 9 +++ drivers/input/misc/pm8941-pwrkey.c | 69 ++++++++++++++++++---- 2 files changed, 65 insertions(+), 13 deletions(-)