Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22173001ybl; Mon, 6 Jan 2020 20:10:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyijgrEzFhkFWU3VYHwTzs7kI0QlaQOsJMYU+4d8lpuhkZtgenIPBbtQ503eldvtXp4Zghb X-Received: by 2002:a05:6830:1e11:: with SMTP id s17mr115086116otr.343.1578370234538; Mon, 06 Jan 2020 20:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578370234; cv=none; d=google.com; s=arc-20160816; b=EYJWRoXbz81pTLD4E020Jg98sZHIaGEdvKogFLe+LF8Bpm/RmOyXyosp4514RFz9ar HCQXM3o4enrlGxiskx2Amrl/L4TrNhquhjL3sKexnlDbE8gX4mW0mBjvCzRwvQlS9Zeq /FHTz82qlN2mQAopjKh4fC89kb1U4CruNqtucq26G0cFKi9DXhH1G8toUVu+0eDuCwIl 8iIXHkOcrkt0nEfmdA57/gFbtS0QqSHj6j0wAlL1FUJs3tWaVjSSHaL30UVCMRXiLu7S M2OzRLjio25fOXlckLKGuDdEefkn9vSYtSsl+6b0kvDj4M9GPKatULd/kheV8M32y+1b bIow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=UbDGfz+Zv6xQM4bcQDYbb7lyZLmyc5f8z1Itmiihj5E=; b=Jv6PBN4TY14wwIe2MHHp8M1KQZPp2bMvsgQjIGsJe7nNH20D3KdXCIBN+P1iQmgl6r 9d7cjQBnzABdAOh8SNdnLHNH42B4crLcNglpkjbD+dfAjHxSYh72Ge248pBVDlp7EnHZ zj7SssezJaCue3NhNQuU3r8UchDymYi7D7yWa9q6ylJeGX2FFKV+P7EHJqUvcgc80hVb tJpcoZqbD6ykCfFWLaBPsepsJO/JhIFNL62bSkB++GPF1PQLQoX9qU2qtJx5twitZRDk nAgJtWjjyw/jzb41vxcn8pEPh0mk/DBE8QPivsCNU76YeRjP0i222H2UEBHYhg9zUJC4 e2jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=P7ZzXL12; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si24120462oib.70.2020.01.06.20.10.20; Mon, 06 Jan 2020 20:10:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=P7ZzXL12; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727520AbgAGEJb (ORCPT + 99 others); Mon, 6 Jan 2020 23:09:31 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42171 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727432AbgAGEJa (ORCPT ); Mon, 6 Jan 2020 23:09:30 -0500 Received: by mail-pg1-f194.google.com with SMTP id s64so27841354pgb.9 for ; Mon, 06 Jan 2020 20:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=UbDGfz+Zv6xQM4bcQDYbb7lyZLmyc5f8z1Itmiihj5E=; b=P7ZzXL12d6nzFrfsOQH7cZ60lX/Skm8S2B2/8CYu7pgFaR84V4+X0XLgWZsQAIYV9Z kXS9/VEgm5233KKw8jzFsG/PQgNvohqYMLSu6XS2HwF3LnGptQlDpDQ9/IGNmlV+sjTR gwwTyZTy7ZKUbZIPS3eKJqDd6csG9+QyEImwI= 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; bh=UbDGfz+Zv6xQM4bcQDYbb7lyZLmyc5f8z1Itmiihj5E=; b=lqWdCWSDoPEUHwxAwnlTnbOI3yK3tdsH9xOw0KoxWQO0H70GfArJnqyUjdcIrVIIE3 5NoqDqN9pm+K0xiwyeUNg5rUS8ul1V0w2lmB+lnXfqj59cOlaB8pii6UOuSCgRLUr1Ib etEdOA8pqSp5wrs7cOMw5XBsekCT+eNhprRqQWRCINS9JiseExRnCJFAMXzvy5a6/OIc 9WTCWpp1m7WkN34SMI76aGGES/tC2yUQB/SZZdnGWF6NKyQHJ+FIh++ijvYc4JSfyT7d m0duSN9YakNsa4XQqztqlMpFIl1iLdGr5s7Yvwatvh3lZBYNRBBhCb8U6qlgy8njg2st 24SA== X-Gm-Message-State: APjAAAUixGSd87kPlt9ib3PPiKjFwxzycn+AYWeanH3tAqCl9v+fE6Wh 8zY4v9JMbeXGJQzWDNjhGZDwIw== X-Received: by 2002:aa7:874a:: with SMTP id g10mr94042109pfo.205.1578370170296; Mon, 06 Jan 2020 20:09:30 -0800 (PST) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x65sm82920355pfb.171.2020.01.06.20.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 20:09:29 -0800 (PST) From: Rayagonda Kokatanur To: Kamal Dasu , bcm-kernel-feedback-list@broadcom.com, Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Fainelli Cc: Rayagonda Kokatanur Subject: [PATCH v1 1/1] spi: bcm-qspi: Use platform_get_irq_byname_optional() to avoid error message Date: Tue, 7 Jan 2020 09:39:12 +0530 Message-Id: <20200107040912.16426-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use platform_get_irq_byname_optional() instead of platform_get_irq_byname() to avoid below error message during probe: [3.265115] bcm_iproc 68c70200.spi: IRQ spi_lr_fullness_reached not found [3.272121] bcm_iproc 68c70200.spi: IRQ spi_lr_session_aborted not found [3.284965] bcm_iproc 68c70200.spi: IRQ spi_lr_impatient not found [3.291344] bcm_iproc 68c70200.spi: IRQ spi_lr_session_done not found [3.297992] bcm_iproc 68c70200.spi: IRQ mspi_done not found [3.303742] bcm_iproc 68c70200.spi: IRQ mspi_halted not found Signed-off-by: Rayagonda Kokatanur --- drivers/spi/spi-bcm-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c index 85bad70f59e3..23d295f36c80 100644 --- a/drivers/spi/spi-bcm-qspi.c +++ b/drivers/spi/spi-bcm-qspi.c @@ -1293,7 +1293,7 @@ int bcm_qspi_probe(struct platform_device *pdev, name = qspi_irq_tab[val].irq_name; if (qspi_irq_tab[val].irq_source == SINGLE_L2) { /* get the l2 interrupts */ - irq = platform_get_irq_byname(pdev, name); + irq = platform_get_irq_byname_optional(pdev, name); } else if (!num_ints && soc_intc) { /* all mspi, bspi intrs muxed to one L1 intr */ irq = platform_get_irq(pdev, 0); -- 2.17.1