Message ID | 20221013175144.475451252@linuxfoundation.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp435233wrs; Thu, 13 Oct 2022 12:07:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68CKWOAbOhE21Yh0fgLVeoTua5siqIxGYGPuHmVzzyBhamtGOjjU2Cfdn/4LEdB8ODuHJ6 X-Received: by 2002:a05:6402:268a:b0:45c:c38d:ed70 with SMTP id w10-20020a056402268a00b0045cc38ded70mr1112717edd.62.1665688026798; Thu, 13 Oct 2022 12:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665688026; cv=none; d=google.com; s=arc-20160816; b=ITVEqnrAT972yr/K93sQRxTeRyOEK2Omysv/nmvCX8f2M4m9LqL9Kf2Wmq8Z6MlbtF 677MXN3UKyb5/u5CKRHqoiz6DQr06S3s84vQlHVP+Y5uYgJwbea2yt4VX4kGZ/Id8DBH HzANU6OQSNYpZ0F3/8xAK5E8LcvsdqPoD0CwcI2IkB5yDbFX20lyRk004OP79gjcR2mg CbXsoeeJjqkZaXNqIxXutGFgc0gf/0G/KUfkckySdT6Ha/Tr14/EJBr90hu15HVrhoex BrRXluqubymMdpx1BOOCrVhr19yLXtIm7OxpoXSHXerPyytQgVcjiX9KahxyVYj0DvZl 9CfA== 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=FZ1YaeSNy/pNi3dcImhxesDJb5g81XsNXUAZ07POFWY=; b=DLZT1E5MJhc5tmHxjmvEgFjgKIzQXSsLZspyseGqya/WQll1V21ymZOPxX5F+x3UuR Be2Y8mUrdZZsdjNRMfk7Q7IM3zEpj3wYZbzFdOf0o8nEqIoVt7irSM3X/Q9UDqBLiCMY 5DmKy4kq1ngAqFea61emEmsn9eEYtg3zQnh/Kk/ZjUOVygckIrE9CpFCShUaW1a0BVQn TgrJVpMGs28DP4y5+lPUy6mXqihwa9p63dxD5MYp2bgctp+FfcO+v4XICjlpF8s2ANpZ rMgN/nKl/J4ed02w+3k4W0WetnzRT0+AYHplG6GPH3QF0cimLB70pgJIMlILMDSAtPi/ SRkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gMVSl6Bd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh6-20020a170906a94600b00781b67df7f6si478268ejb.167.2022.10.13.12.06.39; Thu, 13 Oct 2022 12:07:06 -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=gMVSl6Bd; 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 S229671AbiJMTGD (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Thu, 13 Oct 2022 15:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiJMTGA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Oct 2022 15:06:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4303D63CE; Thu, 13 Oct 2022 12:05:59 -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 ams.source.kernel.org (Postfix) with ESMTPS id 59912B82034; Thu, 13 Oct 2022 17:58:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1687C433C1; Thu, 13 Oct 2022 17:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683902; bh=45B25suZiRTyMNLHbM6xw8qTu27E00Fp19ufaiOX5r0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gMVSl6Bd+cHXpjEVfdlF8o+AabboTQLXF7SrryLfl41KF6iKzgCENlGkme75nb61u fZqvnXsooImKbXKiRKgrIHw4zt3rn/5tCdg4IYnIia4HItti2MS3gDnB4aC+S8FtqX 9tQ0/WsnaPR2dYqm9qzy8oWt/BPeB3zTt9rYOkTs= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Cameron Gutman <aicommander@gmail.com>, Pavel Rojtberg <rojtberg@gmail.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com> Subject: [PATCH 5.15 25/27] Input: xpad - fix wireless 360 controller breaking after suspend Date: Thu, 13 Oct 2022 19:52:54 +0200 Message-Id: <20221013175144.475451252@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175143.518476113@linuxfoundation.org> References: <20221013175143.518476113@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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746600488209863128?= X-GMAIL-MSGID: =?utf-8?q?1746600488209863128?= |
Series |
None
|
|
Commit Message
Greg KH
Oct. 13, 2022, 5:52 p.m. UTC
From: Cameron Gutman <aicommander@gmail.com> commit a17b9841152e7f4621619902b347e2cc39c32996 upstream. Suspending and resuming the system can sometimes cause the out URB to get hung after a reset_resume. This causes LED setting and force feedback to break on resume. To avoid this, just drop the reset_resume callback so the USB core rebinds xpad to the wireless pads on resume if a reset happened. A nice side effect of this change is the LED ring on wireless controllers is now set correctly on system resume. Cc: stable@vger.kernel.org Fixes: 4220f7db1e42 ("Input: xpad - workaround dead irq_out after suspend/ resume") Signed-off-by: Cameron Gutman <aicommander@gmail.com> Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com> Link: https://lore.kernel.org/r/20220818154411.510308-3-rojtberg@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/input/joystick/xpad.c | 1 - 1 file changed, 1 deletion(-)
--- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -1991,7 +1991,6 @@ static struct usb_driver xpad_driver = { .disconnect = xpad_disconnect, .suspend = xpad_suspend, .resume = xpad_resume, - .reset_resume = xpad_resume, .id_table = xpad_table, };