From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44762C433DB for ; Wed, 10 Feb 2021 14:11:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0503464E65 for ; Wed, 10 Feb 2021 14:11:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231725AbhBJOLS (ORCPT ); Wed, 10 Feb 2021 09:11:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:60400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbhBJOLO (ORCPT ); Wed, 10 Feb 2021 09:11:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FF5D64E7A; Wed, 10 Feb 2021 14:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612966233; bh=+AHPAbY2Omn02r90l7z3c/7R8FzCiF1+7hR1mIE0dac=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=swcSwWxBD7UOMlSvU0ZHOEOhasBjkYoKjHdMkQKLYjgGP9Otf8BlM6DrMdbUJj+9d UZ+kfQaS6V5veHBynVDQom1u+jB/7UeUaTZSOd96OxHgcECIFB0iNYKcj7rnokKCCp vfxhMjyLn9P0U9ikJ/xYLI4DXv0yc4zkKVr3n0ds= Date: Wed, 10 Feb 2021 15:10:30 +0100 From: Greg KH To: Kent Gibson Cc: stable@vger.kernel.org, Linus Walleij , Bartosz Golaszewski Subject: Re: [BACKPORT 5.10 PATCH] gpiolib: cdev: clear debounce period if line set to output Message-ID: References: <1612779107255191@kroah.com> <20210208233325.6087-1-warthog618@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208233325.6087-1-warthog618@gmail.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Feb 09, 2021 at 07:33:25AM +0800, Kent Gibson wrote: > commit 03a58ea5905fdbd93ff9e52e670d802600ba38cd upstream. > > When set_config changes a line from input to output debounce is > implicitly disabled, as debounce makes no sense for outputs, but the > debounce period is not being cleared and is still reported in the > line info. > > So clear the debounce period when the debouncer is stopped in > edge_detector_stop(). > > Fixes: 65cff7046406 ("gpiolib: cdev: support setting debounce") > Cc: stable@vger.kernel.org > Signed-off-by: Kent Gibson > Reviewed-by: Linus Walleij > Signed-off-by: Bartosz Golaszewski > --- > drivers/gpio/gpiolib-cdev.c | 2 ++ > 1 file changed, 2 insertions(+) Now applied, thanks. greg k-h