Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752191AbdCQB7Q (ORCPT ); Thu, 16 Mar 2017 21:59:16 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34124 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbdCQB7O (ORCPT ); Thu, 16 Mar 2017 21:59:14 -0400 X-ME-Sender: X-Sasl-enc: ZJax275/dnJgrlG6p2JyqJNPMxkGU/u/8Hd+a/07OFvz 1489715630 From: David Rivshin To: linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, Grygorii Strashko Cc: Santosh Shilimkar , Kevin Hilman , Linus Walleij , Alexandre Courbot , linux-arm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 0/2] gpio: omap: set_debounce fixes Date: Thu, 16 Mar 2017 21:48:54 -0400 Message-Id: <20170317014856.31449-1-drivshin@awxrd.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 727 Lines: 24 From: David Rivshin This series fixes a couple of issues in the gpio-omap set_debounce logic. Patches based ontop of v4.11-rc1, but apply cleanly to linux-gpio/fixes and linux-next. Tested on a (custom) AM335x board via gpio-keys. (Apologies if anyone received this series twice, it seemed to fail the first time due to a typo. Please ignore the any previous copy.) David Rivshin (2): gpio: omap: return error if requested debounce time is not possible gpio: omap: compute debounce-time from actual debounce-clock rate drivers/gpio/gpio-omap.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) -- 2.9.3 base-commit: c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201