Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3090836rwb; Mon, 15 Aug 2022 17:54:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ao0KpanckEBfmk+IP3y+MtHL/KgJD8qV0TGrbfuhwg3ic9XLXN2jWlZFj2acuu0gdfodb X-Received: by 2002:a63:2008:0:b0:41d:7ab5:ca31 with SMTP id g8-20020a632008000000b0041d7ab5ca31mr15870273pgg.17.1660611256378; Mon, 15 Aug 2022 17:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611256; cv=none; d=google.com; s=arc-20160816; b=UjTPfIH1cS/yOc3Fp/ITxQ+BSrXFtq84v6gLLTHAoqOMYJk7QMq/h7L41RcvQaDNzb pvlSi9FFxg3nopf+L3nna0H9bcZ+LQsRly2Ru8BBCP7KpbS3DpCdk4XQdxWntb+sX951 rq+0bryIHszvK5b0cuDduPLYesHfGV+3gtWQR8t6SsXpl/LyAPxglBWcuORHlAkPAXsA ARDgB5ZG4dCyGSG3jpYFDarW+Jazuq28aWSxvDpt0M2EGbUxpWYR6qnu4t6m8FA6qHD0 BywzThULa4G9nMtDbsi8o/TxfyTJuwqAyZi8siAGA2qqIDL42BmQBVijsw6F7u9yzgVg 54GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mCK5eyprRPdHcv7GQLRXDjWp9T4tMjIgHRk6c+kJWjk=; b=O5kVdWLun3BEHY6/IaLJRP6S4VkI5fr7FKHjHLnZF8gUcUiTu/oR9TnszxI8Ixr7Jh 9Hk2xhLyyBlmByMbXq2zeLHYWVvJymXawAYvMmQEm5LyO33fG+lX0By219PJEThxjCxO JYcBMlwR54UWSXIxaZTdvGjtoK8CsoUQHHzAx/OZQ9PmUVxcyEAvRCaQOuK5EU/MnT7c IMmzW+3n0dNfyOzc6UFYbh1uWa1Br+BSFIM6fyjEdqS1MlSH9nBEKBUvAYKcnny8ONsA ur0b1Su52lVln3ZWpvi74+X3IYzcPmUSV6y+Cc9mfLELkHiCMqP1ybRA4BfRDPM6PAJ5 rl8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZzWweqMB; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902c40700b001677fa2026asi14223142plk.609.2022.08.15.17.54.05; Mon, 15 Aug 2022 17:54:16 -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=@linuxfoundation.org header.s=korg header.b=ZzWweqMB; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355206AbiHOXzv (ORCPT + 99 others); Mon, 15 Aug 2022 19:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354728AbiHOXtz (ORCPT ); Mon, 15 Aug 2022 19:49:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E76E86077; Mon, 15 Aug 2022 13:15:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 02F1560F0E; Mon, 15 Aug 2022 20:15:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06BF4C433D6; Mon, 15 Aug 2022 20:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594551; bh=UQf+tKQkS6szeiWBjYbSKzcWe/vs1LZxCnIr6JbI4us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZzWweqMBM5V8KD69tP8blaGWV+LuqsczNdJBVl9UWqwT9BUaAXHB3M11fVtE2/KMv e1buB3uXiv3crgAhci1XZCk9BKzjnjcv1H/S+vRffkNvRMMswwPPVX93lkr+ZA1PCx usZy1ngSMYoMJkPwOJBzKVANpkhPyDIt5Cyjowzk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Baryshkov , Stephen Boyd , Sasha Levin Subject: [PATCH 5.19 0439/1157] drm/msm/hdmi: fill the pwr_regs bulk regulators Date: Mon, 15 Aug 2022 19:56:35 +0200 Message-Id: <20220815180457.193088196@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: Dmitry Baryshkov [ Upstream commit a18a44e9262d5c7f7fbccbc9458df64d69185d41 ] Conversion to use bulk regulator API omitted filling the pwr_regs with proper regulator IDs. This was left unnoticed, since none of my testing platforms has used the pwr_regs. Fix this by propagating regulator ids properly. Fixes: 31b3b1f5e352 ("drm/msm/hdmi: use bulk regulator API") Signed-off-by: Dmitry Baryshkov Reviewed-by: Stephen Boyd Patchwork: https://patchwork.freedesktop.org/patch/488847/ Link: https://lore.kernel.org/r/20220609113148.3149194-1-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/hdmi/hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c index cf24e68864ba..73070ec1a936 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c @@ -180,6 +180,9 @@ static struct hdmi *msm_hdmi_init(struct platform_device *pdev) goto fail; } + for (i = 0; i < config->pwr_reg_cnt; i++) + hdmi->pwr_regs[i].supply = config->pwr_reg_names[i]; + ret = devm_regulator_bulk_get(&pdev->dev, config->pwr_reg_cnt, hdmi->pwr_regs); if (ret) { DRM_DEV_ERROR(&pdev->dev, "failed to get pwr regulator: %d\n", ret); -- 2.35.1