From patchwork Thu Feb 7 11:09:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 157700 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp530509jaa; Thu, 7 Feb 2019 03:32:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IbEjt+jXSuUGBchwDc5gY9Ns051ShHkHpBHMnkhMpaPmwjOoPeXMpJn7zw1XfHcNhWwR26A X-Received: by 2002:a62:4618:: with SMTP id t24mr15616727pfa.139.1549539144976; Thu, 07 Feb 2019 03:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549539144; cv=none; d=google.com; s=arc-20160816; b=EyyHojBdMwJ7iAMtpNuuq+5NBB9DeKGDjF3SYQxQGR8GuzfIgmkvgfbXvuklD8FpM5 CredyCzWlksQUvs6kYYAhL8rJiyzyBBAgXUTu13z8+qE1fMyIZEm3IOu+hTA7Ay+g35O sNSHKMfZl8DNUofWgpj/qgV6Wk0s1P+b8KbXXx30P5CsO9h7mX34pvy1beb6+7EGsZv7 kg5ioA1lGd3iRIedZU5FCTL1sqNy1jXMxEPtOXPC5SqxckFRAwJFu4Ju+g4G5qWsQfjg Q/V1keCU4RqzuHdH9YoHyLKstajuaKwKfekp4R+K1TMVVUr/jM9ouNvXKxQ5dQrLz/Mv jLtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=J3eursYVC35uM+oKmDvFUP8+fXKDMRSGBwh0fHlRrJE=; b=nePwb7z4TkzFTwaNtCY2bD0b6pSG11HYoKN7LZ4tHQgXEMB26W/xYT1jAkV7Ty4VzJ tSHQAeqqhIT6y2tllWz6knAgtTZQ8vVUiUyxgFw3k/SHQdZkpdlRi6hHPEPT4IwfOFTd VbmjXvaeIz9m8XVjNas1cgjYReGdEHVxPf2fC1fMkjwQuV2fgb2HlMEcyKzFrHQjc0T5 oAPkwuM4sT2uUYTtAss5dsGZwSY6tfcwjL1nt8p+GOETcY1vUfnrpM1HT4I3C8+sBj7X bkN9W9KIPcW9dTMCfXMAip0RKa8uIqTbDBrDtw2VI/ypXp17EihTl2MNH71Tv4ds79pM lbxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VC+HYtii; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si8564699pgk.272.2019.02.07.03.32.24; Thu, 07 Feb 2019 03:32:24 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VC+HYtii; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbfBGLcW (ORCPT + 31 others); Thu, 7 Feb 2019 06:32:22 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:46010 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbfBGLcU (ORCPT ); Thu, 7 Feb 2019 06:32:20 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x17BW43c030905; Thu, 7 Feb 2019 05:32:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549539124; bh=J3eursYVC35uM+oKmDvFUP8+fXKDMRSGBwh0fHlRrJE=; h=From:To:CC:Subject:Date; b=VC+HYtiiu4X00rgthUl+QMlnGBT7SoIhsueAI+soZBAmyX7qCXrDtbs+opmRyM37t 6szNSkeqXBaSnpULTM0xofMqL+PbyiPLVDkuOVOyyyeJEaDmC+rq9RTnvQf/3eK0RB 0+o7bO23yhD72hEka7wOEj0HcbEgrQzM5x4EwyrA= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x17BW3Se072560 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 7 Feb 2019 05:32:04 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 7 Feb 2019 05:32:03 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 7 Feb 2019 05:32:03 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x17BVxak026282; Thu, 7 Feb 2019 05:32:00 -0600 From: Kishon Vijay Abraham I To: Murali Karicheri , Lorenzo Pieralisi CC: Kishon Vijay Abraham I , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , , , Subject: [PATCH v2 0/9] PCI: DWC/Keystone: MSI configuration cleanup Date: Thu, 7 Feb 2019 16:39:15 +0530 Message-ID: <20190207110924.30716-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series tries to address the comments discussed in [1] w.r.t removing Keystone specific callbacks defined in dw_pcie_host_ops. This series also tries to cleanup the Keystone interrupt handling part. Changes from v1: *) Removed "PCI: keystone: Use "dummy_irq_chip" instead of new irqchip for legacy interrupt handling" from the patch series. It should be handled differently. *) Added Gustavo's ACKed by and fixed a commit message. [1] -> https://patchwork.kernel.org/patch/10681587/ Kishon Vijay Abraham I (9): PCI: keystone: Cleanup interrupt related macros PCI: keystone: Modify legacy_irq_handler to check the IRQ_STATUS of INTA/B/C/D PCI: keystone: Add separate functions for configuring MSI and legacy interrupt PCI: keystone: Use hwirq to get the IRQ number offset PCI: keystone: Cleanup ks_pcie_msi_irq_handler and ks_pcie_legacy_irq_handler PCI: dwc: Add support to use non default msi_irq_chip PCI: keystone: Use Keystone specific msi_irq_chip PCI: dwc: Remove Keystone specific dw_pcie_host_ops PCI: dwc: Do not write to MSI control registers if the platform doesn't use it drivers/pci/controller/dwc/pci-keystone.c | 406 ++++++++++-------- .../pci/controller/dwc/pcie-designware-host.c | 74 ++-- drivers/pci/controller/dwc/pcie-designware.h | 6 +- 3 files changed, 256 insertions(+), 230 deletions(-) -- 2.17.1