From patchwork Fri Jul 2 20:40:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= X-Patchwork-Id: 12356493 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A14C9C07E95 for ; Fri, 2 Jul 2021 20:42:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5FFD6613E0 for ; Fri, 2 Jul 2021 20:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FFD6613E0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QAz7Of7Zd4e9LDoZpLyR5M1gbnkw5+juL5SiglLGmKM=; b=qDhPsFV8PGmoIZ YDP68sGy/cscQ34SMwz1HW4IxJeYPc7KlU+TXr/FB+yscvZONK+WNxJPywQA0L2MOUHXctxcQzhQg Y7m24W9A49Sx9NttaP+mmIjLmUtjjp17yJdb/jxPHJMKwx7eyM51Xzg9i7VaWOmJ2OCsUkifrlUzm PPYRnD9WuREgOjvLlk9P7EYwWZRt/7id5fOL4SRNavm1H+vQKqtXmMG9/nBn7gof5R7OJ7JrEi80Y OIgBc6QPD1sEQsShCcnuk5He6+BVEgG8bAFNvC+3Fla1BEvg1Uae5ZcY8jC9acMPEzITjlq5DNYDn F25vnxSHUB/NnQ0tqDWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzPxg-0041P0-4p; Fri, 02 Jul 2021 20:40:32 +0000 Received: from mail-lj1-f171.google.com ([209.85.208.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzPxb-0041OV-8Q for linux-arm-kernel@lists.infradead.org; Fri, 02 Jul 2021 20:40:29 +0000 Received: by mail-lj1-f171.google.com with SMTP id r16so14962423ljk.9 for ; Fri, 02 Jul 2021 13:40:25 -0700 (PDT) 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=8XmZGkFlIjDwabyMzBOy9CvoDQY094ZNfNgHxGJydqU=; b=QfGSQ9Z6yVxW3rIBB9Jm+7RQ73uTYj5IuKtySod69vyyHnTZv7X1WhvLqlH+n52Cng J+RK8pPz8IlxttcNP88V+WOJRVwoqKX17zRmCQwE/kWwivHJYNEp7GFzpGydwXD/4oDy 3+3vsQbs6BIAEviYFyHQFpvDueDsoN6oIzWLNrPwET+tj1cB8L+BDitU37eI81Kvzjcc Co2uHXQBusR1PoP/MwMPuG5YMAsxZN4/Geqqpgp86kcu4yZGtPM/siybFOK7e1OWOUKl u82LccDUCXN4fr/Y74NwYyj0A3KXCwcY+6kCiWab8ITOT4KG+Y6cxLrE24hXtZN/59HR GVEg== X-Gm-Message-State: AOAM533aDo37s0NJ9plc03qEen0RylLGYfKT1MmOGl8vJQ5o3RfElxa9 F1+TgoRtaWOC8MHyULgd7p3OYyxfcZH1/g== X-Google-Smtp-Source: ABdhPJypg+iexLBW3WPDv001kjr9yidLe0RVPFcjpaX8B5vb4zz6NS5iC3Vq8H8BvBWbKE1Gii99dQ== X-Received: by 2002:a2e:3e07:: with SMTP id l7mr970502lja.131.1625258424304; Fri, 02 Jul 2021 13:40:24 -0700 (PDT) Received: from workstation.lan ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id o142sm364201lfa.299.2021.07.02.13.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 13:40:23 -0700 (PDT) From: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= To: Ray Jui Cc: Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3] PCI: iproc: Fix a non-compliant kernel-doc Date: Fri, 2 Jul 2021 20:40:22 +0000 Message-Id: <20210702204022.1654290-1-kw@linux.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210702_134027_359745_7BE4E9E6 X-CRM114-Status: GOOD ( 25.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix a non-compliant kernel-doc used to describe struct and enum types and functions in the pcie-iproc.c, pcie-iproc-msi.c and pcie-iproc.h files. Add missing documentation of the "mem" filed of the struct iproc_pcie, and the enum values "IPROC_PCIE_IB_MAP_MEM", "IPROC_PCIE_IB_MAP_IO" and "IPROC_PCIE_IB_MAP_INVALID" of the enum iproc_pcie_ib_map_type. Thus, resolve the following build time warning related to kernel-doc: drivers/pci/controller/pcie-iproc.c:92: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.c:139: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.c:153: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.c:441: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.c:623: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.c:901: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.c:151: warning: Enum value 'IPROC_PCIE_IB_MAP_MEM' not described in enum 'iproc_pcie_ib_map_type' drivers/pci/controller/pcie-iproc.c:151: warning: Enum value 'IPROC_PCIE_IB_MAP_IO' not described in enum 'iproc_pcie_ib_map_type' drivers/pci/controller/pcie-iproc.c:151: warning: Enum value 'IPROC_PCIE_IB_MAP_INVALID' not described in enum 'iproc_pcie_ib_map_type' drivers/pci/controller/pcie-iproc-msi.c:52: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc-msi.c:68: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.h:11: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.h:28: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.h:39: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.h:51: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/pci/controller/pcie-iproc.h:112: warning: Function parameter or member 'mem' not described in 'iproc_pcie' No change to functionality intended. Signed-off-by: Krzysztof WilczyƄski Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- drivers/pci/controller/pcie-iproc-msi.c | 54 +++++++-------- drivers/pci/controller/pcie-iproc.c | 49 +++++++------- drivers/pci/controller/pcie-iproc.h | 88 +++++++++++++++---------- 3 files changed, 103 insertions(+), 88 deletions(-) diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c index eede4e8f3f75..d20e66319774 100644 --- a/drivers/pci/controller/pcie-iproc-msi.c +++ b/drivers/pci/controller/pcie-iproc-msi.c @@ -49,14 +49,14 @@ enum iproc_msi_reg { struct iproc_msi; /** - * iProc MSI group + * struct iproc_msi_grp - iProc MSI group. * - * One MSI group is allocated per GIC interrupt, serviced by one iProc MSI - * event queue. + * @msi: Pointer to iProc MSI data. + * @gic_irq: GIC interrupt. + * @eq: Event queue number. * - * @msi: pointer to iProc MSI data - * @gic_irq: GIC interrupt - * @eq: Event queue number + * One MSI group is allocated per GIC interrupt, serviced by one iProc MSI event + * queue. */ struct iproc_msi_grp { struct iproc_msi *msi; @@ -65,30 +65,30 @@ struct iproc_msi_grp { }; /** - * iProc event queue based MSI + * struct iproc_msi - iProc event queue based MSI. + * + * @pcie: Pointer to iProc PCIe data. + * @reg_offsets: MSI register offsets. + * @grps: MSI groups. + * @nr_irqs: Number of total interrupts connected to GIC. + * @nr_cpus: Number of toal CPUs. + * @has_inten_reg: Indicates the MSI interrupt enable register needs to be + * set explicitly (required for some legacy platforms). + * @bitmap: MSI vector bitmap. + * @bitmap_lock: Lock to protect access to the MSI bitmap. + * @nr_msi_vecs: Total number of MSI vectors. + * @inner_domain: Inner IRQ domain. + * @msi_domain: MSI IRQ domain. + * @nr_eq_region: Required number of 4K aligned memory region for MSI + * event queues. + * @nr_msi_region: Required number of 4K aligned address region for MSI + * posted writes. + * @eq_cpu: Pointer to allocated memory region for MSI event queues. + * @eq_dma: DMA address of MSI event queues. + * @msi_addr: MSI address. * * Only meant to be used on platforms without MSI support integrated into the * GIC. - * - * @pcie: pointer to iProc PCIe data - * @reg_offsets: MSI register offsets - * @grps: MSI groups - * @nr_irqs: number of total interrupts connected to GIC - * @nr_cpus: number of toal CPUs - * @has_inten_reg: indicates the MSI interrupt enable register needs to be - * set explicitly (required for some legacy platforms) - * @bitmap: MSI vector bitmap - * @bitmap_lock: lock to protect access to the MSI bitmap - * @nr_msi_vecs: total number of MSI vectors - * @inner_domain: inner IRQ domain - * @msi_domain: MSI IRQ domain - * @nr_eq_region: required number of 4K aligned memory region for MSI event - * queues - * @nr_msi_region: required number of 4K aligned address region for MSI posted - * writes - * @eq_cpu: pointer to allocated memory region for MSI event queues - * @eq_dma: DMA address of MSI event queues - * @msi_addr: MSI address */ struct iproc_msi { struct iproc_pcie *pcie; diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c index 02e52f698eeb..2a400bf81f58 100644 --- a/drivers/pci/controller/pcie-iproc.c +++ b/drivers/pci/controller/pcie-iproc.c @@ -89,10 +89,10 @@ #define IPROC_PCIE_REG_INVALID 0xffff /** - * iProc PCIe outbound mapping controller specific parameters - * - * @window_sizes: list of supported outbound mapping window sizes in MB - * @nr_sizes: number of supported outbound mapping window sizes + * struct iproc_pcie_ob_map - iProc PCIe outbound mapping controller specific + * parameters. + * @window_sizes: List of supported outbound mapping window sizes in MB. + * @nr_sizes: Number of supported outbound mapping window sizes. */ struct iproc_pcie_ob_map { resource_size_t window_sizes[MAX_NUM_OB_WINDOW_SIZES]; @@ -136,32 +136,31 @@ static const struct iproc_pcie_ob_map paxb_v2_ob_map[] = { }; /** - * iProc PCIe inbound mapping type + * enum iproc_pcie_ib_map_type - iProc PCIe inbound mapping type. + * @IPROC_PCIE_IB_MAP_MEM: DDR memory. + * @IPROC_PCIE_IB_MAP_IO: Device I/O memory. + * @IPROC_PCIE_IB_MAP_INVALID: Invalid or unused. */ enum iproc_pcie_ib_map_type { - /* for DDR memory */ IPROC_PCIE_IB_MAP_MEM = 0, - - /* for device I/O memory */ IPROC_PCIE_IB_MAP_IO, - - /* invalid or unused */ IPROC_PCIE_IB_MAP_INVALID }; /** - * iProc PCIe inbound mapping controller specific parameters - * - * @type: inbound mapping region type - * @size_unit: inbound mapping region size unit, could be SZ_1K, SZ_1M, or - * SZ_1G - * @region_sizes: list of supported inbound mapping region sizes in KB, MB, or - * GB, depending on the size unit - * @nr_sizes: number of supported inbound mapping region sizes - * @nr_windows: number of supported inbound mapping windows for the region - * @imap_addr_offset: register offset between the upper and lower 32-bit - * IMAP address registers - * @imap_window_offset: register offset between each IMAP window + * struct iproc_pcie_ib_map - iProc PCIe inbound mapping controller specific + * parameters. + * @type: Inbound mapping region type + * @size_unit: Inbound mapping region size unit, could be SZ_1K, SZ_1M, + * or SZ_1G. + * @region_sizes: List of supported inbound mapping region sizes in KB, + * MB, or GB, depending on the size unit. + * @nr_sizes: Number of supported inbound mapping region sizes. + * @nr_windows: Number of supported inbound mapping windows for the + * region. + * @imap_addr_offset: Register offset between the upper and lower 32-bit IMAP + * address registers. + * @imap_window_offset: Register offset between each IMAP window. */ struct iproc_pcie_ib_map { enum iproc_pcie_ib_map_type type; @@ -437,7 +436,7 @@ static inline void iproc_pcie_write_reg(struct iproc_pcie *pcie, writel(val, pcie->base + offset); } -/** +/* * APB error forwarding can be disabled during access of configuration * registers of the endpoint device, to prevent unsupported requests * (typically seen during enumeration with multi-function devices) from @@ -619,7 +618,7 @@ static int iproc_pcie_config_read(struct pci_bus *bus, unsigned int devfn, return PCIBIOS_SUCCESSFUL; } -/** +/* * Note access to the configuration registers are protected at the higher layer * by 'pci_lock' in drivers/pci/access.c */ @@ -897,7 +896,7 @@ static inline int iproc_pcie_ob_write(struct iproc_pcie *pcie, int window_idx, return 0; } -/** +/* * Some iProc SoCs require the SW to configure the outbound address mapping * * Outbound address translation: diff --git a/drivers/pci/controller/pcie-iproc.h b/drivers/pci/controller/pcie-iproc.h index c2676e442f55..432ce216f1fb 100644 --- a/drivers/pci/controller/pcie-iproc.h +++ b/drivers/pci/controller/pcie-iproc.h @@ -7,7 +7,16 @@ #define _PCIE_IPROC_H /** - * iProc PCIe interface type + * enum iproc_pcie_type - iProc PCIe interface type. + * @IPROC_PCIE_PAXB_BCMA: New generation of iProc BCMA-based host + * controllers. + * @IPROC_PCIE_PAXB: iProc PAXB-based host controllers for SoCs such + * as NS, NSP, Cygnus, NS2 and Pegasus. + * @IPROC_PCIE_PAXB_V2: Next generation of iProc PAXB-based host + * controllers using the Stingray SoCs. + * @IPROC_PCIE_PAXC: iProx PAXC-based host controllers. + * @IPROC_PCIE_PAXC_V2: Second generation of the iProc PAXC-based host + * controllers. * * PAXB is the wrapper used in root complex that can be connected to an * external endpoint device. @@ -24,10 +33,10 @@ enum iproc_pcie_type { }; /** - * iProc PCIe outbound mapping - * @axi_offset: offset from the AXI address to the internal address used by - * the iProc PCIe core - * @nr_windows: total number of supported outbound mapping windows + * struct iproc_pcie_ob - iProc PCIe outbound mapping. + * @axi_offset: Offset from the AXI address to the internal address used by the + * iProc PCIe core. + * @nr_windows: Total number of supported outbound mapping windows. */ struct iproc_pcie_ob { resource_size_t axi_offset; @@ -35,8 +44,8 @@ struct iproc_pcie_ob { }; /** - * iProc PCIe inbound mapping - * @nr_regions: total number of supported inbound mapping regions + * struct iproc_pcie_ib - iProc PCIe inbound mapping. + * @nr_regions: Total number of supported inbound mapping regions. */ struct iproc_pcie_ib { unsigned int nr_regions; @@ -47,35 +56,42 @@ struct iproc_pcie_ib_map; struct iproc_msi; /** - * iProc PCIe device - * - * @dev: pointer to device data structure - * @type: iProc PCIe interface type - * @reg_offsets: register offsets - * @base: PCIe host controller I/O register base - * @base_addr: PCIe host controller register base physical address - * @phy: optional PHY device that controls the Serdes - * @map_irq: function callback to map interrupts - * @ep_is_internal: indicates an internal emulated endpoint device is connected - * @iproc_cfg_read: indicates the iProc config read function should be used - * @rej_unconfig_pf: indicates the root complex needs to detect and reject - * enumeration against unconfigured physical functions emulated in the ASIC - * @has_apb_err_disable: indicates the controller can be configured to prevent - * unsupported request from being forwarded as an APB bus error - * @fix_paxc_cap: indicates the controller has corrupted capability list in its - * config space registers and requires SW based fixup - * - * @need_ob_cfg: indicates SW needs to configure the outbound mapping window - * @ob: outbound mapping related parameters - * @ob_map: outbound mapping related parameters specific to the controller - * - * @need_ib_cfg: indicates SW needs to configure the inbound mapping window - * @ib: inbound mapping related parameters - * @ib_map: outbound mapping region related parameters - * - * @need_msi_steer: indicates additional configuration of the iProc PCIe - * controller is required to steer MSI writes to external interrupt controller - * @msi: MSI data + * struct iproc_pcie - iProc PCIe device. + * @dev: Pointer to device data structure. + * @type: iProc PCIe interface type. + * @reg_offsets: Register offsets. + * @base: PCIe host controller I/O register base. + * @base_addr: PCIe host controller register base physical + * address. + * @mem: Host bridge memory window resource. + * @phy: Optional PHY device that controls the Serdes. + * @map_irq: Function callback to map interrupts. + * @ep_is_internal: Indicates an internal emulated endpoint device + * is connected. + * @iproc_cfg_read: Indicates the iProc config read function should + * be used. + * @rej_unconfig_pf: Indicates the root complex needs to detect and + * reject enumeration against unconfigured physical + * functions emulated in the ASIC. + * @has_apb_err_disable: Indicates the controller can be configured to + * prevent unsupported request from being forwarded + * as an APB bus error. + * @fix_paxc_cap: Indicates the controller has corrupted + * capability list in its config space registers + * and requires SW based fixup. + * @need_ob_cfg: Indicates SW needs to configure the outbound + * mapping window. + * @ob: Outbound mapping related parameters. + * @ob_map: Outbound mapping related parameters specific to + * the controller. + * @need_ib_cfg: indicates SW needs to configure the inbound + * mapping window. + * @ib: Inbound mapping related parameters. + * @ib_map: Outbound mapping region related parameters. + * @need_msi_steer: Indicates additional configuration of the iProc + * PCIe controller is required to steer MSI writes + * to external interrupt controller. + * @msi: MSI data. */ struct iproc_pcie { struct device *dev;