Message ID | 20230811095805.2974722-1-maobibo@loongson.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp979938vqi; Fri, 11 Aug 2023 03:12:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/TsteyyY+SnUaLCOh8kg5jwdCkZ31gCPyFveNULvUR93NreGevU89xeCTnBbpDQKnchHW X-Received: by 2002:a05:6402:51:b0:523:1e18:3a78 with SMTP id f17-20020a056402005100b005231e183a78mr1159498edu.12.1691748732199; Fri, 11 Aug 2023 03:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691748732; cv=none; d=google.com; s=arc-20160816; b=d9IWOx0QXEgA3btp86JSAnFsx/lsgqUjfZfdAeCHJwrEPpAZhucPIj0BL1wNM7Muws XVuGNJWjCYKM572r72xCk0d4//ac9Bikr9Fol1m/9MMK40d8kbcJTQwV2nC6tkE56Cpo GCvXZKYYl1D0NKWCteTfNRvbKKDYWfBHG2kVQCSZV1VTX+4f+ciAWXqk+Nl32KYdvIeo fPkteBEzyVb+Ki0bdOptJ1I3Zs+y+9O7OZ4ejwK1ETzgdlquGLqvwZPS2ZSfwlSgpTJL FxQIuCpL7DIqQdfx8Xotq7CXOIkz2h/mOJ2eSPPsECLrEoMbBR/xNd2Gu70c5TPZOv8v 4waA== 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=4yGN5zVWD5U85U+rJcUAutD+SeMsEglXnZcHq+9VN5g=; fh=Y3+CR8DbvrL4KzdH0gKbA6cLtkHm4Wgbs811/TdZ+7Y=; b=lREQkmgY+I0YerMtTVin7ipGuzgyAynp2hgiqzMdtSbiEzQn5zuTRidJ2+iUQWZaRS yvmdhCNQCkvgq3QlcFcV/ZkAgwhGRIOeNkmCD51e7FWBYiOaiSaRnral1DbAYSBL2Ipj p1nAxm/FoYAQvFteBXswiHYW2RfUdGvdnyb/K/6+lEdnwUqkFY5KiQS2DfE8853bf/DN ge95TcFQrc41Tu9PeHs8IIO4XSEmaL7munpTT/hi+J1FEqya45I8anUersZljBt8S2G4 17RkapiAYmbiQ94lfR6uCdEOdFDCnvB9+TX+zf7puay0J9sR2oyBehE5BP98H90NO4WU jb0g== 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 x13-20020aa7cd8d000000b0052328243febsi3151077edv.153.2023.08.11.03.11.48; Fri, 11 Aug 2023 03:12:12 -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 S235210AbjHKJ6M (ORCPT <rfc822;shaohuahua6@gmail.com> + 99 others); Fri, 11 Aug 2023 05:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235209AbjHKJ6K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Aug 2023 05:58:10 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7A0A30C0 for <linux-kernel@vger.kernel.org>; Fri, 11 Aug 2023 02:58:08 -0700 (PDT) Received: from loongson.cn (unknown [10.2.9.158]) by gateway (Coremail) with SMTP id _____8AxlPAuBtZkLoAVAA--.45858S3; Fri, 11 Aug 2023 17:58:06 +0800 (CST) Received: from kvm-1-158.loongson.cn (unknown [10.2.9.158]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx5swtBtZkyshUAA--.59296S2; Fri, 11 Aug 2023 17:58:06 +0800 (CST) From: Bibo Mao <maobibo@loongson.cn> To: Huacai Chen <chenhuacai@kernel.org>, Marc Zyngier <maz@kernel.org> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>, Jianmin Lv <lvjianmin@loongson.cn>, linux-kernel@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v6 0/2] irqchip/loongson-eiointc: Add simple irq routing method Date: Fri, 11 Aug 2023 17:58:03 +0800 Message-Id: <20230811095805.2974722-1-maobibo@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx5swtBtZkyshUAA--.59296S2 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7JFWxZr1xAw48tw1rWw15trc_yoWDJrXEgr 9Fv395KrWfXFZ5Za4qyF17JFZrA3yagw1Y9F4v9F15Z348Jr1DGrZFyrZ3Jrn2ga4YvFn8 C398CFyfXryayosvyTuYvTs0mTUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb28YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j1WlkUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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: INBOX X-GMAIL-THRID: 1773927118532427195 X-GMAIL-MSGID: 1773927118532427195 |
Series |
irqchip/loongson-eiointc: Add simple irq routing method
|
|
Message
maobibo
Aug. 11, 2023, 9:58 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 eiointc node, rather than use anysend method. --- Changes in v6: Remove QEMU virt machine eiointc supports, will provide extra patch when eiointc model is fixed, now eiointc model keeps the same with physical machine. Changes in v5: Modify typo issue. 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 | 82 +++++++++++++++++++++++--- 1 file changed, 75 insertions(+), 7 deletions(-)