Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2730823lqt; Mon, 22 Apr 2024 22:34:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/mXd8rFdb3BRLOuzZQM/a8ye4QehUuG7O27sNfg7+dKee4UEJ5sUAWwrUjMjP+P6ezh5Rgcbw1EoIwTbcBdrqguVFDnwRSCrIgHB24g== X-Google-Smtp-Source: AGHT+IHCc79UotDilps3et5BCRuhR36W7C02/PsNAnPtV/VLQiB+fg9ECF9Po+eiGkVieQcXLbSu X-Received: by 2002:a05:6830:418f:b0:6ed:3f5a:3203 with SMTP id r15-20020a056830418f00b006ed3f5a3203mr4368588otu.4.1713850471104; Mon, 22 Apr 2024 22:34:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713850471; cv=pass; d=google.com; s=arc-20160816; b=HemI7wsjXdL08IMuAH+mrK4nLw8jAnZF7toMsCu5QuJTAbIAQV02D5UlHgzef7IzUW 27+xQGGY9Qx78Wioy9zdpM+UK/cqFj6/tmhH0KNOlGfcyVtcx44/wDmSNAJQ/owg+Zh7 WtlNttHl6yIItL7IL6Ir048fA3RavXMci1+bRHDoKDCvouhqwwazVNMckOPeoFRz5pZG PdXOGG9UTPXKq8MVFajVekXPTA6nV69vMO4IAfmSrK0atbKZsbfi46uShs7DgrjF2HNH gwNv3wAClmPdlxiSOJ+UAafZiIGa1e1/4I0G3UYPEa53jr2CMLwpE8A/Uf7ni3pIVp5F f/AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=3O1TMHKBNAmRUmE7bpKGTH8cd0k0cwG1jRC8CwcKBgo=; fh=nBxRm3IWe8YQZ7iyThTzUrBvxco7e4Rk9LMAAQ0BsUE=; b=HkBgE5k6JvCy7YBHX24RxUdlTYgQnfKuX8yB8kf4yLXTY1FxJJJCPYXXOcai44bkci vbNrn1/joqaA/dGqYcY12q6t1EGMpUG9FbvBNcuRpDUCKK2BFHHS08viAOB9xoW56tzW 2+7hbMt6bsFGLCkTdtK02CtN9+BRGwf1Hdy54a/s4Q/LOgVbWB22RsAn8ol+vispvNKX /ZwPUTiYQDV2bT3j4sRxaeLi6rfc2oYvmTFQFqNtkmZeEPES7IQg2+nONyoJLcSoT1u1 5mi+rzQyTtHr6FzwefmQRmsu0E2ghFI3uRVjx3tlGAkC7g12pN8qzPA4XxAIbZw3eHJ3 oYTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bIiexB48; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t32-20020a634620000000b005dc962cfb59si6074258pga.350.2024.04.22.22.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 22:34:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bIiexB48; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B7C4D282BC3 for ; Tue, 23 Apr 2024 05:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BC8420DC3; Tue, 23 Apr 2024 05:34:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bIiexB48" 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 677B163C8 for ; Tue, 23 Apr 2024 05:34:24 +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=1713850464; cv=none; b=gLUfiLxmQs8GSCrkrZiu+CPRg3L3n+H7PasGA6kquD/cAY+WogSWCWPWKW9S/icA4j9FQDyxyUBLMQ67YNLs1FcjutsRv3kH2hZovwMyFegMpJqlo1ociH2mSy7VzC/RUB46eQMaTtK+dFfRfeXy6gDa/VT3XTFQ1z7Hz92+6EU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713850464; c=relaxed/simple; bh=wl33m1m5cEoe49D2s1ZHPhV/BK2S0RFicqiib2V5jXc=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=kJkGiGea3imPapD2WrD6eBWsE9qnrarsEdXinZ9T1W4YDm3PgF8Fe/UQUMZiQG/Ql3tWLBNJQCsuKIA3dXyIrYvArRk49GjzRRTGfeH33VLMryi71IMFFm4GS2jKEOs1vL7YIKgfG3HGp3gT1ApDDV6hbaLPGmU9Tbd8SlsJoew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bIiexB48; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2CEBC116B1; Tue, 23 Apr 2024 05:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713850464; bh=wl33m1m5cEoe49D2s1ZHPhV/BK2S0RFicqiib2V5jXc=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=bIiexB48+GS5yxoZn1hGe0wmZlIQwxTgcQYKlrxe59K/RJhrBf9iSP9Ne+HCfW32L HENsyYW1z9mcENU0OEsV+q1QNGE/bafMzcaRgEcnbW/d/i2EONbaC6Dxxe9V+QkZLZ reKF7w6f3oE3TuPr/eW6zCqvTd6oVfIM2UtFg7mcufKxe8Acn1X7Jp9vv5JQMQvuqR HajEnFli115vO66kN4NYMuhAyfPmJ4smLvhUXFNg7NR2ju6OtZFhmiDk9ff2lyZFjZ himiD5I2D3CahRCnT7WcHk1wyKAN2DrM2Kuve6w2Rgy59i4n0ClZ/+RWI68SEtFh3a sl10HRXv3RihA== 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 stubbed devm_regulator_get_enable to return Ok Message-Id: <171385046257.1774956.13833475166479174352.b4-ty@kernel.org> Date: Tue, 23 Apr 2024 14:34:22 +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 Mon, 22 Apr 2024 09:38:33 +0300, Matti Vaittinen wrote: > The devm_regulator_get_enable() 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 and 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. Furthermore, the stub of the regulator_enable() seems to > be returning Ok. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: change stubbed devm_regulator_get_enable to return Ok commit: 96e20adc43c4f81e9163a5188cee75a6dd393e09 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