Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp38943ybi; Thu, 23 May 2019 23:09:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAm3XzlKVPKboYI3pnf+1/HQpU9cBuxDJXzMcHCmP0nMQG5GQWBqcwm7SbUOC6AXKJrdN8 X-Received: by 2002:a17:902:363:: with SMTP id 90mr104390789pld.131.1558678176262; Thu, 23 May 2019 23:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558678176; cv=none; d=google.com; s=arc-20160816; b=tH/r4CbeRNjaf0pNmcokGM2Mx3jZQA4WV+cfl+3UUvhM6efJuwAEhGWd2cpe9iDfXL 6eDRuNoF5HwaBdjaV3eGDpydLMgkImG028bYZF9hXL2KX5FPsz9cJPC/xUqcCo0ucNMY FIomgM/xtiShycqFP84dbdfeVzKzWeOqo4YaDdb1rzJP6DWTpXLtsUhIi2iYBGGmD44J jRngBWHizIPn9RdifFMXLNqV3oSfGKkfGQrYPE+qA0RCHKo6ImUMfR1pROWPnrVnKDI0 RzZn+unDAFEEC2aK/vJdbTTQDcwF+jbrUi3M0KTmo97K3j6eRh/PDs6wkcjJ221UaAgF 1hbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Ms8P7oZDtsvuGi4HOqq+2UhwE9KDebQufoadrglcYyM=; b=p/fQRIxKJXqQ0GNfVFHoE0weT2hxaR6I0WrhDlrQTPG6iwZpLYPrhLKPYoGLrytkfQ 8LSY95/CA+KVJF6gKWmWkgWeI0g9vbGQC4bihtqqCHMM0Kpc6kH+ZnnuwQaakx2Ye8cx om8phDxyrPnLdrfSWj69dGhdySFvCbVbWmXscC+dfOgd+M18a07SRuBA9+IlFDoTBnzh uUQhq4O2dauyRPx1ha0bPfkDg9C23xGSJFmk0XZkGAvQoqLceX0pqzxbE8OI7o4Ha6qD 2YJVCAx4odZjP+6c/vZE1BTAMiOmr2iESIt1UJM30Foj0PH/nCG+d0uJ05r+lQRLhWn/ VlMA== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j63si2683119pge.132.2019.05.23.23.09.14; Thu, 23 May 2019 23:09:36 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388867AbfEXGHd (ORCPT + 99 others); Fri, 24 May 2019 02:07:33 -0400 Received: from mga05.intel.com ([192.55.52.43]:28549 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387622AbfEXGHd (ORCPT ); Fri, 24 May 2019 02:07:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2019 23:07:32 -0700 X-ExtLoop1: 1 Received: from lftan-mobl.gar.corp.intel.com (HELO ubuntu) ([10.226.248.59]) by orsmga002.jf.intel.com with SMTP; 23 May 2019 23:07:29 -0700 Received: by ubuntu (sSMTP sendmail emulation); Fri, 24 May 2019 14:07:27 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Lorenzo Pieralisi Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lftan.linux@gmail.com, Ley Foon Tan Subject: [PATCH 0/2] Fix Altera PCIe configuration type handling Date: Fri, 24 May 2019 14:07:24 +0800 Message-Id: <1558678046-4052-1-git-send-email-ley.foon.tan@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fix issue when access config from PCIe switch. Stratix 10 PCIe controller does not support Type 1 to Type 0 conversion as previous version (V1) does. The PCIe controller need to send Type 0 config TLP if the targeting bus matches with the secondary bus number, which is when the TLP is targeting the immediate device on the link. The PCIe controller send Type 1 config TLP if the targeting bus is larger than the secondary bus, which is when the TLP is targeting the device not immediate on the link. Ley Foon Tan (2): PCI: altera: Fix configuration type based on secondary number PCI: altera: Remove cfgrdX and cfgwrX drivers/pci/controller/pcie-altera.c | 47 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 23 deletions(-) -- 2.19.0