Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2823728rda; Wed, 25 Oct 2023 13:25:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELw077+wSBLOLCYWRQykRXtsSJNRdur1PECYdwKdmzoSOUOV7JTtZbqgG4IrdiJjueiUiq X-Received: by 2002:a9d:6c56:0:b0:6bc:fdc8:d600 with SMTP id g22-20020a9d6c56000000b006bcfdc8d600mr15279056otq.25.1698265538324; Wed, 25 Oct 2023 13:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698265538; cv=none; d=google.com; s=arc-20160816; b=FJV+499+E+enq6SNZ756AJ9JNIKeZGlkzeOXztkSOieptggQblKTTaQLpsTo48mjHd nIkug+oHYqjVKdHDi1lzzbv8Ax/P7CblnhlNsok8vzDErcWj39nStHOmfgOt2w/OYxHx NL7ypneN9qCILTeRtCrGZIt1xf5A5Jyu5jPNkoAUW/m65YAlGK0t2GYGpBZPrOrsbSTX dFOQL7fUa7j1s/9qodaU2Vsn1uGa8wcaiUJNgIwFaT8bhG0Msym5+qirho7rKXzqfVse 8R5PZws6TH9wnyu3YPtZGxWBzr27RARuYpYtxkif59+XrAP/dbf7nIPAZBNPbk3F1D+T oNww== 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=jdOBYbLR+bXetJ+YmrkOyswglZ/H3DLDZKjYZYq4pUE=; fh=/fEAwM0ftwV2z3MN/iSYq1lv8IFPZ2fY8Kg8RoFcxjU=; b=Jry41Yj9qz/EH+30i2C2Dhm0PNdj/3T1QFYGXVuW7Mzuw6LFQnPdqeMLF+MGssmvxm c+p2XKG13LvYQq+lpNdUGjnq6Hk+vA3MbiTz/XhA68TIbqqkMoqU2aRJMmqEQ2QmEyzy w5N1Z568BkllYi6PjZiBH/oc7J2U9lnzg4N2F2iz1+1SIkY5OGQskTOJL82yL7G7yfRS MNyTPCetnKk+WPQ3GHCqm1GyyvjZw+P8r/8jrufmfSgqyuJ7cVa0zHiTZJFmBY4ZmzVX RdhT/1NdaZU6GadQ62PESNqPoZIyQYZaGKg+S87eKwHuBAumg3YyyGglC+SvSSpgtA9M zlvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=HmX0WIx5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c126-20020a0dda84000000b005928ea1c823si12097643ywe.443.2023.10.25.13.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=HmX0WIx5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 61BA080298A5; Wed, 25 Oct 2023 13:25:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343561AbjJYUZ2 (ORCPT + 99 others); Wed, 25 Oct 2023 16:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbjJYUZD (ORCPT ); Wed, 25 Oct 2023 16:25:03 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4412A18C for ; Wed, 25 Oct 2023 13:24:55 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6934202b8bdso143110b3a.1 for ; Wed, 25 Oct 2023 13:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698265495; x=1698870295; darn=vger.kernel.org; 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=jdOBYbLR+bXetJ+YmrkOyswglZ/H3DLDZKjYZYq4pUE=; b=HmX0WIx5ZKR8Cg3REtV8WvU+4A28I3jLrhYLezQY+rp0mQhBER7xMb/ToHKODSjlj7 9aLYkV02gUF/2XnEVo1AwnEOt58O6rZquL0s3P53ziGLqlbYyPbjdycjDYoUW1stjWvr rKgGnj5V3bcFCfmCjdxyPLXDN0xB2fxplJUE3DqCkdHc3mzjVEKH0kXwgsDTy4hYAqP9 P/WBTpzN7E0ZoKTHRR2UA05tUxCkaAIkx+j19OSo9SBppQIUcY9JUwadvgwhh3sG76gl R7B0oJcJMu5lOEj+1NQvmnD88vwGK+ehl5SxiF0Ecwg7iRYw96TElPdqUlCsZbN/v6ch 4ANw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698265495; x=1698870295; 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=jdOBYbLR+bXetJ+YmrkOyswglZ/H3DLDZKjYZYq4pUE=; b=iMGDDsoXNGhnZeG2fsx/YLaNIJTlg0RbtjScz2mDdl3dj7st7zFwiKwqjNRqgQlh6F LETtDfU2NYs6FU3YxEn6StbIX5zz0MXnIX5TOI9Nr8cCeIk2rWEYU1WdApgPx6EjdjBE Jtsb+Iz2s/ETiZ8z56c3+s7m4+5+sEHcoKvS0624HyiueS80+ZoHnlketLQg8hkh7aSp 27o7QnmOdG9mRUi6VLU+/ZxOl+fIJ6db3PHA/9IVl3ib4wI8TYmzGeHjbrM2ETjFKoWK 9elMPtQKQJE8Q67mSiEmmlVyheAYAy0mWko1KUXF0bfoNmBw3xJXrychMnNbNmbdSKC8 aCpQ== X-Gm-Message-State: AOJu0Yw1yt0QiGh4TFulGFjkHKFj4FSds1EyLvCEjYnKdCJzg73shsvp RJAOWJEkTZIrvq59zwSKHbes1g== X-Received: by 2002:aa7:888b:0:b0:6bd:9281:9446 with SMTP id z11-20020aa7888b000000b006bd92819446mr19185035pfe.10.1698265495348; Wed, 25 Oct 2023 13:24:55 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.188.78]) by smtp.gmail.com with ESMTPSA id y3-20020aa79423000000b006b84ed9371esm10079590pfo.177.2023.10.25.13.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:24:54 -0700 (PDT) From: Sunil V L To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Greg Kroah-Hartman , Jiri Slaby , Conor Dooley , Andrew Jones , Atish Kumar Patra , Haibo Xu , Sunil V L Subject: [RFC PATCH v2 08/21] ACPI: pci_irq: Avoid warning for deferred probe in acpi_pci_irq_enable() Date: Thu, 26 Oct 2023 01:53:31 +0530 Message-Id: <20231025202344.581132-9-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231025202344.581132-1-sunilvl@ventanamicro.com> References: <20231025202344.581132-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 13:25:35 -0700 (PDT) When the architecture like RISC-V supports deferred GSI interrupt controller probe, acpi_register_gsi() can return -EPROBE_DEFER which is a valid use case to delay the dependent driver probe. So, avoid printing the warning for the deferred probe case. Signed-off-by: Sunil V L --- drivers/acpi/pci_irq.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index ff30ceca2203..f7d0822da08f 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c @@ -452,8 +452,11 @@ int acpi_pci_irq_enable(struct pci_dev *dev) rc = acpi_register_gsi(&dev->dev, gsi, triggering, polarity); if (rc < 0) { - dev_warn(&dev->dev, "PCI INT %c: failed to register GSI\n", - pin_name(pin)); + if (rc != -EPROBE_DEFER) { + dev_warn(&dev->dev, "PCI INT %c: failed to register GSI\n", + pin_name(pin)); + } + kfree(entry); return rc; } -- 2.39.2