Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3087618rwb; Mon, 15 Aug 2022 17:49:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR4mkWPoTQP17w6a2v0yz7sW1mVUsFe9lA8M/1jWebWsqrfpEOU+PBNtflRjZmq0KFp0sTUB X-Received: by 2002:a05:6402:5488:b0:443:39c5:5347 with SMTP id fg8-20020a056402548800b0044339c55347mr15716679edb.204.1660610979029; Mon, 15 Aug 2022 17:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610979; cv=none; d=google.com; s=arc-20160816; b=p+mamOVoDtrYwDfaBrgiv4mqP5MOw6ha7omBEK8Suu5iNJXFMcbGqDaDgviH37UX0Y 4w6GOcVl6AVQJw/BMQrm5iYBj2KPvAj256O8APApUj+K0gz8DNOF5ppo5UpziDxBw1SE 7F4zmYi2N1utES48pBHzbgIvCKJccmBqivTOQlLCFhv/WeryeRoWuYHWsbOPSG76YIro sZAKH+aEFmVxnHWNO6xH9eHOypoS2TnE2EgflWlJ2vgOyKdZGOYBNHm287DjdSijD17v O+W+R2d8yakI8TwIt6YdI1bwf8ReAryA2KhCAJ6yOmJus73z3WWQAN/NRs7LUfll7go9 Ki/g== 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=6idXh38da2zolvEYyGmEEBoAu4m1ayo/kxBbQKhopC4=; b=awDeCrLCHPAKi+8e21k/YTpwYfWnWzeSjJ4ppFflQ3L2C4H04iSzH3NC7lt7adT979 T5hBMebbR7dIDgqfl1HdqSeG+WUQqanKGx8lVRvv1Q+451AC723UpnIRlWhDBdIDq1Im ykwpr5h1Wv0OiCcqRMn/eYnqmDPosCuYj/YPEwX+9/xcI1T7sWF6+oeJoFfT/tslXQpB CAmUbtgkH+uS1JgWwHGTL2EVLddUqJwPeObvcoiD/rx25F8OrY+27zsIHMKrFgVSAWvh Byf2bNgWroIgHMrNIPG/Hh3PSTPuwwr7lPNEPsBdiaT4tIc/1aaCwoV6am0Knq3CaFUG divQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ymy+Ynhs; 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 a7-20020a170906684700b007306e797e93si7486380ejs.51.2022.08.15.17.49.13; Mon, 15 Aug 2022 17:49:39 -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=ymy+Ynhs; 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 S244174AbiHOVKr (ORCPT + 99 others); Mon, 15 Aug 2022 17:10:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346834AbiHOVGZ (ORCPT ); Mon, 15 Aug 2022 17:06:25 -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 95C49AB4CB; Mon, 15 Aug 2022 12:15:19 -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 889B960F6A; Mon, 15 Aug 2022 19:15:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91B1AC433C1; Mon, 15 Aug 2022 19:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590917; bh=spwZJtPCOaCQx479iBlNNrKXgaCqoQhwNGPt9q4iVOk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ymy+YnhsPWnESgcgmylVDEquDXDlsaaxopbajyAoU2sQioJzxsDsum74RG8ayMCQq dzrqKPTc0N7lWZ+mLloQyna5pLZ2cn70zLr/CNQ/JkCGAGWDsVq3DndqagvkbV77yZ 1oj31ufQ35aG6nQS+zOzogGyEvEH+qawZz4QgBlg= 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.18 0413/1095] drm/msm/hdmi: fill the pwr_regs bulk regulators Date: Mon, 15 Aug 2022 19:56:52 +0200 Message-Id: <20220815180446.779411530@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 f6229262dcb0..4ce0b4c41e49 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