Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2210892rwi; Thu, 3 Nov 2022 14:09:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64HFNZWVRraFeEcMQmmQp/olZweCuhpAjumJPR4VZp/ZXJqN06GKBLOWqeFem0lLi6ES1g X-Received: by 2002:aa7:cad5:0:b0:454:88dc:2c22 with SMTP id l21-20020aa7cad5000000b0045488dc2c22mr32212714edt.352.1667509761912; Thu, 03 Nov 2022 14:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667509761; cv=none; d=google.com; s=arc-20160816; b=cT3JfphzU5Pp0QhsTnMFs6Cimw58vsmoY1Il3XeHFW4DuuBE62PjndJYdgYOwGkYJm VbYPd9oeIbpPPZxkNddancEekUBK+aeMw26t8EzvWPXJL8Fzsw5wMbiHlWjL92yJ8Cmn D4Gw+OQ7qjote+YbS2Khtx2fsMATMmVjTtxYeyTamskpLj33NVc26w3m44c7kOXfkOEY rxC9xgOq4cAc7B8/hotXkJheWkBClJBE+96R2cVTFpYAsQiNODGdzJKq/BTQg+LiTFqP KZuziXAKieBE8EbyYc4IAQ7/ftexKJC3vRPNZTUkfmW9rqTRtbRmfo/ozRdAz0lIPjSs brtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o/hyHiM4b5F/CAQCqJhvgKDL5IPK/b1aY10H+BmVbGs=; b=0J8eTU1tokJyi2FtZvyYnW/maLLo1IECW0+vpbpV+DJ82ebSp1CaOhSUrc1m5bDztA S2yboC15mVq9lax1osrxttDymT0ACQFZm52rURwl9p7UKIsGKcTTWpJREwUiTIdShDhh lADBQdng0EqD5WUHaK6m4poXe8Ivt1lNbvxMT3QV26Dn4i/ZZ4DgOxA0RNvN6BQaJAlw E+JXSac85AIk8aKBk2ObuqIycnG8zy3LwuPfv+ax/bjW9C38gbFj0p0KJ3uc9FTvbPb9 f8jutaF9ycZ8NR8EeDPX4hNOrDVx0W7roFm8hbRk+Wh4NuAQ4qopfR1Rg4BRvjaIM4r+ ZSOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K2sgswnE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb25-20020a1709071c9900b0078d8f2658e3si2895955ejc.833.2022.11.03.14.08.47; Thu, 03 Nov 2022 14:09:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K2sgswnE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbiKCUmQ (ORCPT + 98 others); Thu, 3 Nov 2022 16:42:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiKCUmO (ORCPT ); Thu, 3 Nov 2022 16:42:14 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89291DFFB; Thu, 3 Nov 2022 13:42:13 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id io19so3038109plb.8; Thu, 03 Nov 2022 13:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=o/hyHiM4b5F/CAQCqJhvgKDL5IPK/b1aY10H+BmVbGs=; b=K2sgswnEksfiv5FUPYQVoloU6be56XnLLfHasGnLa51waZ02EGoJxO+HS6BHV1EK0H HJ9Whcgbi+oTI7tiM6hlnlbx0yT7PEc/47RHwmdFlpCBaYX+G0iUj/EDm+JLJ1vK5Q0V J0NgxZTiBmRrjwdZUanrPSEP2Lx1XhyRsg1hBb7mrG9HNgdLpitW7N+qRgc93G5L+jUM GKEE+/KTzJJuuhXIEAtgnkLHyCNkvLJ26IcQdEFdSbqJKZDIOWTEga1Sq6FVnaLS2hUA qfEju09DyNXaLJc9cFcLoeTdkf7Z+C+c2hXJMQJlFQhNtk+8OqsFdx9IhLtmHlm3X8Pk bs/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=o/hyHiM4b5F/CAQCqJhvgKDL5IPK/b1aY10H+BmVbGs=; b=mLJfUzR/Md6E3X+aY+9NQIi+q5lgyseqJGNmMJTiMzbsqGmzzF5cx3H5GYZuUH0yLi rALSe3IiUEeVWLPc5l3bytZNJdU/bEWH6WQH7uHdLDyycv2MS9nPL9hLiKAMV8eww8Ji piYYBFYez9Ugxr9Bn7BJObYVmhcOE6y05CsCICLob3LzpWhh7aQov8E3sMGKHSfQefMH mtukNA3IcT4rcxThjE4a7ZJ28WLEvNSZxbires9W+aKJWHxMdj+QfcfLxy6VQAlknJrK Rn+jcHCokZVzzgHyfKvHHEXphX7+16R80pfIE0Gr2eVkApCN3MTVGppFba9kU05IvvNb AnNA== X-Gm-Message-State: ACrzQf2VJqzISmZV0gXyFgHI+jCGS0TouDgDvPOV7WNxW9cey474EHlV q0/wTZXGa42bpHAHDOgx9XtWCSs8/Qc= X-Received: by 2002:a17:90b:1b50:b0:213:c304:1d2f with SMTP id nv16-20020a17090b1b5000b00213c3041d2fmr28374221pjb.64.1667508132860; Thu, 03 Nov 2022 13:42:12 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id e11-20020a17090301cb00b0017d7e5a9fa7sm1100798plh.92.2022.11.03.13.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 13:42:12 -0700 (PDT) Date: Thu, 3 Nov 2022 13:42:09 -0700 From: Dmitry Torokhov To: Siarhei Volkau Cc: Paul Cercueil , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: matrix_keypad - force switch rows to input mode Message-ID: References: <20221102165747.1528988-1-lis8215@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221102165747.1528988-1-lis8215@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 02, 2022 at 07:57:47PM +0300, Siarhei Volkau wrote: > Some Pin/GPIO controllers can't get current GPIO status when interrupt > mode is set. Specifically Ingenic's JZ4755 always returns status at the > moment of interrupt. > > The patch tries to fix that by forcibly setting pin mode to GPIO input > prior to reading actual row status. enable_row_irqs seems to set > interrupt mode back as it should be. > > Signed-off-by: Siarhei Volkau Applied, thank you. -- Dmitry