From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 6988BC432BE for ; Fri, 27 Aug 2021 15:04:22 +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 2A13160EFF for ; Fri, 27 Aug 2021 15:04:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2A13160EFF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=alotxnx3tdRpAkIb1b42xadywKuL1qGJVoUQyM6tjDQ=; b=3gZv17AV0jbAJI QrLy5f/j4VO781kCfM4evvIV+dJLNi5itZDmZrqNTjgei4cI+Um5z5PJL5xY+meC6NBAvF9ioaJle Xhov5SilGH6kVID/YdusELzmT6NXrBnt9m0/LHY+oe0PhyWSuVlOIGKLVE/jd/MxnHOAreETxrm44 fe1SrYkE/8vlgWRgvWcP+tkL9j50NWCXkZGnmdJKyGTvXe1na5dSgJ2shU4SVsfNutW9ExXz5UIlf zVklPtwrt1qrEpJl/9AOnZWHNORveMIKkQaC16PhQxwo0Ote/ovDx7ahrSftq9BA/xBger+5VkPy2 T9NiY2kyyRfH0gWT/zQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJdNd-00CcbZ-1M; Fri, 27 Aug 2021 15:02:53 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJdN3-00CcUH-VH for linux-arm-kernel@lists.infradead.org; Fri, 27 Aug 2021 15:02:20 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Gx2rk6Cvlz8vJg; Fri, 27 Aug 2021 22:57:58 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 27 Aug 2021 23:02:09 +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; Fri, 27 Aug 2021 23:02:08 +0800 From: Kefeng Wang To: , , , , CC: , , , Kefeng Wang Subject: [PATCH v2 0/4] amba: Properly handle device probe without IRQ domain Date: Fri, 27 Aug 2021 23:05:56 +0800 Message-ID: <20210827150600.78811-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: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210827_080218_346596_A6BEC74F X-CRM114-Status: UNSURE ( 6.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Patch 1~3 make some cleanup, and patch 4 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, and move irq obtain into amba_probe, the driver defer probe will properly to handle this error. V2: - add new patch to kill irq sysfs file, suggested by Rob. - move irq obtain from amba_device_add() to amba_probe(), suggested by Saravana. (As Saravana said, it will use a new mechanism to deal with the defer probe when amba device add and drop the amba specific deferring code, see[1]) - add Rob Reviewed-by to patch 1/2, no patch4 due to patch4 is changed [1] https://lore.kernel.org/lkml/20210304195101.3843496-1-saravanak@google.com/ Kefeng Wang (4): amba: Drop unused functions about APB/AHB devices add Revert "ARM: amba: make use of -1 IRQs warn" amba: Kill sysfs attribute file of irq amba: Properly handle device probe without IRQ domain drivers/amba/bus.c | 120 ++++++++++----------------------------- drivers/of/platform.c | 6 +- include/linux/amba/bus.h | 18 ------ 3 files changed, 30 insertions(+), 114 deletions(-) -- 2.18.0.huawei.25 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel