Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5148535rwb; Sun, 22 Jan 2023 04:16:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXsabdNwq9weUdLOWh/4IWiMcamPcLJK8MHAmxZtlw48M0XJfgdhjcgqzNhWSEdd1zysNywL X-Received: by 2002:a17:90b:698:b0:226:ad9f:92c6 with SMTP id m24-20020a17090b069800b00226ad9f92c6mr44558355pjz.32.1674389777583; Sun, 22 Jan 2023 04:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674389777; cv=none; d=google.com; s=arc-20160816; b=Pw8sVYLgEtO5O8rve2vNuAVYggmKbxHBuAA93WW3Qos7ZoZf1o2lHRY+d+PRN48gRA 8sxJ61l334s165p1YYVmPzjrgHKtjqFitCMF7aMUXVC4J8aOqRo90+kGvk1ouNWLjnr6 tIw4ccuIJ4lK5hAfZmxZlF8uy1zj9gCbqMmgaTI5pDXbRgF7ovS+ENZBvJ/Goc/f9eAb dPCH38goZrWlYpN6bLQ+4nwsoLXEtMIkvVFKylHslV0JO3/7JQ7F6bw8cEQnSYSqUomm 8+m8D8PMDf//dp9antgfkEdq8N0TKW7WBx9IzkpnPIwEeg+XRrD/Tk+iFcE9ZAxzO+Zw +PmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VLe1tCHvsXuqDEBtfO7OY5kLhydgi9CnGmhErJAm6aY=; b=LHSzsuo9czPXXZHvOV7uzINtKIrfHuBHPnug7/cvhe1tJsEEctG6hiKhln8H63FZHj GKsmnlR8yGtq08AFqUv7yJzyLsXixtsdSmH9EAgcIQEwWdBScCWl5AgzJxuH3n7/+SZ5 SO1CglNE3xT7R5h6PKx+1AgXemoI1fPxIOKlSGgUewhFaYBEIQPRNJvcPKF/T7XOj9DL ttSLD7fZ1Uk0LRJDVIDsiT+AHvcqn5wUk8HndIrG7EKqaAuJz7gionA6118H7Stnka+N Ef+xrIJvKuFJD9XQ4eZteg7eF9hr06ttIiOZzrk8jjLzfcWSJon5nnEZsLhtom3I2XZ0 ENag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s0BAxEQr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a63bf08000000b00477bf7b0c43si37343141pgf.458.2023.01.22.04.16.11; Sun, 22 Jan 2023 04:16:17 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=s0BAxEQr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbjAVLy7 (ORCPT + 50 others); Sun, 22 Jan 2023 06:54:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbjAVLy5 (ORCPT ); Sun, 22 Jan 2023 06:54:57 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F04D0125B4 for ; Sun, 22 Jan 2023 03:54:55 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id e19-20020a05600c439300b003db1cac0c1fso7264485wmn.5 for ; Sun, 22 Jan 2023 03:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VLe1tCHvsXuqDEBtfO7OY5kLhydgi9CnGmhErJAm6aY=; b=s0BAxEQrg1XNDKd+RDJjQ/lqdPTA7p1sTOMmyByolojk0mvaFqzqmy7GIdrIZxmIOf nFUchdZptB8ZVzLanP/34atcmww1mMSAPnOW6ClddkbiU7eDltZQOUDza6VkttvsUHfc VQreJV0TXJjnpWyAigdZSH569OgxnVx8rooyMeC0XkS7AD9xKYSlxnN4RqPAyi5VpF7k CoH7kaCdBdozNk9M+weoHgP1irBiEMfOD3knAU/SvcsagkDEAe+ceFKjExWCJUNouNc/ k5Jv6eqzFnOZo2sgqVpIZZUumFywQQqcWtw67WTGWBMxjS7Nexwmrc+zVtNxlk1/BNXb 5cxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VLe1tCHvsXuqDEBtfO7OY5kLhydgi9CnGmhErJAm6aY=; b=p+mBqRwxNwOGIRwcIh9+1f+QDb/CrnQa2QdzENrDrZ7StbQnMBCoSQE2Go1xPePVKf QtgQAqQH00c8QvruLnwBE7NOlsLef55UrmPP0cBib4xTBn+QZCYAL3VAwjujv+qQd4Rh P0TxtLzssh0xPjpBl8BibT7tHxIVbqP/dSreUv7lwbucnYo/U3KY44X03crhiDw7+RIY q0dFdXLtvTE+XMB+KabTMCddmMwdpm6x986yC8D0J4kzjWieLgYf5usDDgi9ztFTyDGZ 82576Lwu3fEEKxfIkbYy0d5Y7KfSqH5gIuOSr9G4Dzq/OlG4yQQNV7yd6M/q7AWhzKvS 9n4g== X-Gm-Message-State: AFqh2kpwGuHnjmh0dg7FqWPwLJs2/xOnSg95zMFtcYdBoVK1L24B0t2V nb37jERGQHdQqyk6f83hmHhu5Q== X-Received: by 2002:a05:600c:1508:b0:3d3:5166:2da4 with SMTP id b8-20020a05600c150800b003d351662da4mr20299706wmg.8.1674388494495; Sun, 22 Jan 2023 03:54:54 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id m37-20020a05600c3b2500b003daf681d05dsm8320826wms.26.2023.01.22.03.54.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Jan 2023 03:54:54 -0800 (PST) Message-ID: <995eb624-3efe-10fc-a6ed-883d52d591bb@linaro.org> Date: Sun, 22 Jan 2023 12:54:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [RFC PATCH v2 31/31] kvx: Add IPI driver Content-Language: en-US To: Yann Sionneau , Arnd Bergmann , Jonathan Corbet , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Eric Biederman , Kees Cook , Oleg Nesterov , Ingo Molnar , Waiman Long , "Aneesh Kumar K.V" , Andrew Morton , Nick Piggin , Paul Moore , Eric Paris , Christian Brauner , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jules Maselbas , Guillaume Thouvenin , Clement Leger , Vincent Chardon , =?UTF-8?Q?Marc_Poulhi=c3=a8s?= , Julian Vetter , Samuel Jones , Ashley Lesdalons , Thomas Costis , Marius Gligor , Jonathan Borne , Julien Villette , Luc Michel , Louis Morhet , Julien Hascoet , Jean-Christophe Pince , Guillaume Missonnier , Alex Michon , Huacai Chen , WANG Xuerui , Shaokun Zhang , John Garry , Guangbin Huang , Bharat Bhushan , Bibo Mao , Atish Patra , "Jason A. Donenfeld" , Qi Liu , Jiaxun Yang , Catalin Marinas , Mark Brown , Janosch Frank , Alexey Dobriyan Cc: Benjamin Mugnier , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-audit@redhat.com, linux-riscv@lists.infradead.org, bpf@vger.kernel.org References: <20230120141002.2442-1-ysionneau@kalray.eu> <20230120141002.2442-32-ysionneau@kalray.eu> From: Krzysztof Kozlowski In-Reply-To: <20230120141002.2442-32-ysionneau@kalray.eu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On 20/01/2023 15:10, Yann Sionneau wrote: > + > +int __init kvx_ipi_ctrl_probe(irqreturn_t (*ipi_irq_handler)(int, void *)) > +{ > + struct device_node *np; > + int ret; > + unsigned int ipi_irq; > + void __iomem *ipi_base; > + > + np = of_find_compatible_node(NULL, NULL, "kalray,kvx-ipi-ctrl"); Nope, big no. Drivers go to drivers, not to arch code. Use proper driver infrastructure. Best regards, Krzysztof