Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3564170pxb; Mon, 24 Jan 2022 12:19:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmtxP2SmJVOBPoEH/EBZXGBIR1+5j4BKgLoWnZyviNoWZvn3NDfwf4jj4zJIlAhR2e7RzN X-Received: by 2002:a17:90a:7bcb:: with SMTP id d11mr52590pjl.40.1643055544070; Mon, 24 Jan 2022 12:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055544; cv=none; d=google.com; s=arc-20160816; b=ErFouSvMeR89LQRsHRA0mnxHPqLpGf6Au7t/v4JuEs1XU1KcgPBRSfaF9A7h+93Qjv ZUS0YKtFaqZk9SS62H+9VIQv5gzoDsmiXOFwUFB4ddWIUs0mvY2lzzcXKF4HumTB25zU OHbB3EiDqEsmzLG5ETpRJrEdtLdWjWG6G/LI72TlWT4pDS1V/rfOsVPivnUm51Q7Vn6N Naq6CbJ9/lAIjj8xWRIvDcjLmur+7mSjmLZeWomEzLF0+PdH2qA5yo7+qv9TUz/EtcCo Q9bocifLXG0dQ+EiNClQav7GNsKvdKOXdVh4rdhnWpfPJqSK/LBwQw5it9FbN56LSQDC Iohw== 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=wl/dSBGkbnzN4LX7CaWmNB/0XYb24PJlAIorGMbTex8=; b=AnS2UYoMVtHfxokyVIp+NdFv+KmSOQUOqVd09d3tAjA1eX8vw0iSIW2Q2XZcUfbto0 /2SPnfobtWNy8Zncx4mfMAiFGfS+heREBBZ5ZGPK1YWCVLKPPnmxexzfXBrScw0TRmxm IkCC72R37s9fAyvbmuCO5Fk9hUl9Z6NhxVIWULEgXsCKzcOgfXNcM5GHJay9w6GIKsQH rbD7BkxgbCr0dWO+MMhxE4Dhcdw9PCOgDowMsG5GivlpGVqRcu6xm0um2vt6i2kLfKE8 4qn8/Y5IfIqfHyomxifTU5KSoIi09m536LO+xFd0wL5BftF0RU6PZ7pKOZc+sZ5lS1RE 0Dng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rgVv6pO0; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si277865pjc.23.2022.01.24.12.18.50; Mon, 24 Jan 2022 12:19:04 -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=@linuxfoundation.org header.s=korg header.b=rgVv6pO0; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350850AbiAXTZZ (ORCPT + 99 others); Mon, 24 Jan 2022 14:25:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347251AbiAXTRO (ORCPT ); Mon, 24 Jan 2022 14:17:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3204DC094255; Mon, 24 Jan 2022 11:06:59 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id E276BB811FC; Mon, 24 Jan 2022 19:06:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08AABC36AE9; Mon, 24 Jan 2022 19:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051216; bh=RKOUeEIT2OTdH0HT/qTJnMAncQPd625vzYG4H7TFQig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rgVv6pO0ulkmQp0c6i3dbCGiaLL9d1+UxjYtgm7ofn4XhgcJ0eyNLDcYGM9Vx029s noyl+0O3NzLIJDmyBHhE0AVdk9xWdUxO5bGBVrwc1z+hWzvAPv6h89buWCD6N0PVsr YSyzAq6TsL+d27nR3ycCXkgOu1FrFe4hjMNU8QXM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= , Jiri Kosina , Sasha Levin Subject: [PATCH 4.14 091/186] HID: apple: Do not reset quirks when the Fn key is not found Date: Mon, 24 Jan 2022 19:42:46 +0100 Message-Id: <20220124183940.042368417@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: José Expósito [ Upstream commit a5fe7864d8ada170f19cc47d176bf8260ffb4263 ] When a keyboard without a function key is detected, instead of removing all quirks, remove only the APPLE_HAS_FN quirk. Signed-off-by: José Expósito Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-apple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 4e3dd3f55a963..80ecbf14d3c82 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -392,7 +392,7 @@ static int apple_input_configured(struct hid_device *hdev, if ((asc->quirks & APPLE_HAS_FN) && !asc->fn_found) { hid_info(hdev, "Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling\n"); - asc->quirks = 0; + asc->quirks &= ~APPLE_HAS_FN; } return 0; -- 2.34.1