Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp372315imu; Tue, 27 Nov 2018 13:47:47 -0800 (PST) X-Google-Smtp-Source: AJdET5doM6eq6Ds0gzdtOt7BfZYAVOlxppii6GWrASwNFGre6Lzj9U+55gaVU1cofvB6NwGNdgKT X-Received: by 2002:a62:7504:: with SMTP id q4mr34175475pfc.180.1543355267820; Tue, 27 Nov 2018 13:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543355267; cv=none; d=google.com; s=arc-20160816; b=vjbREotDBApMtKwzoQcMK4Hl/V5eU2zewi7psFbq7+a1nCw5Nwp0L3kGzANUDnlMcV 19RbFZjzyRVGWFxYpQX3cMTYPre8MXAUVo9qy33fArwGxCdvSqEgN8uv6omKpQpXj96S 7fnJApaCPOCi1xq2o41Y9rpAwRS39dj4sC7bAJbeCR5c/WJtAY4Zr2oRtbP9moegsEzV Qn3GHPq+6txU1p2v6JpayX0VyupubuggUvfRmTa8igzr7xV2GRVyO8slpaB0FXrQKhWs yNH/4wHXHc7ZEyEidXQHfJEe+ECf3GFLaV5k5ymB+KX3tBbe+ewgZ4Oy0nLg+fsgyzyv p2qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=wEOjbLOxIkjHyqa3SDWN3iRzvPOUlK/+shxFweLQHs8=; b=IaL4Ks9SXMnrSdZz2KC6S+4WsGNL/+xpVOql+ff6aYyB/yEbbvN7nrY6ApGGrcKR1a J+SvNgIYvF68MNicm5PwnQItt79oU8rBHEbzZWyBOUvkDxVJ4KhwqmH3hx+n/wbDSWkJ GZrPk5W5iZo1qRP/SQh3Sr7iixSfW/JSCD/jnK5nY1O6kQm87dN7iLc4pB6+0tF3uCZS 3T+Nt8Z0yQjCeUy6nIeevZqim0cVPxDHUVT1JTViEYsGxR2MVnukA1I6LnN9YiiCcDWM yLAJjPHYG3PyblxL4LnVhKHwXOU0urogp1pcoVNWXRBbpn13a6qfA+t2h8T8SFNAoiEV sjZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mu9q7aG5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si5108731plh.261.2018.11.27.13.47.31; Tue, 27 Nov 2018 13:47:47 -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; dkim=pass header.i=@chromium.org header.s=google header.b=mu9q7aG5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726762AbeK1Io5 (ORCPT + 99 others); Wed, 28 Nov 2018 03:44:57 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33276 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726288AbeK1Io5 (ORCPT ); Wed, 28 Nov 2018 03:44:57 -0500 Received: by mail-pf1-f196.google.com with SMTP id c123so8350089pfb.0 for ; Tue, 27 Nov 2018 13:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=wEOjbLOxIkjHyqa3SDWN3iRzvPOUlK/+shxFweLQHs8=; b=mu9q7aG5IDEbvCdyfiWwkvJ/PahNcqMqzBTOkQnlKn4dq69lfbxWPzdHvjyeC9BUVI 4vVmow/Shz+gArI/VNBgSE1GzzB2lr5aSN+HJ0euqm+QV+VGNV5KsAGRiPJocJ/KXgOf YaOzxQuKGsAndwjXW/nkNQVWSRPJ2wEYmrcEE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=wEOjbLOxIkjHyqa3SDWN3iRzvPOUlK/+shxFweLQHs8=; b=Z/fX8JsmwtW+w2bppsuXDdhuQKqGugEArhi6RxUpOCd+sZiTiIev+ESo5xrxXfXMdD jq5Sk/ObpHFLUPjL7rkmp1rxrAEl3JUic0cwSXGq0vN5sknLn2ajALNIQph1BfIlPg7z Q+0uqp32QC40ft8IGChWSS24uLZ/edg75FwN3G21q2WRWmFdhneE+KA3Tkx3Pgsu7I3V Gp2tR0gubWsuqqQd6CmxNnYuurgCTrujQXk+0wnJUKVJintmy4Q++PG+aSTlCi8FtgW/ 8wm5Oewqd2885GtFSW80mO3gH+l3siDQzuKEipBn49RmaSiWpUelTGUq14/GpZD14t48 MmVg== X-Gm-Message-State: AA+aEWYlaNWrYuQcOkADrIB50HyCIYJlaeNffmAdUEugqIlGqNqy6Vvz FGs3w6k6ZvEz8yEoPqptmEseKefHhd4= X-Received: by 2002:a63:1e17:: with SMTP id e23mr30584346pge.130.1543355140699; Tue, 27 Nov 2018 13:45:40 -0800 (PST) Received: from localhost ([2620:15c:202:1:fed3:9637:a13a:6c15]) by smtp.gmail.com with ESMTPSA id t5sm6688189pfb.60.2018.11.27.13.45.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 13:45:39 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Lina Iyer From: Stephen Boyd In-Reply-To: <20181127182123.GC28236@codeaurora.org> Cc: evgreen@chromium.org, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, thierry.reding@gmail.com References: <20181121000648.29262-1-ilina@codeaurora.org> <20181121000648.29262-3-ilina@codeaurora.org> <154283618199.88331.10217252750356423959@swboyd.mtv.corp.google.com> <20181126161455.GA28236@codeaurora.org> <154330994255.88331.11409511159882116164@swboyd.mtv.corp.google.com> <20181127182123.GC28236@codeaurora.org> Message-ID: <154335513853.88331.9713562640538396853@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [RFC v3 2/3] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO Date: Tue, 27 Nov 2018 13:45:38 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lina Iyer (2018-11-27 10:21:23) > On Tue, Nov 27 2018 at 02:12 -0700, Stephen Boyd wrote: > > > >Two reasons. First, simplicity. The TLMM driver just needs to pass the > >gpio number up to the PDC gpio domain and then that domain can figure > >out what hwirq it maps to within the PDC hw irq space. I don't see any > >reason why we have to know the hwirq of PDC within the TLMM driver > >besides "let's not be different". > > > >And second, it makes it easier for us to implement the MPM case in the > >TLMM driver by letting the TLMM code just ask "should I mask the irq > >here or not?" by passing that with a wrapper struct around the fwspec > >and a dedicated domain in the PDC/MPM driver. Keeping less things in the > >TLMM driver and not driving the decision from DT but from tables in the > >PDC driver also keeps things simple and reduces DT parsing code/time. > > > Couldn't this be simply achieved by matching the compatible flags for > PDC/MPM bindings for the wakeup-parent in the TLMM driver? = > = It could be, but then we would be making TLMM highly aware of the wakeup parent and have to do compatible string matching in two places, instead of making TLMM more abstractly aware that it needs to keep things masked while irq parent deals with the interrupts.