From patchwork Thu Jul 13 03:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bibo mao X-Patchwork-Id: 13311228 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63C86EB64DA for ; Thu, 13 Jul 2023 03:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233584AbjGMDW4 (ORCPT ); Wed, 12 Jul 2023 23:22:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233612AbjGMDWz (ORCPT ); Wed, 12 Jul 2023 23:22:55 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C861C1FE5; Wed, 12 Jul 2023 20:22:45 -0700 (PDT) Received: from loongson.cn (unknown [10.2.9.158]) by gateway (Coremail) with SMTP id _____8CxrusDbq9kV0QEAA--.9224S3; Thu, 13 Jul 2023 11:22:43 +0800 (CST) Received: from kvm-1-158.loongson.cn (unknown [10.2.9.158]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxbSMDbq9kz6MrAA--.8174S2; Thu, 13 Jul 2023 11:22:43 +0800 (CST) From: Bibo Mao To: Huacai Chen , Jiaxun Yang , Marc Zyngier Cc: Jianmin Lv , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v4 0/2] irqchip/loongson-eiointc: Add simple irq routing method Date: Thu, 13 Jul 2023 11:22:41 +0800 Message-Id: <20230713032243.2046205-1-maobibo@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CM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0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8zwZ7UUUUU== Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Fix return value checking of eiointc_index where int type is converted uint32_t and check smaller than 0. Add simple irq route support on system with only one eiointc node, rather than use anysend method. --- Changes in v4: Modify some spell checking problems. Add Fixes tag. Changes in v3: Modify some spell checking problems. Changes in v2: Use the simple irq routing on embeded board like 2K0500 and 2K2000 board, since there is only one eio node. --- Bibo Mao (2): irqchip/loongson-eiointc: Fix return value checking of eiointc_index irqchip/loongson-eiointc: Simplify irq routing on some platforms drivers/irqchip/irq-loongson-eiointc.c | 93 +++++++++++++++++++++++--- 1 file changed, 82 insertions(+), 11 deletions(-)