Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1599895rda; Mon, 23 Oct 2023 19:02:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELC15hX5t9rhN4Foa3iLC6q60A/sRON0zbSAnkaElTAYMhR9a2i7fsFfNFm8aUXTsYmije X-Received: by 2002:a17:903:11cf:b0:1ca:a07b:365 with SMTP id q15-20020a17090311cf00b001caa07b0365mr18699347plh.16.1698112940652; Mon, 23 Oct 2023 19:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698112940; cv=none; d=google.com; s=arc-20160816; b=j8bR59730aKtAkI+NKWpRidTspojTaKkKDFh76wEBSnMv3KXyH1W+KNpIgHAv8yoLm awIubxVHWKYuz0YyOY+ieo+I+0D8NN6ylM6Zj+TYWInxrAlS+0SPEQHkfBM/tzTs67W0 FXbIxphK9JUiVhBr4LKTnHMA+jG9YZM0vNsp87fCL07Eh0rJWWT894lehTpMIbbw8dKe aRPrNQH/hUrR6wkah+tKa8xSSc4iE8K7+BV3panv7TP2g09KbgawawLHqRJsX0JwK2qb Zq9Gaw1TeYc05a9E9WKQH5GrGuz6K539VGn4SdAgGHJ6WS6yk8OXvBSQP3OxBe5T8DnV Rjhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=drRK/K0tV/cY86qTeIdR104T/cEoID88FbbQZTchtNY=; fh=ggUcabh/5lDhCDOBGkbOghDfhS5yaLyOxTrBN/dpmlo=; b=AeDOkdaeJdCEeKsDO2acpIyFL1lhMajXylP500bsMRlXnmGL3OfzDM+vU6rtUUvkPo HpGAKR5H8IaVvjrrcf7m6+vv7yROQKgZYF1nyvO3aDNUVu4WqLqQSRG+HH72usXF/r7s psH/dn+HYbvdp4r3sz4oRwMRb9UA13fI/7ICK3p6VtoeuSgNosJOYcaQsZ9npwh5OQty smZgqXGwT7FYueKMSMlm69KAGgHMPNPsRAB8mY/vxRLPTaIP4YPtPUaZM6bYUpEzGo07 ajsi51ycyS7ZXvBKJrq+rDyibBUGv9wiyFyzB3hHc+pXQ8RMsmqhvVlUOkkJ+2sbOQrF nvKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d81FuffP; 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 128-20020a630286000000b005b56de1fd82si7272639pgc.272.2023.10.23.19.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 19:02:20 -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=d81FuffP; 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 71A058069D89; Mon, 23 Oct 2023 19:02:19 -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 S231888AbjJXCCQ (ORCPT + 99 others); Mon, 23 Oct 2023 22:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbjJXCCP (ORCPT ); Mon, 23 Oct 2023 22:02:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA81DC2 for ; Mon, 23 Oct 2023 19:02:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63B32C433C8; Tue, 24 Oct 2023 02:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698112928; bh=Y0IDUpPqy/a+gLZUhsDxolAh0A7iBwDaXATelPs27XY=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=d81FuffP6LqRV0kD+T0iDlD7x/fGhw4AWhfKsjzDya9/E4MnNhBxSRuiXEgzNkC/n JiamCuc72hAVx3awQat3slnb68K6UbKEjhmwtTZyzGLJR9yj2pV0/VCIfKIC2/I2Q8 pyt5iJlJ7NYb9OsJ8DSl9NbRnUo2ePemjwHf8aX1pB2710sTQL/fL8uPhW5qRSQ25T hAj555k8fiuXyA34+s+BOVrMk/uWkXxVMn+h2OljuJW7ARz3MQ1Q1tfisLdZlSMq1R +Swis2ZYVIXvchTWHtG9/fOsNe/UflxFkJZvTGGEauvao6dQmAN3VXVqKeGUB+Gk7O sUiqjNnAE+RHQ== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230824104101.4083400-1-fshao@chromium.org> References: <20230824104101.4083400-1-fshao@chromium.org> Subject: Re: [PATCH 0/5] spmi: Add and use managed resource helpers From: Stephen Boyd Cc: linux-mediatek@lists.infradead.org, Fei Shao , AngeloGioacchino Del Regno , Matthias Brugger , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Chen-Yu Tsai , Fei Shao Date: Mon, 23 Oct 2023 19:02:06 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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]); Mon, 23 Oct 2023 19:02:19 -0700 (PDT) Quoting Fei Shao (2023-08-24 03:40:07) > Hi, >=20 > This series adds and converts to the devm_* helpers in the SPMI driver, > based on the suggestion in [1]. >=20 > While at it, I have some patches fixing other minor issues as well, like > reordering the remove sequence in spmi-mtk-pmif and using proper error > return code etc. >=20 > This patch is based on next-20230824 and [2] which is not yet applied, > in order to avoid potential conflicts. >=20 > [1]: https://lore.kernel.org/all/20230821033532.GA21555@google.com/ > [2]: https://lore.kernel.org/all/20230717173934.1.If004a6e055a189c7f2d072= 4fa814422c26789839@changeid/ >=20 >=20 > Fei Shao (5): > spmi: Introduce device-managed functions > spmi: Use devm_spmi_controller_alloc() > spmi: mtk-pmif: Reorder driver remove sequence > spmi: hisi-spmi-controller: Use devm_spmi_controller_add() > spmi: Return meaningful errors in spmi_controller_alloc() >=20 > drivers/spmi/Makefile | 2 +- > drivers/spmi/devres.c | 61 ++++++++++++++++++++ > drivers/spmi/hisi-spmi-controller.c | 32 +++-------- Applied the series to spmi-next.