Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8399833rwn; Wed, 14 Sep 2022 13:55:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XWi90QbAVQvTHDzhH3W8hMEsmCwToQZ/Ma43Jq4YwQ0NJUw1JX63/6KJSpbJMiigZTJGn X-Received: by 2002:a05:6402:448b:b0:43b:5ec6:8863 with SMTP id er11-20020a056402448b00b0043b5ec68863mr31568148edb.377.1663188915113; Wed, 14 Sep 2022 13:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663188915; cv=none; d=google.com; s=arc-20160816; b=IvS+x7FPXkUbs0H1lV+aZ3zzkkbMGhXR5BuZl2XvLeh3ELxCTlL+fBRA+qQkfn1yNt clwukt3r9+9NuK9c5uhVh3hH2Dh0SPBEmbp8hMYs7LZnO21oZvvi0xSIg/q18FtmNfN7 In2VUics2TsPIQkvZc2nB5y0Ujf99N9/L6ZtLnIXYOpu7qj+mb8VHYF+G79jeQFlkzzb XOfWP1cY0v3SYK8SiXFL7FM8wCCyFHTcZEXtKxvW6Y/t2aPtdbT0fgvrzID4z28MGp7N 56ntcYaGObrkRbSeonGtk9uZA6EGkNVQJJNfrsFXvaTJV2FyLl2jxBbIi1/3jplqxWG7 1+5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dlyCVmQYKvV9dtFJPrSziTcD5W40HZ0uDRKK1oXcTjY=; b=EkL8TJ+xLCU8Dj0CnIa3IPSw/NtPA1qLNm/ZMy1wqlPbTs9NRWzBYOlsWZXGZpb05Q sh/cwL8/TaQiOfpkj0TlYx1ufEXKYqzGLSzrkmTG0Hpo9TbjNLh6kp41ijovsBzeHe8m rBk+Ygewg8gk7yKWXm/+RMjzPstaD3/wChyJKcBsSQa6oCmlTXax0gbtegFt1rlwK8o1 De5pgY2Yg+L7m1JWdc2wCMeZjf0X8IY3PZIo7c0lN38shxB6iO6Kkwfx2G/3Jql3TIvc 1Uh33BU9FR/bGsqtWfpVOCRcGOduSTNMX03yRDP+8hYpXCbVfs+fPzvBIZh6KJTXNnkm TPuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nQ2uU+3R; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz6-20020a1709072ce600b007304a1ee3e3si12047516ejc.517.2022.09.14.13.54.48; Wed, 14 Sep 2022 13:55:15 -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=@gmail.com header.s=20210112 header.b=nQ2uU+3R; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbiINUvc (ORCPT + 99 others); Wed, 14 Sep 2022 16:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiINUva (ORCPT ); Wed, 14 Sep 2022 16:51:30 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AE46C752; Wed, 14 Sep 2022 13:51:28 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id s18so10370031plr.4; Wed, 14 Sep 2022 13:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=dlyCVmQYKvV9dtFJPrSziTcD5W40HZ0uDRKK1oXcTjY=; b=nQ2uU+3R3PULyzrTap/XMmm6mJFph0hl/rwnZDVw4fHif64LfKbHO5rnhHo7ZBGOhY Y+K6cgM4AMO5ADpYIlPnp0jr65QZdHHyYjxW3ZqMKO0iLcGO0nCwAHDEI3uBPvfrcl2j 49PHNjtCegfj1qk5vtGsD9x6EtUsobJDjYldgWkP8TeMOTJuNuXjCl3smhpkRV8//W9n JZycJBfXGmUQJvbuV7hICwvCZYZNe39ycv/ITCW0Vu9F0iL+aJ5R386WELsGIzJjwDDp 81xNJ26VgXtES9YHUSfP0fRtEDxe2rjAbaQJ0oFLWXGODCW0tM2h8ClQBwclicg1Uuba I+gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=dlyCVmQYKvV9dtFJPrSziTcD5W40HZ0uDRKK1oXcTjY=; b=CemdFBYWe45swy+IwXrCcX8OKXbtUqPwnh9FKZ8yzY5v3JRSAoMg0A/MagtkLrKZsU gZirmqElYoQl0KnesYuI5ABt2ZLKQQnKYoAIHjZ9d5Ke1/giDvsAKzXqnhykWNZsgNAc ph1+/+5fCF3xrmqm0vqwJOfPlhmOgVLCmiSq3re+K2VFdPaQe10SyjMcGQgdiSpFCW2L 9le797sfINPkRCR15uFUoHjUnY3Q3uzFLfcb87qfi+hX0j+nJqrbLTqzkDMMlokse6EE ZwzM4ildaDVzONEN/ShyAvJHh6H3PlEUyxU9LOwGEHaOZGXwNp9+91OxgCGj0uwGoVdZ E7PA== X-Gm-Message-State: ACrzQf1WTAbp1TzeCVgbnbEFZaog00asq1aqnxbsNjtC7yRXpx7rme3u rCgut6l3QricJPx+bTpreljvOpBNgeTv3L7cIKM= X-Received: by 2002:a17:90b:17cf:b0:202:95a2:e310 with SMTP id me15-20020a17090b17cf00b0020295a2e310mr7000218pjb.76.1663188687895; Wed, 14 Sep 2022 13:51:27 -0700 (PDT) MIME-Version: 1.0 References: <20220914201049.3508104-1-han.xu@nxp.com> In-Reply-To: <20220914201049.3508104-1-han.xu@nxp.com> From: Fabio Estevam Date: Wed, 14 Sep 2022 17:51:16 -0300 Message-ID: Subject: Re: [PATCH] clk: imx: imx6sx: remove the SET_RATE_PARENT flag for QSPI clocks To: Han Xu Cc: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "open list:NXP i.MX CLOCK DRIVERS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Han Xu, On Wed, Sep 14, 2022 at 5:11 PM Han Xu wrote: > > There is no dedicate parent clock for QSPI so SET_RATE_PARENT flag > should not be used. For instance, the default parent clock for QSPI is > pll2_bus, which is also the parent clock for quite a few modules, such > as MMDC, once GPMI NAND set clock rate for EDO5 mode can cause system > hang due to pll2_bus rate changed. Thanks a lot for your patch. This fixes the kernel hang issue on a custom imx6sx board with NAND without the need of using the workaround found in the NXP kernel: https://source.codeaurora.org/external/imx/linux-imx/commit/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c?h=lf-5.15.y&id=d03eb99c393f8732f70a1d7d29a3b9c42cccbe48 Tested-by: Fabio Estevam