Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp201650rdb; Mon, 22 Jan 2024 00:59:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCEdt+ZFrMVvLEjuLSwflD+O2gOu1xl2tVHvGe9ShdQoXgRSQr4ZWVh2oO09YftHTLMJKm X-Received: by 2002:ac8:5acb:0:b0:42a:3225:a335 with SMTP id d11-20020ac85acb000000b0042a3225a335mr5358849qtd.107.1705913972241; Mon, 22 Jan 2024 00:59:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705913972; cv=pass; d=google.com; s=arc-20160816; b=xac2zyFZTNud7Ps9UxKg02p1vBQRNO9LnW0/ihvWioBUrRJ9jRSDDyw4ZWqJXKbDm9 g0JPZly9L5HchkaYBe7d4zHxSTU/Z/OyG3Iwm/Puh9Q01nTGfpesWBaWQrN+G2yvDK3D a2Wu0goYasY9wdwE5K3PvD3lG3IOO/OIgXjS0v7nSed8YRSePMECW5hgxWiR5cDiLN4g YTKPAsV81UiNix2YiVdaLDRHtgI5x7bXly3GyQhe0WZTHz3gKxKHntDfchpvjIADaWml yuYcRq3ki2aGROwC1G9A/MFhGtPQsJgR5iNTPXhcHECnMBaq+TOlyBGIxjdOnY0p/XnS TYzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=r+tT0waPwhuj6D4++JNlfzp8oMKOZm+Ysh4j5YpzPNY=; fh=fhl29VgcwdOsneTlbOdSMck1eQdlOQed/8OKKjpLkTo=; b=aspT2J+2nGSSzMJWNXKbfjbJK6atSsJ/bopxIPKzddCbMy4kd3hpUPne0hUdqWWdP6 7bNXuaI5VSMOg3fJ3rw0J0WiHX7Y86cEkZxsPLUElYiCxBcTMEi5HMVkUSxwZ0eqop1r dN2wXmkc4GIdvTxMlOOfXVcaNKPdJe1tzUJhQ9Zat1kXaMiej9GY4V6PshGtssmKuR1E KYv2/B9TdifBi749XA8tfTZpPA+HDUouCup/OQq9+pr98SU8PNQ7gghb/T5fBFn3OTsJ NfEGVauEjmcIDuDRbmXEABMng5S2amBg2JbUR/jj5Z+rteYdguVExaQQNzSyi8NXB5yp pF5A== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-32578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z7-20020ac87f87000000b00429d0dc308dsi5145567qtj.62.2024.01.22.00.59.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 00:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-32578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B24001C23C98 for ; Mon, 22 Jan 2024 08:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA62A3717F; Mon, 22 Jan 2024 08:59:24 +0000 (UTC) Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A0E2364C5 for ; Mon, 22 Jan 2024 08:59:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.194.254.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705913964; cv=none; b=aa3DzAd9SnO+CAwrFYGzgChjrwSmCgTQA9NP4uDvPhAij04Mpf+hSi9T6nfGRVZQdm1xX0+6+4k9hu/3wnWgIPt+aNFqD1ULJhUWmOSLo9vggZ8IQwx0Zh7Ti3KUYaHHygowxfLSU84DQPSc3GgIgKDrX6YDYQNjOgcbMnwuGrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705913964; c=relaxed/simple; bh=TpdjWgl8rm+e8R5g/T7zj2OakXIxhkuLtJETNTCb2QM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tzUqWsuS2/5JIL9l0Ign6B1oig7VMA5cDknKeEKCoxQ0XZFI/RJsFRXUTrSZeZisM8M6+375E8zUgQO6C55B3K+9wIFriu9amkV+QKO10QI4kTZwSMMrPNNRc7PAlWMZVNrazuXtuBKasdnWPFTupYly/sqZK8vfxEhpC3XV290= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=18.194.254.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp77t1705913931t1q1my5r X-QQ-Originating-IP: eK/IfaiV/0lQpObfzrGBWw31Gb5grgDe6EGOaiE9ut0= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 22 Jan 2024 16:58:49 +0800 (CST) X-QQ-SSF: 01400000000000504000000A0000000 X-QQ-FEAT: I8hG9CuxGDJNZ5pk5XwddWQNmlaPcjGGg98kYiC3fcAAvalo7BtD20kGubVwb K+aOHokAsjyt5UshKmyGw1dBNi/aBa09uZTLkT2Eg4qmScsIPyxTjfAJWCnL6CP7oOb+Eql hBP4GujLNrS7nqccEIs6uPrFouYFzbDhDM522iDDIgWnfUVVTDRRiebnnLnfEuMVlTLG7d9 7MOjhuVTQ0fyYHw2QC4iXdKxKU0/eO5c8UH6RE53v4ufOGYJNYuCDL2+zKN6LoJABUPpJzF zfJz+9dqKJWY4DdpyLg6o6hY/HdAMBwB1ASxRQtw4LRUDeHq3jxgwr1WoOAG1hChn+XOrs1 9JBrLEHy6NUmEfbHAGGwlR1idZqhx+XLk2t3X5mjhZymi+XHFYxnVseniEt8k12mbOZzL3a X-QQ-GoodBg: 2 X-BIZMAIL-ID: 7828049924746051990 From: Dawei Li To: tglx@linutronix.de, maz@kernel.org Cc: sdonthineni@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dawei.li@shingroup.cn, set_pte_at@outlook.com Subject: [PATCH v2 0/5] Minor cleanup on gic(v3) and genirq Date: Mon, 22 Jan 2024 16:57:11 +0800 Message-Id: <20240122085716.2999875-1-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 Hi Thomas, Marc, This is V2 of previous series[1] of minor cleanup on GIC(v3) and genirq. Changelog: v1 -> v2 - patch[1/5]: Address the issue by Marc - 1000000 -> USEC_PER_SEC; - Vertical alignment of parameters; - Update commit message; - patch[2/5]: Address the issue by Marc - gic_irq -> irqd_to_hwirq replacement; - Convert the type of struct irq_data::hwirq to irq_hw_number_t; - Some coding style improvements; - Add Suggested-by from Marc; - patch[3/5]: No change - patch[4/5]: - Add Acked-by from Marc; - patch[5/5]: New - As suggested by Marc, implement a dedicated API for irq_desc init Dawei Li (5): irqchip/gic-v3: Implement read polling with dedicated API irqchip/gic(v3): Replace gic_irq() with irqd_to_hwirq() genirq: Remove unneeded forward declaration genirq: Initialize resend_node hlist for all irq_desc genirq: Introduce generic init_desc() drivers/irqchip/irq-gic-v3.c | 55 ++++++++--------- drivers/irqchip/irq-gic.c | 27 ++++----- include/linux/irq.h | 2 +- include/linux/irqhandler.h | 2 +- kernel/irq/irqdesc.c | 112 ++++++++++++++++++++--------------- 5 files changed, 102 insertions(+), 96 deletions(-) Thanks, Dawei [1] v1: https://lore.kernel.org/all/20240118112739.2000497-1-dawei.li@shingroup.cn/ -- 2.27.0