Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1169246rwd; Thu, 15 Jun 2023 07:13:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LGZqkFVmwMHn4bR8cmgNjuLqGvPql5fOsGtu/Km2VzUElPxDuX/PQXzHY6az2nqvkJnvh X-Received: by 2002:a17:907:e89:b0:982:a454:6d24 with SMTP id ho9-20020a1709070e8900b00982a4546d24mr1689990ejc.74.1686838431263; Thu, 15 Jun 2023 07:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686838431; cv=none; d=google.com; s=arc-20160816; b=dsHwciv8R8uEb3iCJgccjHtmtvH9PBGR0l5dloUWVHQs3fjOQjAzlY0CKPvWKlQ8bc S56+EQOKcxQzf/0rcJAMBThcFJKtmTm1aue0p+abkwD+LjtgfGH7V5jUevKxCt4gGi6t sA/We5WOn7nquyawOxyQ9fFmpgdWlRVIcdsAN1wGlJDdztmo3oOfmxlnWVIxtuu6LVi5 a3E8MjlxnsMJtXEzqo+W8KRCQR1sn2XKznmk6IAuHJLRN/aWn7zCZRh0tUvLuu9JPfyN sDMV80/ODN2l5yes7ssNJLiA430dvy1GoV22HuVN/LFueNvN1KVoR0yN6Sy8wfbYyLhJ ZxIw== 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=MDM0/pKGCZs9jNDsqBn5l5riWVsBM8itosQuScaTMlg=; b=vo0OGxeXDobtDZ+1sQ3xUFiKasUuAAXQhbzAClsB5TeBODx0DdjM+PW4DqsgP/hyxR j86YYN/hgmMNeicTWv9u49ZrOhVVpL6CjG92a2ewPUOYwo4D191Fay9m4+TJrs74gqj2 b6P2wMq1YmIAuKZWLgI1V9Ge0U29dyzUAxJx6XgAcEVWoPRQCvB95T4oyYDXibCxRu2H +z0Zw2dMfkSpPqqgLJfdv9hZSfwrIdi8UdrkhDcp6vpbsVWtvPPLxMfBcJ3nHEYNtMB8 CRlwty+6SHikBqcyNsJC+XHNDKkZ2DNHukL0f0p83rL3p5yioAhBtmbJ5OgKOB/3lKzj bxRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTEsYhfY; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a170906718d00b00969f8ab1d5csi8952251ejk.187.2023.06.15.07.13.25; Thu, 15 Jun 2023 07:13:51 -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=@kernel.org header.s=k20201202 header.b=eTEsYhfY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344708AbjFOOFq (ORCPT + 99 others); Thu, 15 Jun 2023 10:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344704AbjFOOFo (ORCPT ); Thu, 15 Jun 2023 10:05:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC2BB107 for ; Thu, 15 Jun 2023 07:05:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 48D3161D2E for ; Thu, 15 Jun 2023 14:05:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10069C433C0; Thu, 15 Jun 2023 14:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686837942; bh=pEsBk/1CX2xgWRPlvMgLiWhEWL+m3P52hV5LCf6LOGQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eTEsYhfYEOcld0j8WfzIP4utqRbNs8yDiqyY5dj0hSSaUKQ1JOVEisxVY5FZmXHVo 3/tk4SZiAyV09edh7aXGlsovR0qSEQx6hbUswl0b8iYxxM/vEobIAg3BoUkGRI1eDP zazO+hlPBqfRE5oFrkjRrazvlRcT87jLwBO8K2+B108+vCEy0n1s/Whns08skUaExG djWWBaH/UDFv4WahFWutmssy1MZsxFYXM2+YaNQz3uyXNH2taN97D6DBUJ4RUVuLZ1 ZZNgCrs78wy59OiDp43ZCCTbYMpfi3SvWFQy+hePGJ2F/4WoBd9ddBonjK7Ex60MrS m1SG7IcSg1ecA== Date: Thu, 15 Jun 2023 15:05:37 +0100 From: Lee Jones To: Amelie Delaunay Cc: Maxime Coquelin , Alexandre Torgue , Amelie Delaunay , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH 1/2] mfd: stmfx: Fix error path in stmfx_chip_init Message-ID: <20230615140537.GF3635807@google.com> References: <20230609092804.793100-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230609092804.793100-1-amelie.delaunay@foss.st.com> 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,T_SCC_BODY_TEXT_LINE 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 On Fri, 09 Jun 2023, Amelie Delaunay wrote: > In error path, disable vdd regulator if it exists, but don't overload ret. > Because if regulator_disable() is successful, stmfx_chip_init will exit > successfully while chip init failed. > > Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver") > Signed-off-by: Amelie Delaunay > --- > drivers/mfd/stmfx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks -- Lee Jones [李琼斯]