From patchwork Wed Jan 13 15:49:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 362152 Delivered-To: patch@linaro.org Received: by 2002:a17:906:fb05:0:0:0:0 with SMTP id lz5csp489750ejb; Wed, 13 Jan 2021 07:51:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI1/XXHxuL67bZonlG5L3T1XHaFiUxvSXp/2FcaVpr0bBdXmzYowtplreLiZIAbdf/oV37 X-Received: by 2002:a05:6402:2041:: with SMTP id bc1mr2244706edb.369.1610553061025; Wed, 13 Jan 2021 07:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610553061; cv=none; d=google.com; s=arc-20160816; b=Pxw8+KdNr7l8C4cJKs0o+ITd9LAEVIbYrFVkJzjjyJlg/+KdKuiweYUyBtYvmR6d7X qdAQ3DCot0J55iA9OkK0ibHGHeyFuMqMNI2kUTK1XvxdohPWXAqfAl0kIAFXKtETY33d 8JiiTqKriItUT/q1Iq2Ld9cOBz+Qiwlh6/iJarRdBhY4vs+/+4UC+3t/Y3yf2Eth+3eY gUrnGcq/WnDIXh7Y/wiRKW3d5J/vbZZiyvqUa3oBW7+oU3vI2kktSOm4SuWsfFV8Clx1 a8G2Gz2pR13BUPch60i12ajvZPtid4oyA9gU023hQLaRtHcqSxNQ8k8SlG1taIgCBjt0 QvCA== 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=zDTL5TzhGClCytQgAVu79B4jFSXGtM5TTt8tFLgLuvo=; b=zUiZHx17x6Rpzh0691o95qrg72veJ8bvFpYCc9bmRIQQocnytl1ppSiW5I05pgTu5J KWqxjRK7i/BHQZtdE1gbiA+EY0q+gYDp+yjY/Bz/eMJGLKk6BTk6CYtovQFVNvoR+jUd XlhjRBNCx7HnnkroO0kYwexmWcEvFSqDmT0ZNl2B/vLzlPWUfIxpd2sSTubA9kY7mtoM rXIg+tBKD+HdGovsWW/WoPW4mjc8EcVLmmNFqVIQnPJCtxpnu9SFf0dBk2uc01eF+LmT Pd92vovYM4g48WzqYS4EDY53sKuTnx7m26ab+iNnohsfKv+Ukqm/3OGYbfnG6WWsD2gj 4FKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KsJaPTsH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si1078257ejt.469.2021.01.13.07.51.00; Wed, 13 Jan 2021 07:51:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KsJaPTsH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725858AbhAMPuV (ORCPT + 15 others); Wed, 13 Jan 2021 10:50:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbhAMPuV (ORCPT ); Wed, 13 Jan 2021 10:50:21 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E92FC061794 for ; Wed, 13 Jan 2021 07:49:40 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id a12so3449731lfl.6 for ; Wed, 13 Jan 2021 07:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zDTL5TzhGClCytQgAVu79B4jFSXGtM5TTt8tFLgLuvo=; b=KsJaPTsHB4u1lpF3B+jyYr+aaVzWmWhC+SL2SiOtpIg+/yPXKkQZKM5wvwUiG791bK RAVeCq8Gv0qeaTO7pw6ZNoTszl+kmLdTJza9H/HpyPC5LXjixtCOaVzM6acY81lUqS3t o6FdAp99JbiGBBabDEyIj7HYuXDlF94+R8zu+b/+AJDdwPlm5IUw4Yzkk2lq5ahZ/Agc lIQwHvyP//Aey+cGb62EMuj3U5pYz7pD/vHks5iUlDenl/jPEmHvwvTRr6s6lQVdkrAR ogIURMrxu5SsyYQoxqNkO4YJWHrbQM2WdDgRa9hs1Z87ewfTbZHAvu/eFKzhoW0T+jk/ M8fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zDTL5TzhGClCytQgAVu79B4jFSXGtM5TTt8tFLgLuvo=; b=f6Q/9WXMX5/REDM3/3utDQ2gg3SKb/RPQu4rN3l56M5YoJeQi+XX0y010yZemjM/H0 Km1kQMfwB5WXCuMcM/CQcxbz7NugPcziC8Cu+8lTfJ6qOTDCbGFO0u6ETz+Pb0V0von6 iuftzwUfa3jpNotX97qjI+zqtFXYj4MCreQyLuVFLbRHR9ggZQCUbi4ks66g3CtjG7VD nP1Al2Wo6UMcUuwpEhYAna6EKscJlwW8BLLX7GDQjP9vfZNBK8T4AEJB7cTCLOVZi/CR EXUdwRxL+00JnvR/MSg0f9yhrTpfRyMjSXEyuT8l2N+bOTyyxpA2K4orxs1oXs2A4FOc 61qQ== X-Gm-Message-State: AOAM531GUw3Ipk8XD7sRhAEMnJ0cG9qDcQNUb6XJID6XSLov/iJD9ZiC jMuYxLDxrfhcBraRt/HAENsTSQ== X-Received: by 2002:a05:6512:324a:: with SMTP id c10mr1067029lfr.452.1610552978993; Wed, 13 Jan 2021 07:49:38 -0800 (PST) Received: from eriador.lumag.spb.ru ([94.25.228.189]) by smtp.gmail.com with ESMTPSA id g13sm246828lfb.43.2021.01.13.07.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 07:49:38 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Lorenzo Pieralisi Cc: linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , linux-pci@vger.kernel.org Subject: [PATCH v4 0/2] PCI: qcom: fix PCIe support on sm8250 Date: Wed, 13 Jan 2021 18:49:33 +0300 Message-Id: <20210113154935.3972869-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SM8250 platform requires additional clock to be enabled for PCIe to function. In case it is disabled, PCIe access will result in IOMMU timeouts. Add device tree binding and driver support for this clock. Changes since v3: - Merge clock handling back into qcom_pcie_get_resources_2_7_0(). Define res->num_clks to the amount of clocks used for this particular platform. Changes since v2: - Split this clock handling from qcom_pcie_get_resources_2_7_0() - Change comment to point that the clock is required rather than optional Changes since v1: - Added Fixes: tags, as respective patches have hit the upstream Linux tree.