Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2287726pxp; Mon, 21 Mar 2022 15:58:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyImGRtIqhgUWeP6zRRSvC3eSA1knsLAm4keChzKsB7EdntDDwrlotqjBimMuwohIHnn9l X-Received: by 2002:a17:902:f789:b0:14e:ebbc:264b with SMTP id q9-20020a170902f78900b0014eebbc264bmr14853385pln.169.1647903518933; Mon, 21 Mar 2022 15:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647903518; cv=none; d=google.com; s=arc-20160816; b=A+Mq3Ka4Nv+rQS2QyU0BU7qhI2cV+K+NILhd9MEOulsBDNCTSM4hhTNDPhQgiTuEcj rfEQdkFySna7xYHVRhpESFdltUDUH0JW99i7W4YlBZfBYretFkglCek1+xK89O+lpNGE p9scBB2Q+I3wxAoCzFdYAZe2xi0NGQS5V5mnMg0OBP98IP7NvDg5Q3+lK+rNC/r2xbpv lyEew4gCTIe2UD9ZFAtBWfo9bA5qxZrji+9KK4OjDYIQ7ghd5SLsY6Tum1pf6M1QkC3I 3OIg4vghZjbta0zTfvz3B59rxeBrrq0wCGAZJWhO8WQV6W5zbW3DWv/K3zaijGNh3bsP BXjg== 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=amL/UE7zs4t+GbvQwTwptS5fVw1JEGvaoyRruxO2PoI=; b=Vy9wADV8Fi4vymDvmdF8gQlVh1dmS5fPE7RfxoxUjLGienEwaQLhcZ0dlyG3jgSg/A hwJsE0ebgduoOAMJYJdZG4Rncfc8S6nlMDeg6j47v2SHZpUJEFDz2HjN8i976dTUihRK NPlgcSnxxpbYdIWLqTvJeRHsZEjs+iyoMN8ZTvBvWsg5cAVM1MP8TLK19u2TowMMUhAS YISMX00PlRxGynYt8n63RZaapqPST6H80UKGx0eraAdRiHjRRhnZdtDTSIbZygunzcW/ K8yDifLYhvg4t783RBu4T2bX7o/CVMJXwnI1nVA25jUHVkHbAs89v5pKwlsV5F7aN4iX Kr4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="eiN6aoC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v10-20020a63bf0a000000b003816043ee1dsi15555157pgf.18.2022.03.21.15.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="eiN6aoC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 79A2243C2CB; Mon, 21 Mar 2022 15:11:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343634AbiCTUxu (ORCPT + 99 others); Sun, 20 Mar 2022 16:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbiCTUxt (ORCPT ); Sun, 20 Mar 2022 16:53:49 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E703B542 for ; Sun, 20 Mar 2022 13:52:25 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id n16so9197663ile.11 for ; Sun, 20 Mar 2022 13:52:25 -0700 (PDT) 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=amL/UE7zs4t+GbvQwTwptS5fVw1JEGvaoyRruxO2PoI=; b=eiN6aoC/d7xBm2fmS6GXLzCSV1cdC+bvO0UXbvOSCwrPRYE61s8JaKKaJDNbW2FbMu 8Glo/fnK4rXMyl1CN3LJHwGi8UhXd0YRjZ31YM0EotuR8bX+2gCySfbOO2N+1K0ZG/zH rHRna/2O3StGolRfDVaahMliom9HdyAehdj9Agju6pV7IsJ3OiWoeCxMKqClTUTpckBx fiVm3w1G/aDHlo5WHtk4d9d5NFZJYTZIge09K5Gigaru/koyDq7tUn3v5vW8M2fPsrrT M8Hi6+TiempjF8gmk2PX0jiohxlrhWdF54i6pTsGgZkbaMa2BcdrEv4OmnqoVHyf58ue RjjA== 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=amL/UE7zs4t+GbvQwTwptS5fVw1JEGvaoyRruxO2PoI=; b=jgicngW0Do+7ZMAz9iXri65Cf6HTHws8CiYTgKFY6XbesohE89tNhALAvXrbOIz1lh aRXJnMjkoGElQ8V2ZxxVrkw41legeiD6zyTbmZO8E4/bzrFuiv/fY02FTRshkJyEatTX mkJ2AcKIReMtc2e7oLrM7hwbyBJTBTFUJ0mdgI5QEtKsehaEUFPUDDRG2PCVBAfZL4OA WyVmnth0yEi6mnaSLCIuHi9nDbn7N31YYORxrwOJUk1sBLIA/mWk+29iIxWAWZJR9zN7 xW00H3OGOTe0y6UDbid0OBEG0vVnnfl68Y2cAw7uqMm4rRbNH93Bx/Gf0lrd2obUhPOE tWEw== X-Gm-Message-State: AOAM5304CeAShzcKqJV524r3naBOigSSeS8JeKEw/D4ZoIMMzqTuQjXj XekRojeRl7YPD44vTEOXoCw= X-Received: by 2002:a05:6e02:1986:b0:2c8:2b30:4913 with SMTP id g6-20020a056e02198600b002c82b304913mr723866ilf.81.1647809544451; Sun, 20 Mar 2022 13:52:24 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:c72f:3c30:c692:940a]) by smtp.gmail.com with ESMTPSA id e17-20020a5d8ad1000000b00644d51bbffcsm7996318iot.36.2022.03.20.13.52.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 13:52:23 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH V2] soc: imx: imx8m-blk-ctrl: Fix IMX8MN_DISPBLK_PD_ISI hang Date: Sun, 20 Mar 2022 15:52:12 -0500 Message-Id: <20220320205212.701548-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 The imx8mn clock list for the ISI lists four clocks, but DOMAIN_MAX_CLKS was set to 3. Because of this, attempts to enable the fourth clock failed, threw some splat, and ultimately hung. 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 a0a0d2d7ca4a..7109f0d508e2 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -50,7 +50,7 @@ struct imx8m_blk_ctrl_domain_data { u32 mipi_phy_rst_mask; }; -#define DOMAIN_MAX_CLKS 3 +#define DOMAIN_MAX_CLKS 4 struct imx8m_blk_ctrl_domain { struct generic_pm_domain genpd; -- 2.34.1