From patchwork Mon Aug 16 07:46:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 497755 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, 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 44C36C432BE for ; Mon, 16 Aug 2021 07:43:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 30A3461ACF for ; Mon, 16 Aug 2021 07:43:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234372AbhHPHnw (ORCPT ); Mon, 16 Aug 2021 03:43:52 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:13327 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbhHPHnu (ORCPT ); Mon, 16 Aug 2021 03:43:50 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Gp5k821jPz7yyv; Mon, 16 Aug 2021 15:43:12 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 16 Aug 2021 15:43:12 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 16 Aug 2021 15:43:12 +0800 From: Kefeng Wang To: , Rob Herring , "Frank Rowand" CC: , Russell King , "Linus Walleij" , , Kefeng Wang Subject: [PATCH 0/3] amba: Properly handle device probe without IRQ domain Date: Mon, 16 Aug 2021 15:46:16 +0800 Message-ID: <20210816074619.177383-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Patch 1 and 2 make some cleanup, and patch 3 use of_irq_get() instead of irq_of_parse_and_map() to get irq number, return -EPROBE_DEFER if the irq domain is not yet created, amba_device_add() will properly to handle the no IRQ domain issue via deferred probe. Kefeng Wang (3): amba: Drop unused functions about APB/AHB devices add Revert "ARM: amba: make use of -1 IRQs warn" amba: Properly handle device probe without IRQ domain drivers/amba/bus.c | 100 ++++++++++----------------------------- drivers/of/platform.c | 6 +-- include/linux/amba/bus.h | 18 ------- 3 files changed, 27 insertions(+), 97 deletions(-) Reviewed-by: Rob Herring