From patchwork Wed Mar 11 19:19:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Sharma X-Patchwork-Id: 11432667 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B41321392 for ; Wed, 11 Mar 2020 19:20:00 +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 3056C20578 for ; Wed, 11 Mar 2020 19:20:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ABk/8IGw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G2+txh85" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3056C20578 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ny/v1lCe0b5Rw5c2IYiSu9VuPIJxsxCM8Lq1QYGJprU=; b=ABk/8IGwS2ytxK gkfjpRCcxBCSeAtW3ginTn74zUGI7fNLnGhLqdhoLP52ktD2BB5faeWa+QYzaQN6/vLmBWbLtt5i7 fWZGHUANVUsopQWOpJksLGY5RHWzSjmBYF8GKqeEWgm8B+9tV+oeU3kCgxfRnwUl1H8Y1IU92giAw fTbS/ITEpC4zXAZFzULuFBoALHdyM8+UT2Tl/DoAv1p9MunM/ZxuJTYxaXvtDFhrLR2ue5utdAGBo DbIV5cB/gX1xmGOzpBrveS8NXHY84e0W8oV/GvUEsWcqT5gyEL55lFIuU1NEY2hpubhJ7dyuNKvsG INT1Pnwda2QnRPj7YFSg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jC6tW-0006TC-R2; Wed, 11 Mar 2020 19:19:54 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jC6sy-0005wB-Ey; Wed, 11 Mar 2020 19:19:21 +0000 Received: by mail-pg1-x542.google.com with SMTP id m5so1731492pgg.0; Wed, 11 Mar 2020 12:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=r42oaftrh5pHz14qU1GYkB0RQE5bj151KUZhP6WCLUU=; b=G2+txh85XP+S2jm9NSogjxqBUikS9Ngp6DtlfWcrAd9ufiH47Xb0eN1WLqYPThF/21 1CiU/fLxTDxovvO+tstyelBWaQNE54Cd9MaVw5sUNbbJll0t9oy6RoVBciTb1yx+p3n8 SYMIbkSRuqEWGJPp9+ILBaLuPRjrhgatYgkP4uCMx2DpqGuBtdGqDm9bz7yvAOkct02H ymKsFcr0TFGylW3wkp6TPDnM7XYWoZVV1aaNU6yHrcziFZvZIJAKRJCwXzanVr0JxFdT eOoxecolqmumlXalOmw6vTiAKijvk0SgCuOyhL3gDgTTbUUoHdPR+r5SudaD3n/8pHnx JSmg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=r42oaftrh5pHz14qU1GYkB0RQE5bj151KUZhP6WCLUU=; b=RL7X3Tap/7GoNQRLJEAZMBM3bMNJxXuEspBYKcARA3cykSk9TCh9qNjrSeXaQAaGDv ACbSmoUnqum43ChrtdsVXJ5drbc5WzZQQ2X/EUx0fkideKENchtJMYoGpR5Xoqrq7LF/ XwcP17hi3W9jVqz3XcBWU92gABSygoRbfPJw6F5fzJCg1s6MVtxHwHIZ8BdqIz4FGz0x WK5o4Ux04oZuTop0Fcx5939vyvUFz5Q5BLR5EjJuNfPp3jL2COB9387TZ9GOd3W8cy0O OtO1n0jJ9oZqnDGGOrdfCb9MgegMy/38NqtImYa3WRAsxFApdqYpTiVubGZoCRbB44MM v/KQ== X-Gm-Message-State: ANhLgQ0Bc8l2I8XY2k2Em7ZNTVqnrHxYRJ6M5wyVe0TBTTR0fbkZkJAL mIPGwuXcoEN4F0lj4uZDCgA= X-Google-Smtp-Source: ADFU+vtbPme6BTAJZmyevs7rgWm3h1iPQrP+b1siICnoXHB1UQz+utoRSjjlAt3zopkF2PlmJnFY3w== X-Received: by 2002:a62:ce48:: with SMTP id y69mr4249326pfg.178.1583954359553; Wed, 11 Mar 2020 12:19:19 -0700 (PDT) Received: from localhost.localdomain ([103.46.201.94]) by smtp.gmail.com with ESMTPSA id z17sm3792673pff.12.2020.03.11.12.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 12:19:19 -0700 (PDT) From: Aman Sharma To: Subject: [PATCH 1/5] pci: handled return value of platform_get_irq correctly Date: Thu, 12 Mar 2020 00:49:02 +0530 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200311_121920_523119_75DB32D0 X-CRM114-Status: GOOD ( 10.81 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amanharitsh123[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amanharitsh123[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lorenzo Pieralisi , Karthikeyan Mitran , Marc Gonzalez , linux-pci@vger.kernel.org, Linus Walleij , amanharitsh123@gmail.com, linux-kernel@vger.kernel.org, Matthias Brugger , Ryder Lee , linux-mediatek@lists.infradead.org, Thomas Petazzoni , Bjorn Helgaas , Mans Rullgard , Hou Zhiqiang , linux-arm-kernel@lists.infradead.org, Andrew Murray Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org Signed-off-by: Aman Sharma --- drivers/pci/controller/pci-v3-semi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-v3-semi.c b/drivers/pci/controller/pci-v3-semi.c index bd05221f5a22..a5bf945d2eda 100644 --- a/drivers/pci/controller/pci-v3-semi.c +++ b/drivers/pci/controller/pci-v3-semi.c @@ -777,9 +777,9 @@ static int v3_pci_probe(struct platform_device *pdev) /* Get and request error IRQ resource */ irq = platform_get_irq(pdev, 0); - if (irq <= 0) { + if (irq < 0) { dev_err(dev, "unable to obtain PCIv3 error IRQ\n"); - return -ENODEV; + return irq; } ret = devm_request_irq(dev, irq, v3_irq, 0, "PCIv3 error", v3);