Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1734464imc; Fri, 22 Feb 2019 10:10:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLXPQvBkJakpehMfLZwOL1mW5lw1e7tyJcI70z3PMAWHEVW8/OHRRnZIavl+Hsc4Ddo2ir X-Received: by 2002:a62:6f49:: with SMTP id k70mr5412307pfc.7.1550859001625; Fri, 22 Feb 2019 10:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550859001; cv=none; d=google.com; s=arc-20160816; b=qH4X7TcxHVKPAXehPwaU5zBtIQQyY36TWO3GeiuesIEsfFULWepskrdjkHMgmcouBZ vNGYctl2T40+mQL9zQEdQeJyEv0BD5QRAG/5vIVQiwnSeaMJr5NUvG+3aasJWbF78rsc Kli441RP5wJLLB0kxpNP8/S/eEfcWdsHDF6wA4WTNy7Ecj/eACt5fXHxPlrjsLi7irV8 Bj3+UKDkkUvDHfV7N2k/gTkH/ZOxlTt7o80/CsGnpty0OgGSj+Nyzf0C55L3zbp+4Vf8 pka5KW8ZRPeYtKmelryQfkoT7a3MyTGzdaii7jehJt3Rb108b/QhaouIiktYB4rBfWjs uv/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:in-reply-to:from:references :user-agent:message-id:subject:content-transfer-encoding :mime-version:dkim-signature; bh=FhQqVyDZJoGF8E2I8UTp9HA3luc61IAu5fL0Z8jUE94=; b=z0vr4Ffwpb9CFT3aWqZZUVwscKVCmnMcq9WZc+hl3lUr6dvCNw41hvskFKHvVTooU/ ip2RCo7HNLnO2yc9W2Gd5pLh0vYE4AzM0Jk9+DHw/WMhT2eM2ewveynyngApJ/JKREqT IbffeZ3w/X9mKg01gjUVx/QesL2wUEMfJfueQ3nVSIyvnpGEXfgy1FQje9AjsRou4QZe JcdcuZ7LEI0Pxtg+4PASOdGZjER89cN5xldtAfcvFTIAlE7p+BruCzzvZmjyNBvU29k4 WQxgAieYaT6dbp82h0zPihBg0v8C/ZS+ZJmT5VO5QC8wBEKNUJbtK/772fs99iZbu2Ot u/Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rEocUHsf; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si1825996plk.53.2019.02.22.10.09.46; Fri, 22 Feb 2019 10:10:01 -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=@kernel.org header.s=default header.b=rEocUHsf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727084AbfBVSJT (ORCPT + 99 others); Fri, 22 Feb 2019 13:09:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:44860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbfBVSJT (ORCPT ); Fri, 22 Feb 2019 13:09:19 -0500 Received: from localhost (unknown [104.132.0.74]) (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 48D63205C9; Fri, 22 Feb 2019 18:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550858958; bh=UupqhbqdFjKgKSI02MJoN0XI6eO4sJ++1hYERxTqud0=; h=Subject:References:From:In-Reply-To:To:Cc:Date:From; b=rEocUHsffCvK3PcLGoZGGv2zw0rJyuIkofLLfTStqhWtSS09sJjA5Z3wYHoGwQQxF UouGjx9OCvjRhY3Ups6GbOiBJN8O5uBvzbgYTCZcFVXNRevEBwUY3GvkblRvdQSS0D FIYwknpf1TD1PWKyctCp9jyeycNtWF4qlYnzi8yw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v2 02/14] mbox: qcom: add APCS child device for QCS404 Message-ID: <155085895764.77512.15118138971189768976@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1548700381-22376-3-git-send-email-jorge.ramirez-ortiz@linaro.org> From: Stephen Boyd In-Reply-To: <1548700381-22376-3-git-send-email-jorge.ramirez-ortiz@linaro.org> To: andy.gross@linaro.org, arnd@arndb.de, bjorn.andersson@linaro.org, david.brown@linaro.org, enric.balletbo@collabora.com, heiko@sntech.de, horms+renesas@verge.net.au, jagan@amarulasolutions.com, jassisinghbrar@gmail.com, jorge.ramirez-ortiz@linaro.org, mark.rutland@arm.com, mturquette@baylibre.com, olof@lixom.net, robh+dt@kernel.org, sibis@codeaurora.org, will.deacon@arm.com Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Date: Fri, 22 Feb 2019 10:09:17 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jorge Ramirez-Ortiz (2019-01-28 10:32:49) > There is clock controller functionality in the APCS hardware block of > qcs404 devices similar to msm8916. >=20 > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > --- > drivers/mailbox/qcom-apcs-ipc-mailbox.c | 21 +++++++++++++-------- > 1 file changed, 13 insertions(+), 8 deletions(-) >=20 > diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qc= om-apcs-ipc-mailbox.c > index 3cf2937..0d64aa5 100644 > --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c > +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c > @@ -97,16 +97,21 @@ static int qcom_apcs_ipc_probe(struct platform_device= *pdev) > return ret; > } > =20 > - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global"))= { > - apcs->clk =3D platform_device_register_data(&pdev->dev, > - "qcom-apcs-msm8= 916-clk", > - -1, NULL, 0); > - if (IS_ERR(apcs->clk)) > - dev_err(&pdev->dev, "failed to register APCS clk\= n"); > - } > - > platform_set_drvdata(pdev, apcs); > =20 > + if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global") = || > + of_device_is_compatible(np, "qcom,qcs404-apcs-apps-global")) > + goto register_clk; This goto is weird style, but I'm not the maintainer here. Maybe just do an if condition with the body of the if inside like normally is done and suffer the indenting pain?