Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp125040imj; Wed, 13 Feb 2019 05:49:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjRmYLGt3bTrNcqUKrASKnTNluoNlo1AYY/Tuae0G2xQbF8SmgjmTzgAgCVUvMOFMM/FY6 X-Received: by 2002:a63:f241:: with SMTP id d1mr607496pgk.2.1550065767433; Wed, 13 Feb 2019 05:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550065767; cv=none; d=google.com; s=arc-20160816; b=Iwp9RJQj0nrUCrpSJFej6m27zgy3hUyeRgJlNsnOqutGTJfVnP6deJEwUdmzSHCkQ6 mrTeu2klgZJ1HOjXfKhos4J3USIfG7MJbS2ExvWRa0jF6/kJRYFPCoLPnw9vGw6OxZZL 9jCFsl3mlWXN2NJGqbySXmVoFhH8Rapr7/+XVhnNTaZEWFCuCHVzhNSmYKdNSeUZUfjl uEzZdYX3czMPHl6I9Zt89UlJvv52QzczIAuAzyEQfP6PqXBOHwmyI7pFsyZc7HADD4CG 0kS5pdxvYER77Vb9Rjm4x3JUBdU+HjcnRanJzMN860edbCZ2S8AXIbxXZFM+1M3sees2 aAZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SXy78e6Gz/L0uH5Cv0KPBZGMGosnbc1afeePaTDcbK0=; b=TT/dCEokmUOieryZRVVAKG58nLZeH1dNx7Ws38pl8njOsfJdf/vRLaQaSjr2TKpZNR vvjsv9nptGW/1WXdHYfLLqGDTMgsCn5rb7K9IE/ouOoGCJGPKLOIlPQdua7lG8zNVw9y xVCpPct4Ztf1z636ynSxsGpSilz/41nz6L6qjLz11ShWrUo5L3+Q0rpewIaxjCqG7rU6 +XmY7Fxcao+rJAvk++4qZm1y58qWbUSdPsxdkeFpN8HtY/6W2fhO0K+Zyu6RCJlf17Ll L+R/73FppppFImnPeAfKmwtxaitTFB0wHyvEKOLUrLoAlFK3qG19CDgOqrIXW3YOG7uj Epvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 102si4489682plb.176.2019.02.13.05.49.11; Wed, 13 Feb 2019 05:49:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403856AbfBMLCn (ORCPT + 99 others); Wed, 13 Feb 2019 06:02:43 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49438 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391692AbfBMLCm (ORCPT ); Wed, 13 Feb 2019 06:02:42 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 666FC802FA; Wed, 13 Feb 2019 12:02:32 +0100 (CET) Date: Wed, 13 Feb 2019 12:02:38 +0100 From: Pavel Machek To: Bartosz Golaszewski Cc: Lee Jones , Bartosz Golaszewski , Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Sebastian Reichel , Liam Girdwood , Greg Kroah-Hartman , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , devicetree , Linux Input , Linux LED Subsystem , Linux PM list , Mark Brown Subject: Re: [PATCH v4 05/10] mfd: max77650: new core mfd driver Message-ID: <20190213110238.GA30507@amd> References: <20190212095457.GA20638@dell> <20190212101835.GB20638@dell> <20190212111403.GC20638@dell> <20190212132016.GA4781@dell> <20190213092553.GE1863@dell> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > As you can see, it will return the IRQ Domain for the chip. > > > > You can then pass this IRQ domain to mfd_add_devices() and it will do > > the HWIRQ =3D> VIRQ mapping for you on the fly. Meaning that you can > > remove all the nastiness in max77650_setup_irqs() and have the Input > > device use the standard (e.g. platform_get_irq()) APIs. > > > > How does that Sound? >=20 > This does sound better! Why didn't you lead with that in the first >place? TBH, this can be considered rude and I'm not surprised Lee reacted the way he did. > It's a pity it's not documented, I had to look at the code to find out > irq resources would get translated in mfd_add_devices() if a domain is > present. I guess documentation patch would be welcome. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlxj+U4ACgkQMOfwapXb+vL/BQCdEGkaJPfLbI+tEuJVF0ANhxsc 5acAn2oCVZb7slwa63nJgPYYkBk4vrzA =8OAJ -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--