Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1574161ybx; Thu, 7 Nov 2019 13:53:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxpjwDJiwNK0/DUJtpNS7FRIJJyXEQxLFHdA6+SqiO9FbP6l+i/cHTvi71wReIosbfP1M+C X-Received: by 2002:a50:ef0b:: with SMTP id m11mr6343403eds.74.1573163611060; Thu, 07 Nov 2019 13:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573163611; cv=none; d=google.com; s=arc-20160816; b=HlBEMzobAzf2MxPQqRHwHBYSnbFRGbut363DIgElibGzrIWc4qI54n5/H69u3JPFSe qqqSEwX1u9NAasr77Z15Aez0o9gOUEi8k5CE0HlTWakTADpiZVkvLr0R1zbLA5a1+EdZ wG+eAfbThRtLazqlNNynBVv91p3BoQ9gRcJQO1qcMwvOFrlkLaIjBD/1Ll9C+LXZYrNx 5F2D+oLc2ao0JoQOqJHs78qL0ZS5gzJ34Rl4Ygy61gGwkvjiaFZNwaUaq0HREQ7HNJpi 3IwfRbyl1UtCsbYwaP6MtRZSeBm2Vm7Gsfxci7Zx7GhwQclEXdvXMnKXFtuVEZFGG70G 7jvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:subject:cc:to :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=yt7z+rw7A3lg72XQGedgLgUTaYzipKUnYdycf2FZ6vM=; b=Mf+ng4QZTXr6sAdRoLNHNp+K+kLmaxTxYaZ3/NFK7RiRqj51NxLpQGobgSC3Pr3/j1 tGsimsZZrwUKnw80EZSe+8Hhzjike+yEX/zjWCeseAGRlOze27TsESRM4oURz9ItSNrl RT8RhEZnjMNe5+tN0skmvSe78bzOL4ve2tryK7naO3ccIeNKmViOWV78unVkccc7zD37 OdQOoJE9L7jxPi1Xr8Hotrf/OzHe4BgFlsiBfr4wK/4iRf0wcOeD1VuRpyy0vKwx/FMN tNNZZy/G9Qmi/BPkro+q82XMzP0IVwDPwxh/R2i/NeAQlNJKqjg/8XcAzwYiP1KCppbj /QMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="rlcb/o2b"; 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 fx21si2313000ejb.254.2019.11.07.13.53.07; Thu, 07 Nov 2019 13:53:31 -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="rlcb/o2b"; 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 S1726118AbfKGVuS (ORCPT + 99 others); Thu, 7 Nov 2019 16:50:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:60008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfKGVuR (ORCPT ); Thu, 7 Nov 2019 16:50:17 -0500 Received: from kernel.org (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 A6CAD2084C; Thu, 7 Nov 2019 21:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573163416; bh=dQBsw2ArHeU9P5i+qeiGoYYR+Emw9AMMubPkQDQF/9M=; h=In-Reply-To:References:From:To:Cc:Subject:Date:From; b=rlcb/o2bGAyTstqOc1tYklXzadJiwjesyc7BQpbPEFlIvWsFd/hyNcBoAaq+gcTbd vzCkdGVt8kOvP3wx6WyAsZD/jKEwlhlyxHfMa757m8mhFDGuRlu57H1sa19kY5kwlA rjf0BBR1+r5zcNIObkMsm/FyNzrghQsL5IPWnsW4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1569959828-8357-1-git-send-email-jhugo@codeaurora.org> References: <1569959656-5202-1-git-send-email-jhugo@codeaurora.org> <1569959828-8357-1-git-send-email-jhugo@codeaurora.org> From: Stephen Boyd To: Jeffrey Hugo Cc: agross@kernel.org, bjorn.andersson@linaro.org, marc.w.gonzalez@free.fr, mturquette@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jeffrey Hugo Subject: Re: [PATCH v6 3/6] clk: qcom: smd: Add XO clock for MSM8998 User-Agent: alot/0.8.1 Date: Thu, 07 Nov 2019 13:50:15 -0800 Message-Id: <20191107215016.A6CAD2084C@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jeffrey Hugo (2019-10-01 12:57:08) > diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm899= 8.c > index 091acd59c1d6..1651a2f47ab8 100644 > --- a/drivers/clk/qcom/gcc-msm8998.c > +++ b/drivers/clk/qcom/gcc-msm8998.c > @@ -2971,14 +2957,23 @@ static const struct qcom_cc_desc gcc_msm8998_desc= =3D { > .num_resets =3D ARRAY_SIZE(gcc_msm8998_resets), > .gdscs =3D gcc_msm8998_gdscs, > .num_gdscs =3D ARRAY_SIZE(gcc_msm8998_gdscs), > - .clk_hws =3D gcc_msm8998_hws, > - .num_clk_hws =3D ARRAY_SIZE(gcc_msm8998_hws), > }; > =20 > static int gcc_msm8998_probe(struct platform_device *pdev) > { > struct regmap *regmap; > int ret; > + struct clk *xo; > + > + /* > + * We must have a valid XO to continue, otherwise having a missing > + * parent on a system critical clock like the uart core clock can > + * result in strange bugs. We know XO will be provided by rpmcc, > + * but it might not be specified in DT like it should. > + */ > + xo =3D __clk_lookup("xo"); I very much dislike __clk_lookup(). I think we can not have this patch? > + if (!xo) > + return -EPROBE_DEFER; > =20