Message ID | 20230706022849.1272591-1-maobibo@loongson.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2276999vqx; Wed, 5 Jul 2023 20:02:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFfAO7o/wehTMgWjhMOUqhZbDXDlN69Ze/BEtCRJnRLTdbKGkCS//UlJp5cD52yrOZPVhG9 X-Received: by 2002:a05:6808:2a83:b0:39a:abe8:afb9 with SMTP id fc3-20020a0568082a8300b0039aabe8afb9mr364427oib.42.1688612571712; Wed, 05 Jul 2023 20:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688612571; cv=none; d=google.com; s=arc-20160816; b=PYktTjEWk7hK/LQAtNc799Nkvi+8u3PdB48IvknehBnmTYLyTZ0AjjgIiGH2Qkp8Il YZHPbfPSV6jR7CYfcFE7Aq5hqhIhhhLMB9KuQbpYqATNZPbFZpAkGbZepH8wLhk4/XV/ +JG7mDCGRvj/YRd+yS17KFsJ4qHmnOFJVOmAkwMt8OSzfszWOKDNGXXTS+vdyBI2kJm2 vyC3yW6izu+YtE0vZWUJ08U/27jXaYVoP3+OfNy2hSpXUeyMU3a6PnBiB4trT8+CkCCH 0iXbxGoEaUlkIu6VvmiwOZ16omWPIVoSZyfuAZDOXCgOBgJJMwwgDBxs6QreDcu+58QY nIuA== 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 :message-id:date:subject:cc:to:from; bh=qW9Nksqi5Qv5VbHh+3DUn08v0/wCrk1S8C2XyzeABLc=; fh=WrELnb4ZUhcKoy8qr+86JwLN9Krfq2ED1i0xcLj9B70=; b=scrfV/VlJbhGZMKh321H2Ihcv/0zNKGMFRsbrsVcNfhfzzd34JMvfNHhCpVBPCgYlm 9CJgbMofqkjpNEd9/GyoFevDBwS0p5mNL0/BYLY0x9nlWQ9fzplNyZ6ijhYuwE4F79Kr r5xANoWSqUwneA7Vfk9uwzL2llvOc+TLbLuj4r7lhPg6RJCICJrH7CZwfN+CIyhBwOZm H3V0USgMKY0ntZPVO5jYoWVASfFOYstTiIP4ZZx+L3iDTexbd49inOfB9B+cw+NT6ybl tUc4uEwC4333Y4sRLvhQK7Pn8JyXq62OjvPCIweuRMGucOdtOugvIdmmtZ6nsIoK1v4V 011A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a056a001c9800b00682850547afsi471542pfw.193.2023.07.05.20.02.36; Wed, 05 Jul 2023 20:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbjGFC2z (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 22:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbjGFC2x (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 22:28:53 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4EA8D1990; Wed, 5 Jul 2023 19:28:51 -0700 (PDT) Received: from loongson.cn (unknown [10.2.9.158]) by gateway (Coremail) with SMTP id _____8CxbeviJqZkFbQAAA--.345S3; Thu, 06 Jul 2023 10:28:50 +0800 (CST) Received: from kvm-1-158.loongson.cn (unknown [10.2.9.158]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxjiPhJqZktK8dAA--.49030S2; Thu, 06 Jul 2023 10:28:49 +0800 (CST) From: Bibo Mao <maobibo@loongson.cn> To: Huacai Chen <chenhuacai@kernel.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Marc Zyngier <maz@kernel.org> Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv <lvjianmin@loongson.cn>, loongson-kernel@lists.loongnix.cn Subject: [PATCH v2 0/2] irqchip/loongson-eiointc: Add simple irq routing method Date: Thu, 6 Jul 2023 10:28:47 +0800 Message-Id: <20230706022849.1272591-1-maobibo@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxjiPhJqZktK8dAA--.49030S2 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7JFWxZr1xAw48uw47uF4rJFc_yoWxtFX_Wr yIv395JrWSqFWrZa9rA3W7try3uayYgw15AF4q9r15Zr1UJr1DJrZFyrZxJrn7WF18ZFn5 Crs5Jr1fAw12yosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb78YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8 JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v2 6r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwI xGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480 Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7 IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k2 6cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxV AFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1EksDUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770638615935983210?= X-GMAIL-MSGID: =?utf-8?q?1770638615935983210?= |
Series |
irqchip/loongson-eiointc: Add simple irq routing method
|
|
Message
maobibo
July 6, 2023, 2:28 a.m. UTC
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 eioi node, rather than use anysend method. --- 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 route on one eioi-node system drivers/irqchip/irq-loongson-eiointc.c | 91 ++++++++++++++++++++++---- 1 file changed, 80 insertions(+), 11 deletions(-) base-commit: d528014517f2b0531862c02865b9d4c908019dc4