From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEE6415B986 for ; Wed, 24 Apr 2024 14:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713967521; cv=none; b=UrCHXilI36pARdfGc9qk/7v4lm0Bgh9uDxtfyhP/z22PTLkFuqeLJD/MrnRP7s4UBLmFrbf/EJ7zm6PZ77Z7nsKWLks8a3Z7zY7hj9FGt3PE5qeuJFQnTVEj8orQgFUNFZmP/VgYx6CS8rgWnphkCzvVY3U44b/l2Kfyhs3/A9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713967521; c=relaxed/simple; bh=4SJtdaTjsf5SlFRQaf4S7zUbhDdqyb6snZP2XyBRKSc=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=HVfx+7avQoFLMZKgwl4I5/LnfbVnfNNMOZUbhbPwyudO1K/GTv9JaTVtP63eEF4Qeyf7Z804wmwZ/k07WnSc1X8p8YmoFEns7SLAB4RAnbqBRdb2nlDxRG+9Je5RUR9Y2yiudbYl58yZmSR4vitfNe+wymktDOYtkNLNZ2OXkio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NMYtRAGd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NMYtRAGd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17C3CC113CE; Wed, 24 Apr 2024 14:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713967521; bh=4SJtdaTjsf5SlFRQaf4S7zUbhDdqyb6snZP2XyBRKSc=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=NMYtRAGdWkBMaTV7DfzwijJ6jca+ChyqJzITpUswwvWPgJEtKeZ/CpAphHvTj8YN9 5iLXynLGsF/L/zcVF4omD/VLl2l6xpicrp5RbzZEowNQz5OD4RBIXFABzXYrNgk+Ad h1acPwRPTFEyBnbeZoQbpiQgfjQIxMo/t328RT0GugXx9ig/qFmqn7Egokwbk1cIZq OaYSBtua/NrzsgKD2NHkGWH9Hx/CMmt3KtuFbclLD/hlqeHtvudrG8dhwmB3PsVulq i/OOp3vAZAVluv0a/VDkmTJaIYuuogPZevvQlznfXTAUB7ZkjOFxbNXgP6GdQy4lAj I95dDWlIdiOxw== From: Mark Brown To: Matti Vaittinen , Matti Vaittinen Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Aleksander Mazur , Guenter Roeck In-Reply-To: References: Subject: Re: [PATCH] regulator: change devm_regulator_get_enable_optional() stub to return Ok Message-Id: <171396751942.1800997.17688066759852563892.b4-ty@kernel.org> Date: Wed, 24 Apr 2024 23:05:19 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14-dev On Tue, 23 Apr 2024 14:38:28 +0300, Matti Vaittinen wrote: > The devm_regulator_get_enable_optional() should be a 'call and forget' > API, meaning, when it is used to enable the regulators, the API does not > provide a handle to do any further control of the regulators. It gives > no real benefit to return an error from the stub if CONFIG_REGULATOR is > not set. > > On the contrary, returning an error is causing problems to drivers when > hardware is such it works out just fine with no regulator control. > Returning an error forces drivers to specifically handle the case where > CONFIG_REGULATOR is not set, making the mere existence of the stub > questionalble. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: change devm_regulator_get_enable_optional() stub to return Ok commit: ff33132605c1a0acea59e4c523cb7c6fabe856b2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark