Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp702927pxm; Fri, 25 Feb 2022 17:44:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwr4JSAeWp7PYrETz1YJ08YK5o2WHEc4bfAPcLl2jWUChPDHpc1Q94bJlOHkxjgS6bC5cR X-Received: by 2002:a17:90a:c901:b0:1bc:bc42:5ea4 with SMTP id v1-20020a17090ac90100b001bcbc425ea4mr5934516pjt.115.1645839860479; Fri, 25 Feb 2022 17:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839860; cv=none; d=google.com; s=arc-20160816; b=sGDwp1YUzdtf1HwABUlSplwbhoZg3QyX+yuIbrqiWaaYK6bvs4yJRbknIwmiKtLyAT etbL7+LQ8ok4I3OBjkf1UMr36AQYYO2Kwwmsyij8ikQwYd5n5KMEmDkVKLlvWi1mi20f 0zMItNYS53lwJpG+Q2wcHHavenrZViyRvGzt0nD/rec/XmR+N3jERD32jzznbh6/C2kD Lbl63f+V39SIrXxPq/hNmHh+YmJQ6SCUst9vuUkQwerOyeRV6UmYA8b+MYwmEwzZ5Qbc KawVgdwrMiLSLF65gULGu4bJcm0lteqRRHX5AunTajbhqMxaeVCcqJIQNl85+ryWAAGW wLww== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BxmQ2SPW8vIpZXI+C7y1LPYYljU/FZQdxhiSd4nteEE=; b=a6+WVSdk2j/bMVQLDrB5RFjN0H9tz7crHRIVBEDf5Y1TVuNJObs7jEw8//FJgFn2Y7 tt8miVzULzaNkhZ0g6LOUebFV35eWK9WE6M76ZtSFRF6l8zGdJJuEx6O85teUsmKUXk1 ADLF4xPpY4Yc5h5oGTv/xJNPVVtMvaCVOSPeGd+ahygyI9dbSJfcE6UjgFJoW0koXbz5 Kem3vFMJEq1/H5eRnqP0Ju2Kg6D9AdE3mFv4V0a0giIekH1Vyo2QftPofYtRiA0VtDyJ enNG0h/y4Q4eGPZw4+olh8gXLMAYYIhT2UWj990ykwr9qSK9InwKOwSd13vhtL3RKw21 nzUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nd5+6Guo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j3-20020a17090276c300b001500511bbb7si3044501plt.243.2022.02.25.17.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:44:20 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nd5+6Guo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F1BD1D0D49; Fri, 25 Feb 2022 17:33:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242790AbiBYQS3 (ORCPT + 99 others); Fri, 25 Feb 2022 11:18:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242788AbiBYQS0 (ORCPT ); Fri, 25 Feb 2022 11:18:26 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D321EAD1 for ; Fri, 25 Feb 2022 08:17:52 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id t11so7034867ioi.7 for ; Fri, 25 Feb 2022 08:17:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BxmQ2SPW8vIpZXI+C7y1LPYYljU/FZQdxhiSd4nteEE=; b=nd5+6GuoSVy/CnCSsiicvc7SE8av31Xtq8uGa/jv8LgI0QGQeBgIdOeuKynmSvbklD T+/PQ4KRENFcC84sOGs3hgp5wufjzYKzGy2j5+3hl9TIc+jVmEQOik8IAKsMvpkdgxLy KN1ZHuOhkyqHshLqW+QYFCzo4g/Q3KWMwEoSHNN/YQ9VI6p8jsTPSQ5JCJ4nLNUSDnY8 7mkMiUc9y5YCnvMeGBf/tqWoiwcZ20NTkm5iBxp+VLVlHhY2CD13V/jbqh92AACj10TO wwU3dxcojq5oZqD84nz1NcjEftddoVA7a+u2DB8KaECt4RGXT1OlQft92Zo2LEtYXm2O rblQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BxmQ2SPW8vIpZXI+C7y1LPYYljU/FZQdxhiSd4nteEE=; b=W8fHuOK2TC4c2/QtX8VwGb2N6fPI+vzjFOn68aUBbtNfTR8iyUTDfFkxE5Yi+Pfavp 2cJ1hsY/sNPU7MAhOtuGXOonBX79IXlu1G9ikA478LW5eiKPpMkQPrC2FhZfkelfygUV yYOijm4WEEsdKWiROIvIMwnzrtrqP+cUbZY1khY2ICA+XqvtZIfNcD9/O6iDZ0np+bfU fwV6qInbwlHww6N5ZLk2hZe3N6SqcER2CcW8Ra/V6LAqBZkl69pFEH5n4KP2wfCDI1hs fKFIw2o9gG8omgsJGZNIJjtZ5y+kgGJlqp8xBu9EUvJ1DIfxBeSCPxNzE5feJuxwWIHv T0xA== X-Gm-Message-State: AOAM531DuWc6BKzcMY90JcE9fqzCR2CWuRLBK2HkegHqC/s9RfPJMVnh otf9st8bGYgTzbuSdzx5iII= X-Received: by 2002:a05:6602:1616:b0:641:6dbd:502d with SMTP id x22-20020a056602161600b006416dbd502dmr6016005iow.195.1645805871627; Fri, 25 Feb 2022 08:17:51 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:5b80:a4b8:a089:497a]) by smtp.gmail.com with ESMTPSA id v2-20020a92c802000000b002c1ed616004sm1852132iln.82.2022.02.25.08.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 08:17:50 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: Adam Ford , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH] soc: imx: imx8m-blk-ctrl: Fix IMX8MN_DISPBLK_PD_ISI hang Date: Fri, 25 Feb 2022 10:17:41 -0600 Message-Id: <20220225161741.395505-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 When attempting to communicate with the ISI, the system hangs. Through trial and error, it appears removing the two root clocks fixes the issues. Since IMX8MN_DISPBLK_PD_ISI enables the pgc_dispmix, and pgc_dispmix enables those same root clocks, it should be safe. Fixes: 7f511d514e8c ("soc: imx: imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl") Signed-off-by: Adam Ford diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 122f9c884b38..cacf379aef80 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -574,9 +574,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mn_disp_blk_ctl_domain_data[] }, [IMX8MN_DISPBLK_PD_ISI] = { .name = "dispblk-isi", - .clk_names = (const char *[]){ "disp_axi", "disp_apb", "disp_axi_root", - "disp_apb_root"}, - .num_clks = 4, + .clk_names = (const char *[]){ "disp_axi", "disp_apb" }, + .num_clks = 2, .gpc_name = "isi", .rst_mask = BIT(6) | BIT(7), .clk_mask = BIT(6) | BIT(7), -- 2.34.1