Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp434651pxb; Thu, 5 Nov 2020 04:10:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYUIurpZiQPOgXsqppZYJ3pmOmgGf4mTM9AxMIvV0h9EZ09Pc1cO8yJzkhVDLxvaBGS8dY X-Received: by 2002:a05:6402:1112:: with SMTP id u18mr2214994edv.349.1604578208437; Thu, 05 Nov 2020 04:10:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604578208; cv=none; d=google.com; s=arc-20160816; b=SFFDlKLqxBcIVAhofQPLvSir2FFkurHTlRr3ZJgrMTWedaS0s+dyCy0h3S+sM6Kvk1 orYQRhDFoxi9yKGnfEOKXFC1c0Nasphzrsa4egdXQwQYTLQ8etxyICRRxFKdOS0fynRk 2m/PySXNIKREgt8GvCV8mOOJ9t8mUPLwqOrwWfwL1P+s4nnIEFoTVHS3+LYi7Wx5S4Vd +sgxnbM/eomejJ3gG3hpUeE/sMq6tbTeIQ8jfhPmwH1w09IiQ0wBesRJ1gr4HI1p19xH kY0iLd4gPLfP3f8bBrKHdMXTJWsqxhHIb2GAq2+xgodriKpy7HQcY1ieVwYTELzJhf3Q W0WQ== 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=vdY32CB3gJm/3/jXInpozI7BxeolBgkXbp2asV3pd88=; b=U6Xs6vsjn0r3T6GOQBUE77J0642Z1gCGKkNVDrWpqi0U46WmGd72TOChpSLuz1Aetk tP8fLynt1vwH74ptvgav2GygijNYCzdM6PLuhtsOSKTzCRXR9d030GaMSxercw2hLVNh yglbObE6mDLs0KS4GyZjGE0crmMr1V9jdccsnoywYX+8PJmene0DjIWuG+Tq6RHsavMn GUcX+L1K0RYcmHW7qtUoP2OkrmojbLcRLXMyRyrevxeU2e20LXA77oau51OfWxlaPAdh wpTT2bp+9ElOVrgaKzBBkmfdSO31MQZKSaznqA2TQBKYondRRND3ytVEvi/FF7LBPOIp TttA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X6vS8Jk5; 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 dt26si948864ejb.284.2020.11.05.04.09.43; Thu, 05 Nov 2020 04:10:08 -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=X6vS8Jk5; 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 S1730326AbgKEMIZ (ORCPT + 99 others); Thu, 5 Nov 2020 07:08:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:49136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbgKEMIY (ORCPT ); Thu, 5 Nov 2020 07:08:24 -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 8842A2224D; Thu, 5 Nov 2020 12:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604578103; bh=NWgcQz2VGvI80mRysDpVbcfbzsTP8szYfQc2OI4+R78=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=X6vS8Jk5QfVFQupeuX3ulp/x9zwmQmYYP5Z+YMmPVZwzCxMD0Przl+5ZSL+YLzV+y W+gUqvJ2goSuIeV+YqHOdDS7I1qJjI5qTgISh/SBEW6XG90TZYuOHM2JQPqPt651+P QL/3xcQd8fVV8BjqQ7W8/Ex2dfEXWr7Xs4AQE3AI= 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 1kae3x-007pAP-Bn; Thu, 05 Nov 2020 12:08:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 05 Nov 2020 12:08:21 +0000 From: Marc Zyngier To: Linus Walleij Cc: Daniel Palmer , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <3fd04aeb5047d8059ddecc1eda19c2e4@kernel.org> 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, 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-05 09:40, Linus Walleij wrote: > On Mon, Oct 19, 2020 at 4:10 PM Daniel Palmer wrote: [...] >> +/* The parent interrupt controller needs the GIC interrupt type set >> to GIC_SPI >> + * so we need to provide the fwspec. Essentially >> gpiochip_populate_parent_fwspec_twocell >> + * that puts GIC_SPI into the first cell. >> + */ nit: comment style. >> +static void *msc313_gpio_populate_parent_fwspec(struct gpio_chip *gc, >> + unsigned int >> parent_hwirq, >> + unsigned int parent_type) >> +{ >> + struct irq_fwspec *fwspec; >> + >> + fwspec = kmalloc(sizeof(*fwspec), GFP_KERNEL); >> + if (!fwspec) >> + return NULL; >> + >> + fwspec->fwnode = gc->irq.parent_domain->fwnode; >> + fwspec->param_count = 3; >> + fwspec->param[0] = GIC_SPI; >> + fwspec->param[1] = parent_hwirq; >> + fwspec->param[2] = parent_type; >> + >> + return fwspec; >> +} > > Clever. Looping in Marc Z so he can say if this looks allright to him. Yup, this looks correct. However, looking at the bit of the patch that isn't quoted here, I see that msc313_gpio_irqchip doesn't have a .irq_set_affinity callback. Is this system UP only? Thanks, M. -- Jazz is not dead. It just smells funny...