From patchwork Mon Apr 9 09:41:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 896211 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40KQNk47gTz9s2S for ; Mon, 9 Apr 2018 19:43:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbeDIJlZ (ORCPT ); Mon, 9 Apr 2018 05:41:25 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:52389 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752274AbeDIJlY (ORCPT ); Mon, 9 Apr 2018 05:41:24 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2C23B10C09B5; Mon, 9 Apr 2018 02:41:24 -0700 (PDT) Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id D2BF635CF; Mon, 9 Apr 2018 02:41:23 -0700 (PDT) Received: from UbuntuMate-64Bits.internal.synopsys.com (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id 314183E9CC; Mon, 9 Apr 2018 10:41:23 +0100 (WEST) From: Gustavo Pimentel To: bhelgaas@google.com, lorenzo.pieralisi@arm.com, Joao.Pinto@synopsys.com, jingoohan1@gmail.com, kishon@ti.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, gustavo.pimentel@synopsys.com Subject: [PATCH v2 0/9] Designware EP support and code clean up Date: Mon, 9 Apr 2018 10:41:09 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The patch set was made against the Bjorn's next branch. Adds support Designware EP support. Increases the maximum number of interrupts allowed for Designware IP controller. Does a code cleanup on Designware driver: - Replaces magic numbers without a easy meaning by a well known define that helps the human compreension. - Replaces a division by 2 by a simple right shift rotation of 1 bit. - Fixes all first letter characters on comments and debug messages to upper case to maintain coherency. Gustavo Pimentel (9): bindings: PCI: designware: Example update PCI: dwc: Add support for endpoint mode bindings: PCI: designware: Add support for the EP in Designware driver PCI: Adds device ID for Synopsys Sample Endpoint. misc: pci_endpoint_test: Add designware EP entry PCI: dwc: Define maximum number of vectors PCI: dwc: Replace lower into upper case characters PCI: dwc: Small computation improvement PCI: dwc: Replace magic number by defines .../devicetree/bindings/pci/designware-pcie.txt | 27 +++- drivers/misc/pci_endpoint_test.c | 1 + drivers/pci/dwc/Kconfig | 45 ++++-- drivers/pci/dwc/pcie-designware-ep.c | 20 +-- drivers/pci/dwc/pcie-designware-host.c | 77 +++++----- drivers/pci/dwc/pcie-designware-plat.c | 159 +++++++++++++++++++-- drivers/pci/dwc/pcie-designware.c | 22 +-- drivers/pci/dwc/pcie-designware.h | 1 + drivers/pci/endpoint/functions/pci-epf-test.c | 9 ++ include/linux/pci_ids.h | 1 + 10 files changed, 281 insertions(+), 81 deletions(-)