From patchwork Wed Feb 8 14:46:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Pearson X-Patchwork-Id: 13133101 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56C7DC636D7 for ; Wed, 8 Feb 2023 14:47:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbjBHOrC (ORCPT ); Wed, 8 Feb 2023 09:47:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbjBHOrB (ORCPT ); Wed, 8 Feb 2023 09:47:01 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CC535581; Wed, 8 Feb 2023 06:46:59 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4674E32009CE; Wed, 8 Feb 2023 09:46:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 08 Feb 2023 09:46:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1675867615; x=1675954015; bh=zT Kt6m4JRxgdH3kPT8jiwVvp3WR5nsieULsMsf+pmy4=; b=gN7mOFSsTovMyFLh8Q +dk/qMl5fe7didaUnElSb5RhWVWTFOvi55Gg0ZcAUwh/VKTL9ef8jCTjGxS8VWoK esby4my2t/GgW74tfCRiErbpL66Lx5E2WfHK9KjkMP6t7EQ7HrGi9JWj7VsixRf9 GwpVjMARX6XX3TENbIIyTZ8s5309Hkio0PeNc5irUDVJM8OhsrP92GgCvcXk11bs q1HHWlKPkdmZM88JuC3pSDS3HO6f91j2hnkEcKB4/IkVw6n/PxzSmln//jVO69as fUZbsGIYEJxpb2bRHiVgHL4sBT0VtPt0IVsEe2waKaBPhYQobPfM+VozIB/kRq4i qBhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1675867615; x=1675954015; bh=zTKt6m4JRxgdH 3kPT8jiwVvp3WR5nsieULsMsf+pmy4=; b=NBT9Cm/BIRe/Tw+n9QxOEeqYve8IQ /CC/pxN9nHbZXB93OkXqWrY0ESRFZIZPbHyJyJeO72Kcq2W89iQqP3KkA8aP/kfp TSqxrKOTjvKBWNkHKGUxljEIV4K9aDF69hi0A3bkS1mkkuvWSQC6cMDLiSjKbgRP Ym4D8FbzVQ5YNMpnAaK41jznAXOZ6eGsqZG1ziMjjTeIGPkX/Xyfs0fJjX2L65qe 7tWNHp3ecUQOrA4cnzzyWnahwTwmBdi0YrhELz8d6rPHVmvIIPVbgpLys3t5VkL5 U+Bz6zJVJ9QGAS3iEm5Z65+b52g+S5yWTdS1PazcxkPDOyvMMntQPSYGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehuddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goteeftdduqddtudculdduhedmnecujfgurhephffvvefufffkofgjfhgggfestdekredt redttdenucfhrhhomhepofgrrhhkucfrvggrrhhsohhnuceomhhpvggrrhhsohhnqdhlvg hnohhvohesshhquhgvsggsrdgtrgeqnecuggftrfgrthhtvghrnhepfedtvdejfeelffev hffgjeejheduteetieeguefgkefhhfegjeduueethefgvdffnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhpvggrrhhsohhnqdhlvghnohhv ohesshhquhgvsggsrdgtrg X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Feb 2023 09:46:53 -0500 (EST) From: Mark Pearson To: mpearson-lenovo@squebb.ca Cc: linux-usb@vger.kernel.org, Miroslav Zatko , Dennis Wassenberg , stable@vger.kernel.org Subject: [PATCH] usb: core: add quirk for Alcor Link AK9563 smartcard reader Date: Wed, 8 Feb 2023 09:46:48 -0500 Message-Id: <20230208144648.1079898-1-mpearson-lenovo@squebb.ca> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The Alcor Link AK9563 smartcard reader used on some Lenovo platforms doesn't work. If LPM is enabled the reader will provide an invalid usb config descriptor. Added quirk to disable LPM. Verified fix on Lenovo P16 G1 and T14 G3 Tested-by: Miroslav Zatko Tested-by: Dennis Wassenberg Cc: stable@vger.kernel.org Signed-off-by: Dennis Wassenberg Signed-off-by: Mark Pearson --- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index 079e183cf3bf..9b1c56646ac5 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -535,6 +535,9 @@ static const struct usb_device_id usb_quirk_list[] = { /* INTEL VALUE SSD */ { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Alcor Link AK9563 SC Reader used in 2022 Lenovo ThinkPads */ + { USB_DEVICE(0x2ce3, 0x9563), .driver_info = USB_QUIRK_NO_LPM }, + { } /* terminating entry must be last */ };