From patchwork Tue Nov 24 09:36:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 57208 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1969980lbb; Tue, 24 Nov 2015 01:39:15 -0800 (PST) X-Received: by 10.98.12.20 with SMTP id u20mr21106530pfi.71.1448357955085; Tue, 24 Nov 2015 01:39:15 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gl10si13732037pac.164.2015.11.24.01.39.14; Tue, 24 Nov 2015 01:39:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753989AbbKXJjN (ORCPT + 28 others); Tue, 24 Nov 2015 04:39:13 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:34643 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753641AbbKXJhI (ORCPT ); Tue, 24 Nov 2015 04:37:08 -0500 Received: by wmvv187 with SMTP id v187so199704547wmv.1 for ; Tue, 24 Nov 2015 01:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IMlPlMV+yV/aywRVKIX7V9ScJWMkJoShzGn1HAHz+bI=; b=1Xfvhd1uDlatFygLRpfIQKpUdr0V04h4bixTeT1Jbi6/fQczL7jjrW7gx4KXToXCsD KQRHfIN2qG0BlaruxHJbbHjV/povlS2T00lz9AtA8JGG3pYtHAt4+0DF7zaymvcOaBo7 mQ4i+c4e2925buMLWTgdExASNqWbmyZxcsk8bwoh4pGgswanlMX1EeSSAm7MOkr9xEV5 Wzs2MmddhzosWSjIzJS+LkeRQwbZPGPGjPtvDUiXHHvtE4pEUHam5zUhB0bKMxseKv8V yV30MuWyiIpFK+vNQeoxW5gqRV4ljBwJ8GQfnmfz6zMHawvWzgSvfjiSj45yHtsnTXtO lUiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IMlPlMV+yV/aywRVKIX7V9ScJWMkJoShzGn1HAHz+bI=; b=H2FWe8b5qt8OpXezKp+l339UIsJ2YAXSrw9rtKxHNgcpvyp4ouSdusx5yvXJt9yKGS lxV8orbFhXokE79bfLUXoHHAUl8ETiaR2O00sViUGWCO8me9aa7VuXG//JGio28+xGcU 7uZTcZtzeTaFEDM/cduMLeYo+RUp5y5r/enB0TvURzl2l2e26hX6D4JWKmUF+Ee56/oK qd5BildnjLSvOi4GTn1nW1kkY7zA9cli1tbiT/KINpitFROeihUWCsbIm0x8XRS8W9gw nX0+aQWOXOs1pCsYYzFEUtJkzTcULMP88mbYSJltLqqdOv936OhjxOzjmj4g4vOOdufl 6qvA== X-Gm-Message-State: ALoCoQmyIbGwN1fsfhTAgM3hDe58jrzPNngM5RvMDKo1M3GFpy5jtzz/hC2m93nvn8hiLRva6TFY X-Received: by 10.194.179.162 with SMTP id dh2mr35814896wjc.17.1448357826460; Tue, 24 Nov 2015 01:37:06 -0800 (PST) Received: from mms734.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id c4sm17283601wjs.36.2015.11.24.01.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2015 01:37:05 -0800 (PST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas Cc: Jingoo Han , Pratyush Anand , Arnd Bergmann , Stanimir Varbanov Subject: [PATCH] PCI: designware: remove wrong io_base assignment Date: Tue, 24 Nov 2015 11:36:52 +0200 Message-Id: <1448357812-23906-1-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The io_base is used to keep the cpu physical address parsed from ranges dt property. After issue pci_remap_iospace the io_base has been assigned with io->start, which is not correct cause io->start is a PCI bus address. Fixes: 0021d22b73d6 ("PCI: designware: Use of_pci_get_host_bridge_resources() to parse DT") Reviewed-by: Arnd Bergmann Signed-off-by: Stanimir Varbanov --- drivers/pci/host/pcie-designware.c | 1 - 1 file changed, 1 deletion(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 540f077c37ea..02a7452bdf23 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -440,7 +440,6 @@ int dw_pcie_host_init(struct pcie_port *pp) ret, pp->io); continue; } - pp->io_base = pp->io->start; break; case IORESOURCE_MEM: pp->mem = win->res;