Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2809824rdb; Wed, 4 Oct 2023 12:05:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2ZmVmIu1gPkrPghqJ7BVLXVA27aHSDLWn884CeQYrkQJsSCb+ZJSVPHH9FFwGJvYP3CHw X-Received: by 2002:a05:6a20:549b:b0:153:39d9:56f8 with SMTP id i27-20020a056a20549b00b0015339d956f8mr726584pzk.15.1696446303161; Wed, 04 Oct 2023 12:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696446303; cv=none; d=google.com; s=arc-20160816; b=KTBwUoTs1U8R/7lpJi9Ukrbe244/KfSygbQVLz3ok6cTmStzytrTtiwAsnlZoBxa4d W4VtI4bB+8+IFDDbzqT2OPpPBTEvMRAb4UtFJWXKy8wXIBsBtMgmvt6vW4tMCdy7KbjS HZ5dbwBDckMJ6d7WpSiU41Wq87t8NUKHFdN5eH2JsnbUga7t9UPnK/20NDTO259yUkNz 4TuHQqIN+ZYEX85D+HdNuiBcbxjgs0WGrBfJQ4S2HdGxXxlBAZAWj6gVFtUflXg1dmp8 ZwKI8dkPtKo0PTtQMDvQLxDyVm3AZmXPt9MGvr/IYbrDmZPkkkAZros68q9kdwo+4Wvj E3Jg== 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=/TG1JA4YJzCGnL0V6R5BkB5KUwQ2uG/IodMPPRwnOzg=; fh=AN+YgGjs1XfzEjl0O8w8Cr7ekLlPv8Iu4yW13Jyda2I=; b=Z1j1o+Ev2C2joKTKv1Yf305PzqalMK/M9Pr+nSlN41c2jqKd6FeS3/92x5j68FoKCo 4lcHEcDTKfUbb+6SxYiADbxp/XioFbQqZxlhVmjY5tbD1wcJ9y3fVBApkb94/5944nPD NGeTYfo9cS99MGLor4V1e229pYwNr9qask7K/aYARNqQh9+rIx+sFHWJzIi7H00awKbD 3HhRu+LOuUVTUn6GKpCj+ijO+odZ3Ykmfxg/pOFI5OfoyCX8L0MvAKl5YXbVPfuaLl7e u0iXbCer94eYEDMugI6WJ95MhmDoetAsVhYNnxrNbrS5TVka4Mcv1cGvAUV9ewVVSR1f 2Mgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jHIH1Tyn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f20-20020a63f114000000b00578f6d31b78si4160001pgi.73.2023.10.04.12.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jHIH1Tyn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id D5FEE840FE3E; Wed, 4 Oct 2023 12:05:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245457AbjJDTEx (ORCPT + 99 others); Wed, 4 Oct 2023 15:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344652AbjJDTD3 (ORCPT ); Wed, 4 Oct 2023 15:03:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77E78618D; Wed, 4 Oct 2023 11:58:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1C37C433C9; Wed, 4 Oct 2023 18:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445915; bh=tq7NZFlnZHqJn3BR7loczaVqdjig92RJVIObjwVIOys=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=jHIH1Tyn86fi7HJ9R68SYq3FokwFMukaSVyE6JHrGJt/2Zw6AbBcl/kvKVEkjwIUz PhPPGd/6diC/Z1PZuK89LdT8P4Q5P8X7zfUGxGUs5bRKwgkjpLFh/MxdrVBZETgnaW IYjoeBHoulD3NmJQhnRMnyiPVC/F8Tufgn1BC07yrpFR830JiC4mG4TH4qxM8abQAr MZ9/0NDyuvF0N+qSDtgqtg6I6Ec+cLaf+pIYcO55Zw0077wbLXWsLfvS6hMQ6mFMLa Ov6l5L7uj2JQbNMF7kBWdqteIAJh+f9uinwmPhzsekZyN0esobhjjMC52ZuKr4rCRC 3kYcDXI+coQGg== Date: Wed, 4 Oct 2023 20:58:31 +0200 (CEST) From: Jiri Kosina To: Rahul Rameshbabu cc: Benjamin Tissoires , Christophe JAILLET , kernel-janitors@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/3] HID: nvidia-shield: Fix the error handling path of shield_probe() In-Reply-To: <20230918115432.30076-1-rrameshbabu@nvidia.com> Message-ID: References: <20230918115432.30076-1-rrameshbabu@nvidia.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 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 12:05:02 -0700 (PDT) On Mon, 18 Sep 2023, Rahul Rameshbabu wrote: > This series fixes some missing clean-up function calls in the error handling of > the probe. > > Patch 1 and 2 fix some similar issues introduced in 2 different commits (hence 2 > patches) > > Patch 3 is an enhancement that creates a common function for cleaning up > thunderstrike instances. > > Changes: > > v1->v2: > - Add the LED_RETAIN_AT_SHUTDOWN flag to prevent > led_classdev_unregister from trying to set the LED to off before a > successful call to hid_hw_start. > - Rename err_haptics label to err_ts_create to make the label name more > accurate. > - Re-order operations in thunderstrike_destroy to be in LIFO order with > regards to the operations in thunderstrike_create. > v2->v3: > - Refactor thunderstrike_destroy to take a thunderstrike instance > pointer as a parameter and prevent a variable from being unused > in shield_probe. > > Link: https://lore.kernel.org/linux-input/cover.1693070958.git.christophe.jaillet@wanadoo.fr/ > Link: https://lore.kernel.org/linux-input/20230918041345.59859-1-rrameshbabu@nvidia.com/ > > Notes from Rahul: > - Thank you so much Christophe for these patches. > - Sent v2 without accounting for the fact that thunderstrike_destroy in v1 > makes the thunderstrike instance in shield_probe unused. Tested v3 with W=1. > > Christophe JAILLET (3): > HID: nvidia-shield: Fix a missing led_classdev_unregister() in the > probe error handling path > HID: nvidia-shield: Fix some missing function calls() in the probe > error handling path > HID: nvidia-shield: Introduce thunderstrike_destroy() I have applied 1/3 and 2/3 to for-6.6/upstream-fixes and 3/3 to for-6.7/nvidia-shield. Thanks, -- Jiri Kosina SUSE Labs