Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2611587pxb; Sun, 17 Oct 2021 20:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRvOoChxwEKZ8Miytsso3j4aHLlBJWkAwb/UcsVtXgL7VdfQnnX9Rn4jauYtPkTUdwI1hf X-Received: by 2002:a17:902:b213:b0:13e:cd44:b4b5 with SMTP id t19-20020a170902b21300b0013ecd44b4b5mr24726631plr.18.1634527674001; Sun, 17 Oct 2021 20:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634527673; cv=none; d=google.com; s=arc-20160816; b=oI75q4oDPKrizPDFQcVliwTq0CRCUTHuh6/ne6ojEjFdugl6TV7b8dVVXkzZvK9W42 6yipEJBZfAWlyX6Na+xuyfE+Wam4l0bgFbawvT9ckj0uzJgomXzjE+b02xm/sV4QdoGE m0I12E2xSGKxuQmHx2UjC9sTCt+16CPw7gUvW0UQ0zivtCa6ZHdb3ykPN3ZmpI7J0uiu TmwSpBb0u5SXBQvL9mhX2WSpOoFUReY28Rhyc3TZiCwEdeBWutOobnmbSwLQyDKQTogp 9S5uKPirBgBbEPVBmG+lofzV91wzriuyoW7Jwh9rhW88QWMGdGgT3jBdGbp9hDkbrJB+ ATZA== 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=4CrEqgAufz2diBZFjCMkZibQ9hBmn7hbMG1d+GIZLCI=; b=tprpsPbaECJT0XgKNEcXtX8ZydTRaKGHv6Dygbzu2+5MvIxtklP+L6+Xh2dnh19HL0 z/CCVKgF6ZCx88+DoQA+Ry3N5aZkEZJ46fh7caZm/yJ/+Y8Or+/KkVOSWed0TU04hMlM nf+85o/oShRr2LfxtDh2igXJWB1EeMawB+QnJRhXuco/mgkAZHi3AXth6emhSVOy1gnr aG/IwpiKI9nrUJ7cbb3A+E12hAYLNyACORcWjk3khUwUuIX3qbEy8uSoZYk8L3y+q8BJ yYtabcxWbQ0E9j4eh6WxldlZr/UzQU7Y0resqqnkMYM6v75C/J2UfpX+ko3oVzJW49uM NQ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YB+r4935; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si15959878plg.33.2021.10.17.20.27.42; Sun, 17 Oct 2021 20:27:53 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=YB+r4935; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236784AbhJPFgh (ORCPT + 98 others); Sat, 16 Oct 2021 01:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbhJPFgg (ORCPT ); Sat, 16 Oct 2021 01:36:36 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DDECC061570; Fri, 15 Oct 2021 22:34:29 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 66so10493944pgc.9; Fri, 15 Oct 2021 22:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4CrEqgAufz2diBZFjCMkZibQ9hBmn7hbMG1d+GIZLCI=; b=YB+r4935l23vZCAX9eCeoSsrGYb3PGI9JlHJzMydFyE6ZNdgA1bT54enPAVsowz7kd 2VrPtIzhWO0hLf6KgK9XqpEsePbmhSXJ/IOxUJTXhmlp+VAhjQdVsvlUpGPXlo/gmoIv arQNzY9E3nwG71wXjShUS9uXAl8qpkEM/yDlSS3E81//AIcMBDaV+aCyIgYUFq+w6FAl m9deDw0Al7mUqex2rRSql7Q70vyL+c+Ov0urAX+54IQg4r5SN4JuM/pPE2crb1aJwvvP 8uQ0mQ2Rh5EirgGVc1DuHTx7khAJEQMyoLLcK9x4WkxKIT/4ZwzRCUbv5sZwUtfrggwx CZ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4CrEqgAufz2diBZFjCMkZibQ9hBmn7hbMG1d+GIZLCI=; b=kSf1pcRARIgPf/mqRohrKFWNT9IftnDiL20lkqDef+EaV2X9BiO8eO4ICYSmISdG+R SF6Zocbrw4AoySqZYyT82iSHdRs3lWBfgLRJ37ZIz8pBbzCUZkwbqAeV96ltfSB05fPj KAdF/7Kq4v6cfr4PqgzG4qjqieS0Ac1BOKhV12yMUlh0JB9arn+tpVAMonqHbvn0SoSU IF7Ef2QBbDUMYQj0AQgVG9abO29y+/iwSz1uXJ1EMqRKP4pjJeRZOhEfclyfqlFjAlpw A72NtjcG9iXoZDTlBjCeD0v7zIRPoH007Aaxd7chgV3/4e+H2sPSD1tDgb6VzxMiyU9s AiXg== X-Gm-Message-State: AOAM531bPHb8+QhvbQ4azNvHlu3P9ZDXEDxGZwGykHA0oEG2fvg8ZAzI Wx7KQjOqTNQ6ry33OLg5B6FizfUv3Ek= X-Received: by 2002:a63:b349:: with SMTP id x9mr12412545pgt.139.1634362468631; Fri, 15 Oct 2021 22:34:28 -0700 (PDT) Received: from google.com ([2620:15c:202:201:6a02:4736:3b83:a269]) by smtp.gmail.com with ESMTPSA id d15sm7084484pfu.12.2021.10.15.22.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 22:34:27 -0700 (PDT) Date: Fri, 15 Oct 2021 22:34:25 -0700 From: Dmitry Torokhov To: Geert Uytterhoeven Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: gpio-keys - print button label in IRQ button error messages Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Fri, Sep 24, 2021 at 09:18:02AM +0200, Geert Uytterhoeven wrote: > When an error message related to IRQ buttons is printed, no clue is > given about the actual button that caused the failure. Fix this by > including the button label, to make it more obvious which button has an > incomplete or incorrect hardware description. > > Signed-off-by: Geert Uytterhoeven > --- > drivers/input/keyboard/gpio_keys.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c > index 0f2250c6aa4978d5..fc706918d7b103cb 100644 > --- a/drivers/input/keyboard/gpio_keys.c > +++ b/drivers/input/keyboard/gpio_keys.c > @@ -617,14 +617,16 @@ static int gpio_keys_setup_key(struct platform_device *pdev, > } > } else { > if (!button->irq) { > - dev_err(dev, "Found button without gpio or irq\n"); > + dev_err(dev, "Found button %s without gpio or irq\n", > + desc); I do not believe description is mandatory, so we may end up printing "gpio_keys" here. I wonder if it would not be more reliable to print the index of the problematic key? Thanks. -- Dmitry