Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4031711pxb; Tue, 10 Nov 2020 06:24:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ8sa7DH7RdeCQTqgYGsxcleHvXOw2gwDqu4uM4xhFOwi3ZjcvE+ls+z/E9P42mBH+Ekdh X-Received: by 2002:a17:906:2a09:: with SMTP id j9mr19819907eje.355.1605018258478; Tue, 10 Nov 2020 06:24:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605018258; cv=none; d=google.com; s=arc-20160816; b=n3fWdFGGiVMOabJPbFg5VuFq+CTk8gKQhb2Mz639ZAA4qPxIMoKPEuYGsR38eS85B6 ub1+wySamZ122rHFDjdrSkKFz3TJY4dj3h3Eh0PQFj8JCGcuADhUCuZaLYSfA06UELQk DbLnxnSXgpMVl7a7aXJU9d11Hkrmep7WWtgCeHMn/PbgktMxS4liQLh9uMGJyVa8MYjc 25w5raU7cQ7GzHn3V7pIs32DhwOfy9mLI/uxJ/+lWhcZQzdddg1rJvqg2wjOXZ5JGIkl pGj7QlzFemwJds5lFah2eq/3vcZCjtPLY6F0uDK0D7n7D5rsSffvXSTmUUGkbX/y1vpn A2mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=UcUGItXNFEjUnKAicjug7HInHTAEffesOo1lOeYUVSc=; b=l10455P06Zp9MTMfC/7j86C7RLyiefHJJRvWVvvl1wjQtVKETpwbXtvZaccQbW1y/N i6zVnoKbfCX1rIYWoQ7abz+aFbHitw6/Z7sThmNBDeOZwBKEMiriILzhybDs2fyMeZf9 ClKZOvbORea3rBuAY6Cf9OI7b16Ove6iS0T/J2dFezjtPr7i+Knkh840IB2unANCOwSF DSc8biugrK335Er8vXYfSwE3L6xb6FZYtuJqJcUnjGDAMdJ+1wPsfZMbIdhNSKuo5OA7 6IponkNaR4c6xo/sg87esyITxcezLX5AvmuhJ0dV0vGOijDb42wsaZhDqSlIrm3KBmRQ OILg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0FDk3afO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si9764315edw.151.2020.11.10.06.23.54; Tue, 10 Nov 2020 06:24:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0FDk3afO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731940AbgKJOT7 (ORCPT + 99 others); Tue, 10 Nov 2020 09:19:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:39650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730594AbgKJOT7 (ORCPT ); Tue, 10 Nov 2020 09:19:59 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 37A5F207D3; Tue, 10 Nov 2020 14:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605017998; bh=K7JJrB+ZpQ1NkraBnAoR4CMvmKGwDe7qvMqD9qefqps=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0FDk3afOEqhgxaKJxzKNjfr1qDa268skoAzIc5DpyZzvns5zLYV9Cy2+XYyyaPahv kZTTKRHD83c35jpnF3WcWijfT29a3Q217C7eVuXoHbuAfmqaN+5qHLcDsezvuSyS56 ma7RwqoU6Cv05O0mxeeFOk6/F0HPrO8qeymtYgkY= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kcUV2-009THw-4u; Tue, 10 Nov 2020 14:19:56 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Nov 2020 14:19:56 +0000 From: Marc Zyngier To: Linus Walleij Cc: Daniel Palmer , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH v2 3/5] gpio: msc313: MStar MSC313 GPIO driver In-Reply-To: References: <20201019141008.871177-1-daniel@0x0f.com> <20201019141008.871177-4-daniel@0x0f.com> <3fd04aeb5047d8059ddecc1eda19c2e4@kernel.org> <71f3632bee262a18e1b7edb74980ae9a@kernel.org> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: linus.walleij@linaro.org, daniel@0x0f.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-10 14:02, Linus Walleij wrote: > On Thu, Nov 5, 2020 at 4:43 PM Marc Zyngier wrote: >> On 2020-11-05 15:23, Daniel Palmer wrote: >> > On Thu, 5 Nov 2020 at 21:08, Marc Zyngier wrote: > >> > > I see that msc313_gpio_irqchip doesn't have a >> >> .irq_set_affinity callback. Is this system UP only? >> > >> > What is in mainline right now is UP only but there are chips with a >> > second cortex A7 that I have working in my tree. >> > So I will add that in for v3 if I can work out what I should actually >> > do there. :) >> >> Probably nothing more than setting the callback to >> irq_chip_set_affinity_parent, > > Hm, is this something all GPIO irqchips used on SMP systems > should be doing? Or just hierarchical ones? Probably only the hierarchical ones. I'd expect the non-hierarchical GPIOs to be muxed behind a single interrupt, which makes it impossible to move a single GPIO around, and moving the mux interrupt would break userspace's expectations that interrupts move independently of each others. Thanks, M. -- Jazz is not dead. It just smells funny...