Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2812168rdb; Wed, 4 Oct 2023 12:08:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELAJgAu7y5ylQb5plindZ30m2jVcH3+76cEp+vTllyox41sTep/2Ea3aX1jSWnWoDg+M4S X-Received: by 2002:a05:6358:e49e:b0:15c:e2c9:d1ca with SMTP id by30-20020a056358e49e00b0015ce2c9d1camr3943556rwb.1.1696446539530; Wed, 04 Oct 2023 12:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696446539; cv=none; d=google.com; s=arc-20160816; b=Fl+xsgDmwWQDks7eREdWwQ9wwMfxwo9xG0zvF8wK4Ije39th+4raGYXrAPyITOfBUi VP5KzGcyJA7DScS00bQkTSQF5UAxTpTKI1kIIGuE47dAz1bEMRvjLvuVEmlAJnupCQBM HzjHkwxo1fsMmyvugf6T5KCWAzmj7veELAzXh35VX0gxsXE//mfdBjw9ZywHVtoHdwSX mXUeYKL4xukhUNjpiR6IHqOGV++ajqmX2E90uXY2qV3sJXExOHzR663PYqXqdXbxQ0xw W8ir0QGiRLja+1X3LSLLCvGumn9Cq377FA6mtx+BSB5QRrqzK4Uq8A5ENkDawkcgXWoR GKQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=4+MKosXrb8Ct2YvZkQYksxbZ62DJPw3YLShBujx5WSI=; fh=HNyBrp7nBXuAShkkF3ZEPgrE0OM2omc7AtF5PqgCEtc=; b=AKcuCFdGwo+4gT/B4tN0V1Al/heah3+yQKWTGe3hkpHeg/90R2gNpQf4Yjwzo+1iu7 SPKPSw0QPqco5LUMxl/fwFrK+w8wDK5ksndHwP6E9YqWCgw7AnGhwi5oSK5DN2oU38l9 fba0BhpXEp9DYz7XN5JjWKXjU57uTHlqWiWDZjFs6XorzEEj5mdSYHDYyQs8X+34gZpv 7OzWr5nLmppv/crMZqqjACsg51Y7gjqUFIMdfUm8k2QHv6Ls7TsZS7C7jm1LkGT9MSNO 574AKQHQV64MYuTvs2VaVYeCMPsMmnLKbo4hnpngvUdeAo742zVGsWF9Of8P5iGfpPf8 AXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cRutD2Lz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k186-20020a6324c3000000b005852e1932fesi4298821pgk.456.2023.10.04.12.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:08:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cRutD2Lz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A4D52823CEBA; Wed, 4 Oct 2023 12:08:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245572AbjJDTIt (ORCPT + 99 others); Wed, 4 Oct 2023 15:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245502AbjJDTIK (ORCPT ); Wed, 4 Oct 2023 15:08:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD713AAF; Wed, 4 Oct 2023 12:04:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65DF5C433C8; Wed, 4 Oct 2023 19:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696446279; bh=FOugjPZCYbC6WkKaxY/8HY2+LvaEd3TPVgFIsSpXr24=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=cRutD2LzikJC6PvYyFmcgbzU23EDNbIdZ8ON2fYHiUi5wg8ZZ4VkfXx62LCVWIIL/ LEUHPTInUrhUWMFPWyeD+gOuMMa24oyUADQ8jtgH5ruwbz73eKPoq0gqILrbvZQMKX Z6sglB54DxsVxpcNaJvfUdA3OOP0AiKOXAZzE+EZJU+BWXMYl0nEuXrVboQYpbCH/p 7/5SOwanq/MiZGRDeRuCRVJFlscMKpksJEwwKK62LP07Q1DpIjyR9Cfmfhn4pfHqw8 ShijCM5sP8YTQNwy59xtFE0Rb/4n7yyo9BDYbiIsH25T5n7xPgLCji5y6keVPfMWzC CTaoyQW/A89SQ== Date: Wed, 4 Oct 2023 21:04:36 +0200 (CEST) From: Jiri Kosina To: Martino Fontana cc: djogorchock@gmail.com, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] HID: nintendo: reinitialize USB Pro Controller after resuming from suspend In-Reply-To: <20230924140927.9844-2-tinozzo123@gmail.com> Message-ID: References: <20230924140927.9844-2-tinozzo123@gmail.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 12:08:58 -0700 (PDT) On Sun, 24 Sep 2023, Martino Fontana wrote: > When suspending the computer, a Switch Pro Controller connected via USB will > lose its internal status. However, because the USB connection was technically > never lost, when resuming the computer, the driver will attempt to communicate > with the controller as if nothing happened (and fail). > Because of this, the user was forced to manually disconnect the controller > (or to press the sync button on the controller to power it off), so that it > can be re-initialized. > > With this patch, the controller will be automatically re-initialized after > resuming from suspend. > > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=216233 > > Signed-off-by: Martino Fontana Applied, thanks. -- Jiri Kosina SUSE Labs