Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3242570rdh; Thu, 28 Sep 2023 06:43:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfar2h+bYcnGGwkfIzpFOxM/GVXtBLPm/LhOFtqSKmHROFAOf9lIGDoJH79VwggTGzEwNE X-Received: by 2002:a0d:d9c2:0:b0:576:7dfc:e73e with SMTP id b185-20020a0dd9c2000000b005767dfce73emr1171468ywe.32.1695908614945; Thu, 28 Sep 2023 06:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695908614; cv=none; d=google.com; s=arc-20160816; b=a/8ax2XaMhO7TF8VXvJpk3oujHMsEq9xkeKNmKMeNL7PWOfYjskU1OqGWWQiSHi2EA +oh+vvnlmAzoMjNY3HMSvdiMPB3IC3M3ixxT65F72M5e340ouQYMXzfSiGtUT7H3JdY+ wxKggHARXAn03iPQUkoh5/I+OB5Dd3XmHTHGVFKBIxlTQ3F8deD+Ky2wp1+roOeYyOzN 0IlHzjMyF6drjT28luYh9TKHS/8gCa1J/Q8Bs8T99a2pjsVt1NVBqiTGZtnqtDUxghHN MNy2YCwbT+J99fN+jxBDHN3PrUGrZUSfAL4cKoLEodIXOUiWlBYwAeI8e/Seq5xxD+88 qn/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=93G1xRSEaEC6XR+IyZ7rl91jNyKpmuE7Xs7QJDMEtaI=; fh=L0tXFvleOe6ZMN96W/omzutIpuOhoHq++Or8n09icX0=; b=Q8mZt0qV8O9L9MHadmtxWKd2pd+2oiosV4UzjsBfJl903d9+Lh8ICPENWSVIbbrvSw AZE7c/QFg75E4sud8g6pRbj+U1gxffQoyn3HPuo8uQLzcPKwpXnuKGAVXSQp0W23lu5f tx7hxmp8bgg3Y8AzTR9XyE3l5Nprx7SfEWGEtEJRgf4hr18gnnC9ka2KhSe2p0NFO/yl xq0ddt5kncs7pBkABUKfqJBstQD1sNsp7ZdKcekZyvUuMghduzSAIhdhyXBot/Lg1AHZ /wdEvrrjtNQkgZd7MMHorHzjczMr4w6VyrhQV5k4V990i12UtubpI0PVYc75anLjEUKY aznQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JmPchohD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a62-20020a639041000000b00578cc82870asi18234051pge.344.2023.09.28.06.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 06:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JmPchohD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 276F5806E4E5; Thu, 28 Sep 2023 06:38:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232102AbjI1NiF (ORCPT + 99 others); Thu, 28 Sep 2023 09:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231868AbjI1NiD (ORCPT ); Thu, 28 Sep 2023 09:38:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D00292; Thu, 28 Sep 2023 06:38:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7874BC433C7; Thu, 28 Sep 2023 13:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695908281; bh=tNJPrSt0EbpYHgUGMbTFOG600cX1nU2foR/sWCpczbM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JmPchohDyoQ6K0w5lf2CBErfA/MK9ZiuDsSClS02RQTKpm36prB0Afz4G9prWxgNa zgGeel0htRoZnDUpGT4kmqcI2+KZRs9cFvwT0ehSaIGNBeAW8Dc0bsBO3BQlkbatOT i4k/EEVwrJYA0nUP309m89dkrCztL/rL0tDyQhPfNkvWsANgU7Fh9lbCD8d/JiXsVW slyMxycwEMCZaz1BypRUfJMMjdsZT9zNTNky6UjK6O6cvdEhNEdjRkpkXAa30ZnQCt SRj1FE2QRYTSonX4Xp3UJTt6QdqRh4+cD3+XMupimFUtT8NVq38xwuDUBdeLE9m6KG IClVlEMWWIgFQ== Date: Thu, 28 Sep 2023 14:37:56 +0100 From: Lee Jones To: Chunyan Zhang Cc: Pavel Machek , linux-leds@vger.kernel.org, Baolin Wang , Orson Zhai , Chunyan Zhang , LKML Subject: Re: [PATCH V2] leds: sc27xx: Move mutex_init() to the end of probe Message-ID: <20230928133756.GI9999@google.com> References: <20230925032453.724518-1-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230925032453.724518-1-chunyan.zhang@unisoc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 06:38:18 -0700 (PDT) On Mon, 25 Sep 2023, Chunyan Zhang wrote: > Move the mutex_init() to avoid redundant mutex_destroy() calls after > that for each time the probe fails. > > Signed-off-by: Chunyan Zhang > --- > V2: > - Move the mutex_init() to the end of .probe() instead of adding > mutex_destroy() according to Lee's comments. > --- > drivers/leds/leds-sc27xx-bltc.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) Nice patch, but doesn't apply. Please rebase (onto linux-next or for-leds-next) and resend. -- Lee Jones [李琼斯]