From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D598C2D0DB for ; Wed, 22 Jan 2020 11:00:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7CAB624695 for ; Wed, 22 Jan 2020 11:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729543AbgAVLAK (ORCPT ); Wed, 22 Jan 2020 06:00:10 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:37332 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgAVLAI (ORCPT ); Wed, 22 Jan 2020 06:00:08 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iuDjm-0000vT-0P; Wed, 22 Jan 2020 11:59:54 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 5700C101F92; Wed, 22 Jan 2020 11:59:53 +0100 (CET) From: Thomas Gleixner To: John Garry Cc: Marc Zyngier , "linux-kernel\@vger.kernel.org" , chenxiang Subject: Re: About irq_create_affinity_masks() for a platform device driver In-Reply-To: <84a9411b-4ae3-1928-3d35-1666f2687ec8@huawei.com> References: <84a9411b-4ae3-1928-3d35-1666f2687ec8@huawei.com> Date: Wed, 22 Jan 2020 11:59:53 +0100 Message-ID: <87o8uveoye.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org John, John Garry writes: > Would there be any issue with a SCSI platform device driver referencing > this function? > > So I have a multi-queue platform device, and I want to spread interrupts > over all possible CPUs, just like we can do for PCI MSI vectors. This > topic was touched on in [0]. > > And, if so it's ok, could we export that same symbol? I think you will need something similar to what we have in the pci/msi code, but that shouldn't be in your device driver. So I'd rather create platform infrastructure for this and export that. Thanks, tglx