Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1395501pxb; Fri, 22 Jan 2021 14:57:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW8U3IQc0fZVs1g9+3NsQ5xc6SKPsRkNCyiF2v99x7+FRMbXhVC70tqWQtMPfswF3iomn4 X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr4510021eju.153.1611356260076; Fri, 22 Jan 2021 14:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611356260; cv=none; d=google.com; s=arc-20160816; b=G7PTd8Xdpj0dF/wsoaaia69B0oD5MFB2tBM/eZPy6lH5mMAQuXcyNkACO4UD7KVjGk tQvZ4nApP/Mg2j/9wisJPBI049vI0QqiaWzfZUpSPMMeo4aOh1jf5r+wAHdX43CN4dKx tibR0R+ZrYXuaDn6S/Gbqnbnua27zDndtoEbogHrj2q5hKKjJX7MMMRk5JfdIb4WhrdC lP+ha9Kex6P+MYvkf/xXgjhzrP/UHV+xwJPNGFhXmdGWxRQTiCw+p8vHIEZG+my8QaL1 kukSoNqqbWyVGet18xIbvm/zc30MPEuH52u0iIcP0NrU79uIV0u1G+6n7GfrQNc8Kuqc oDWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hFqxITJ/kjeDG2P1yWw2xgXqtJJ5NxGhm9klFI3NBC8=; b=eakzjzQYDTVWqZdQ4QzClC9+9Mb41UnQm9htAcMqVpGmk6zFVUFTdo3vKpCwGm8BSr 4ZMu+I2zuBXcmNeKHAxb3E3GlKimOfNeNFTVIkjTdt0mIjTk69R/wIC+Rn0N04EFCOyM 4JE6CLrTWFONMc4CBRFfH5lvZEIOoabMGBqQ+6s0IFaesTpoingY6cSu6JDUbav2lUYu DllPsnvE2w6pgoTGR16FT3+/L/53rjNiHEMyLccAecI28TE/AkMDEy6RcJnsRpwYPP58 3Ri8BfWjiRBDK39/WkzFgBMFDhXcyuuaD4UDLoqiYMPyrBa9A7MaePek1kfo4HAFtHJ3 NGMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQHnomUV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he34si3394136ejc.729.2021.01.22.14.57.16; Fri, 22 Jan 2021 14:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQHnomUV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728199AbhAVWyJ (ORCPT + 99 others); Fri, 22 Jan 2021 17:54:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbhAVWt4 (ORCPT ); Fri, 22 Jan 2021 17:49:56 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08D9EC061788 for ; Fri, 22 Jan 2021 14:49:15 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id p21so4661450lfu.11 for ; Fri, 22 Jan 2021 14:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hFqxITJ/kjeDG2P1yWw2xgXqtJJ5NxGhm9klFI3NBC8=; b=KQHnomUVch64dE+lLq+W+ZLldPYPV9dXf0NMuNWCe4vYfRB5rsV6yA0IhuhfWySbin +zE8PCFBAhpKFv+rCsFi4JxKdyCJHlCPdp2Eczkwkap+W/FBKjLtoQUJP+cps0By+s8F jvZ7EVreZ1rMR9opYmFB/KZqNpZQjwX7NEl9HYQAGjv1rNeO6oQZAXsisPV4XRJsLKJH /es5XoIvKS7nfRk8uKUSSMH4qiW/8+BnclKRAILSpSgvVAESqfOYGhIbvBzyeIBZcnrZ gHuLjLRbAB2fvdEHK6vV5RGNoVOLKDu25a4BygEc16eLZ3zowgMBbJnlcr9kAg/BFDex Nq+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hFqxITJ/kjeDG2P1yWw2xgXqtJJ5NxGhm9klFI3NBC8=; b=k826/GSN7O3JexpC1oXufzvH7F081VFGv3DnvqsW7dUTz+QynmnB390c4zD0cuQExK +k5BYXybBhLQiSZSb6MWu8x94eEskh8x9Cifw3+j9bmILeO0OXdkrAItORjfDxnwjzQS kTQLx4Vhj5niti77uW+HKYS1p16DuBwZiL07O1o19AhdX8GqfqtwEtLNVoJBqZp+3ZZa xsMQPYeYNgNw8jlWqOp4lk7IQKSN9Ao3FNUfyNo1IGpaWmNwRDrc/jCXKg+mqNyl4+bR 8EL2Xyoq8ZiPnCMeFrjLonH/QMtXt81c0B6MXQkGB+604JoKW09KoUNl7AUbUBmEQNuy 9CiQ== X-Gm-Message-State: AOAM533dj2bD0ZzFf1J06zK9urU6BFKDJcx5u9Cn+3gTV/0qGvDs1G9i Nxj+ll2BBs40wphmGUWJLQDGXTW3KBlQwkVF/NUc3Q== X-Received: by 2002:a19:495d:: with SMTP id l29mr742605lfj.465.1611355753600; Fri, 22 Jan 2021 14:49:13 -0800 (PST) MIME-Version: 1.0 References: <20210121141038.437564-1-warthog618@gmail.com> In-Reply-To: <20210121141038.437564-1-warthog618@gmail.com> From: Linus Walleij Date: Fri, 22 Jan 2021 23:49:02 +0100 Message-ID: Subject: Re: [PATCH] gpiolib: cdev: clear debounce period if line set to output To: Kent Gibson Cc: "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 21, 2021 at 3:11 PM Kent Gibson wrote: > 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(). > > Fixed: 65cff7047640 ("gpiolib: cdev: support setting debounce") > Signed-off-by: Kent Gibson Reviewed-by: Linus Walleij Yours, Linus Walleij