Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp684941pxb; Tue, 5 Apr 2022 18:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPlkvLiq/0aXaFA0akpC7L87dtndx1bEZkd4zvNGojsdsOBNZgbO2pijkvW0N2aHlqxRKz X-Received: by 2002:a17:907:daa:b0:6e4:9b0d:3f1 with SMTP id go42-20020a1709070daa00b006e49b0d03f1mr5988200ejc.37.1649209374850; Tue, 05 Apr 2022 18:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209374; cv=none; d=google.com; s=arc-20160816; b=WpaMjAREMJ+Gp07J2uFpeghE1jEaSfYjozxx/6uazwGFCnjEpyhnFnynR0HW6p4aB2 4ipdATaLRldFR8E5Nbp9VMPNMkKaqTE3rVB9BH9fAtfRg5qtE0PgpPdv4RqUb3c43Bv6 Jk10gTRMUTz4cqYa8SajVALZTmprmkrDkX1Wuw9tLrvUm5xjXS9jw9jgKD4kZgeWGikq 8wxSOW+/7rgptRlBA+ZoL1bFod1Kcg5Mn+gToJSDm7seRA6JuDSfYR3vnecxfhGqI0g8 CmxY00JL27a8Rvb3CmG/H9rJDjEw8R5UvBIfC/cMQnEwVXcrSICVraocFgmLc2EY9loq UjlA== 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=bjNDqgkAY4mwtQ7L/57rpeKWZUj4HMefoWP1NEizP74=; b=i/XKrxorgajmQ9b8WLjYeH4Ae5bJSXWtDz30PwSE7AhEqQjzamv3Ei4M6bBIYWqUYJ 2EyDDQXwqKdk5TyWInN7ROhCAhT29AsXYoOtTwQFf0rgVtgziyLnEiAzXNRB/eHckdLa IQPkxRqz6LliTZtNpSM4OGwQ7XxOgLtmiwdoJhQTxZmQis3HJHLPxM5HCJOWphCpH/ve dEW3GnWOOi5piVwbadVsQqAp+i6dmmb0KXLtcmq0t1gmM47TaQHqAJ7O+zyWofvEGnOe y40895Ag5X/BCzfr5lb2oPHVK+iaLHxq6NBFZs3x2KCTOHfWYknewtHAweASiHdKHaj+ aD7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GLbKGDLf; 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 b1-20020a50be81000000b0041947932452si10413896edk.439.2022.04.05.18.42.28; Tue, 05 Apr 2022 18:42:54 -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=GLbKGDLf; 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 S242197AbiDEJHo (ORCPT + 99 others); Tue, 5 Apr 2022 05:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239360AbiDEIUA (ORCPT ); Tue, 5 Apr 2022 04:20:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8F89BD897; Tue, 5 Apr 2022 01:11:50 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8FB9CB81B90; Tue, 5 Apr 2022 08:11:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9670C385A0; Tue, 5 Apr 2022 08:11:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146308; bh=lHHOGHVmr7qWwaPYUHQ99Hm9LnXzzyxu1DtucskLisY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GLbKGDLfBZWcJ+kylj0xGw3jOJ2QDi2/tezIO2SZK4STsLBu9C5OLk03QQF3ZiYV7 LqqEs/xAMavRgQhq03p6qM+WD2gWlpsaU5sseBoah/vWbPDGmJ6ovQ9LhbFK4DLA5f XDBy3XA5GB5nU6Clf6jeC9VEDW9bnZD7idwqj7G4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Zhu , Lorenzo Pieralisi , Lucas Stach , Sasha Levin Subject: [PATCH 5.17 0679/1126] PCI: imx6: Assert i.MX8MM CLKREQ# even if no device present Date: Tue, 5 Apr 2022 09:23:46 +0200 Message-Id: <20220405070427.551805233@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 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: Richard Zhu [ Upstream commit 45514f78c65cc9a09437f20e180625f94f769863 ] The CLKREQ# signal is an open drain, active low signal that is driven low by the remote Endpoint device. But it might not be driven low if no Endpoint device is connected. On i.MX8MM PCIe, phy_init() may fail and system boot may hang if no Endpoint is connected to assert CLKREQ#. Handle this as on i.MX8MQ, where we explicitly assert CLKREQ# so the PHY can be initialized. Link: https://lore.kernel.org/r/1645672013-8949-1-git-send-email-hongxing.zhu@nxp.com Fixes: 178e244cb6e2 ("PCI: imx: Add the imx8mm pcie support") Signed-off-by: Richard Zhu Signed-off-by: Lorenzo Pieralisi Reviewed-by: Lucas Stach Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pci-imx6.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 77fc510c6d0d..d09ad4e1f432 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -453,10 +453,6 @@ static int imx6_pcie_enable_ref_clk(struct imx6_pcie *imx6_pcie) case IMX7D: break; case IMX8MM: - ret = clk_prepare_enable(imx6_pcie->pcie_aux); - if (ret) - dev_err(dev, "unable to enable pcie_aux clock\n"); - break; case IMX8MQ: ret = clk_prepare_enable(imx6_pcie->pcie_aux); if (ret) { -- 2.34.1