Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp933991rwd; Thu, 1 Jun 2023 08:20:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bn18gGNtvyXHE4XyBuLFFJEpJwpk34kyurofjizSUPc+w4ZXI+4JbEcuh+VUOMahEo+Jw X-Received: by 2002:a05:6a00:178b:b0:63c:1be4:5086 with SMTP id s11-20020a056a00178b00b0063c1be45086mr8739017pfg.6.1685632835169; Thu, 01 Jun 2023 08:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685632835; cv=none; d=google.com; s=arc-20160816; b=o89L2WkX/MsfOiyqZyABx7VcyNb8J4Kyev70WVCFuM+2Y+PXP+6Z1eKp82sVfGqVsj yOGAFhPl/BG8DHhZH1UfP9ORcVqlQrES9AaRIRi7eNpLAuwnyNVm99lkj2lUaXf5+Oxu CEEsiVP2a+USP21BbJdlrqSs0JJvDP5sYLCttUzAT+gcd4LS8PJdr3jVK7vymSF2nCaY kCTxvbCy+d819+h+bMJe3t0H69c9Un8Hl/dspRoGlmslIcIzjeUm6Abv4hdqW29Bz4XS /YWM36RHCkWhfQR5kppmukHppqaeci6+lGJ4WI1LhtuMNllnu5VtN6D0XIuYDQJlgLj/ v7aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sAFeVd+dwK+9T/TQ3aqc3usXxG9M6VjGUKGIkkMeOq4=; b=hA801ribcd2HGzcIstCwZPOGGHTMSy9sngD80HkvBVweCc+l4FJKvQFf1tPjaXeSYi FMumf7n5WvuSESnZIBqa0yOsUPo+ADBLUyfneIPIk7Fsgnh2//gG24nZqzsUHNqXNtAI aCM/4d41sYy5T4R7Qm0Jp4A6AKiDK2XdI2a/f6wXwu2EVnySreYfSf2zMTS8vQIyoQ2d emFmzs6ZHXGIZwcQxy83+mRpU+Q1k85xx3GSqADADr/Lq1wquZjk/uH51tpA+vgPeGF9 t3ijGKSooAgWLTOj41Ramge2kgvJsKWTGEj9fLaaTsIrJRtx4aPbQLNlOYmdDvM7lfFD llpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SR29uoxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 137-20020a62178f000000b0064d2c624630si5477227pfx.23.2023.06.01.08.20.21; Thu, 01 Jun 2023 08:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SR29uoxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234584AbjFAO5s (ORCPT + 99 others); Thu, 1 Jun 2023 10:57:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232246AbjFAO5q (ORCPT ); Thu, 1 Jun 2023 10:57:46 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 557CA193 for ; Thu, 1 Jun 2023 07:57:44 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-52cbd7d0c37so486224a12.3 for ; Thu, 01 Jun 2023 07:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685631464; x=1688223464; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sAFeVd+dwK+9T/TQ3aqc3usXxG9M6VjGUKGIkkMeOq4=; b=SR29uoxZkJU2rRXz2K/+GXbSV7ktM5kimwDl55SJ+3lg1DFHEBenaRcK8ISGBNXrYS kSkTZ9lX1kuPIdt2eaNQF4HtRPQoGv6WXmTwZnik0J/iKSRZ+EDR8y7UjmxB2oa92cn1 IwBleum9w9HxPvzLziqNtZvOUZOy/NhJC4rxIr5MgV5L7nBmid96DgwfEUXQNpMH8w4f Rk5WIS9vuTD51g/Ub8N/VHzxbyc5U20MfMWoG5+TGTonRBKGB4oNaW6pHG7YIH8k4TIZ WeDDcSqPFrSy95Jlo0t7JOGfOxPKQarJXHXVhzG4H3AuBMngiTUnVDp1ZifygAFw5VbJ 1QoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685631464; x=1688223464; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sAFeVd+dwK+9T/TQ3aqc3usXxG9M6VjGUKGIkkMeOq4=; b=EX8VxXm+ugXsLL1ehr8vrDgf8khbwOjBstjcmeHhuPcFgkunNOnck1Y1Hgslzc15qD k2w/yZTYPcytKp83CXRJhYb6F4Osnqy8Yrph4K55irwSnJIAFiMKkdwDii7zpQZqmHKa Gd419WSH20RxWNOiJGs1qaIX5iOBeoWAfHwlxQZdOW1lGRXnfcGbqHyYKrXwnPIrR0yL cdblGdHEMZGqMUzmjU+Tt61Wm9KVJ47iNAjTarSV0aWyvLa60UyzhNliSvHIM1MLVId7 E2bSNRfD55dATTblKdloKwrUDCVI/BFj9MvaRHrDO9H9SFUwvsz55eE3GG+0nSElNBs2 GWsQ== X-Gm-Message-State: AC+VfDzDdDqqxaXbjQ6H9uMzx0vJGloRVmvbfHOS0tm0kV92f2I8Fly5 PyqQHHSbfdl8ax6IGiSSVOFS X-Received: by 2002:a17:902:b901:b0:1ac:6d4c:c265 with SMTP id bf1-20020a170902b90100b001ac6d4cc265mr5912141plb.28.1685631463700; Thu, 01 Jun 2023 07:57:43 -0700 (PDT) Received: from localhost.localdomain ([117.217.186.123]) by smtp.gmail.com with ESMTPSA id o17-20020a170902d4d100b001b0603829a0sm3577826plg.199.2023.06.01.07.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 07:57:43 -0700 (PDT) From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kw@linux.com Cc: kishon@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v5 2/9] PCI: endpoint: Add missing documentation about the MSI/MSI-X range Date: Thu, 1 Jun 2023 20:27:11 +0530 Message-Id: <20230601145718.12204-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230601145718.12204-1-manivannan.sadhasivam@linaro.org> References: <20230601145718.12204-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both pci_epc_raise_irq() and pci_epc_map_msi_irq() APIs expects the MSI/MSI-X vectors to start from 1 but it is not documented. Add the range info to the kdoc of the APIs to make it clear. Fixes: 5e8cb4033807 ("PCI: endpoint: Add EP core layer to enable EP controller and EP functions") Fixes: 87d5972e476f ("PCI: endpoint: Add pci_epc_ops to map MSI IRQ") Signed-off-by: Manivannan Sadhasivam --- drivers/pci/endpoint/pci-epc-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-epc-core.c index 46c9a5c3ca14..0cf602c83d4a 100644 --- a/drivers/pci/endpoint/pci-epc-core.c +++ b/drivers/pci/endpoint/pci-epc-core.c @@ -213,7 +213,7 @@ EXPORT_SYMBOL_GPL(pci_epc_start); * @func_no: the physical endpoint function number in the EPC device * @vfunc_no: the virtual endpoint function number in the physical function * @type: specify the type of interrupt; legacy, MSI or MSI-X - * @interrupt_num: the MSI or MSI-X interrupt number + * @interrupt_num: the MSI or MSI-X interrupt number with range (1-N) * * Invoke to raise an legacy, MSI or MSI-X interrupt */ @@ -246,7 +246,7 @@ EXPORT_SYMBOL_GPL(pci_epc_raise_irq); * @func_no: the physical endpoint function number in the EPC device * @vfunc_no: the virtual endpoint function number in the physical function * @phys_addr: the physical address of the outbound region - * @interrupt_num: the MSI interrupt number + * @interrupt_num: the MSI interrupt number with range (1-N) * @entry_size: Size of Outbound address region for each interrupt * @msi_data: the data that should be written in order to raise MSI interrupt * with interrupt number as 'interrupt num' -- 2.25.1