Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2554873rwb; Mon, 3 Oct 2022 02:28:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5f5juEuCYOYxqFOjwn9tGs7ja3Z9r4Mhg1mbx/kOVvopG0Gp7iAhAy2VZPmZ5jxwnRa8Wq X-Received: by 2002:a17:907:6288:b0:72f:90ba:f0b2 with SMTP id nd8-20020a170907628800b0072f90baf0b2mr14011540ejc.696.1664789323513; Mon, 03 Oct 2022 02:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664789323; cv=none; d=google.com; s=arc-20160816; b=rOfNMSlD5zm2j+pVBIZz/zPMlpAip+AnxB5YBmYUlrqPMxQRCHIhAsgyaJATkHqyMD Sam8DHnRpEKuwZBVCug9l+49L5d+wBYAcJ1m0UbL1nnNqHjIP+mDhfi4+JiEz35K9rD6 bgwZj4LG2i9POPLdE1/cMwBvOVBQXSgvuaVeUeaxGw9uYG5zEWXLHVsa6RZ22vfj4+mc Ao8zOqgnZUb2CEBeaE80hmx2ho135zCmecb9S6e11KTHEK+ToIcM6y/Y5MRtd6XQvHdv OL/Hv14P3v4C8XJC7u7BLUucqhez7EPufP+KmKL/OiZSS5t6bJUhX5PXKpM26zJD0zgF sa4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b68EHQ7Bx6KL6Zk70f/2/7A4BROScp/LpvW7lECkHPk=; b=egVDaXuiFS5cxmKQUUgesS1fd6Hk/dAQ9yr1ymtOSCgWAtzoYODBOVLKXZfwYcSCxh Qo4k4J6lHK7+skSEjhT11qPOPQnbBZzzw2/iUo9CbpZkg3YyyU8t3DkxXVq44q+ZMQ6x x1DHdNF7EOp8xiPhy4yaC0gwvgQwY2i9+K3GtaUYEAqLuEiGbJd9NntRhX3vL3Yhnh1b /jsCEJP+sorQLCR4KPwCqD/ZwLP4jAd/WFoDtVZZMB+n3zgTfn2qMWeTnLdIghbQfvWA 6PvAVlnlhh9vTl6g3UdG4G6b5aX8CQZBjUOjYbeWUo1q5LmuXHMMsTic+7H1edy+YQ63 dwyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k1vsldha; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a056402144b00b00458b07cddb5si4984874edx.274.2022.10.03.02.28.17; Mon, 03 Oct 2022 02:28:43 -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=@linuxfoundation.org header.s=korg header.b=k1vsldha; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232256AbiJCHuw (ORCPT + 99 others); Mon, 3 Oct 2022 03:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232357AbiJCHuG (ORCPT ); Mon, 3 Oct 2022 03:50:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E83805AC72; Mon, 3 Oct 2022 00:28:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 706C960FB3; Mon, 3 Oct 2022 07:16:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80DFCC43142; Mon, 3 Oct 2022 07:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781418; bh=iiHvL8xuvSgYPTGIvbygeHeLLXH/8zJ7cHYbq0fxa4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1vsldhahH/KUy1Z3fwnvfRvvPobR4XSoy+RbQcCaLKdiWnrlkjQ4Pz776TNDYIJw pZVNz59k5MO7ipcdOH6MWyTexPZtA4IWr/k+aUnuviQkfGXfFMZu187AS7kTJwau93 f/vvw/eIEl/7XzOZpiiRrWcZl+eki2LY43MnwX/I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Kepplinger , Sebastian Krzyszkowiak , Mattijs Korpershoek , Dmitry Torokhov Subject: [PATCH 5.15 13/83] Input: snvs_pwrkey - fix SNVS_HPVIDR1 register address Date: Mon, 3 Oct 2022 09:10:38 +0200 Message-Id: <20221003070722.316560040@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Sebastian Krzyszkowiak commit e62563db857f81d75c5726a35bc0180bed6d1540 upstream. Both i.MX6 and i.MX8 reference manuals list 0xBF8 as SNVS_HPVIDR1 (chapters 57.9 and 6.4.5 respectively). Without this, trying to read the revision number results in 0 on all revisions, causing the i.MX6 quirk to apply on all platforms, which in turn causes the driver to synthesise power button release events instead of passing the real one as they happen even on platforms like i.MX8 where that's not wanted. Fixes: 1a26c920717a ("Input: snvs_pwrkey - send key events for i.MX6 S, DL and Q") Tested-by: Martin Kepplinger Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Mattijs Korpershoek Cc: Link: https://lore.kernel.org/r/4599101.ElGaqSPkdT@pliszka Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/keyboard/snvs_pwrkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/keyboard/snvs_pwrkey.c +++ b/drivers/input/keyboard/snvs_pwrkey.c @@ -20,7 +20,7 @@ #include #include -#define SNVS_HPVIDR1_REG 0xF8 +#define SNVS_HPVIDR1_REG 0xBF8 #define SNVS_LPSR_REG 0x4C /* LP Status Register */ #define SNVS_LPCR_REG 0x38 /* LP Control Register */ #define SNVS_HPSR_REG 0x14