Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1359547imu; Wed, 28 Nov 2018 08:25:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/XEUB3c5s+5w5wm5aNbvbGAmMnL8SpJHnWQ24v9MtRCQrg8V2GEiEyka7gUb1TqOR3tPHhx X-Received: by 2002:a65:4646:: with SMTP id k6mr33056877pgr.153.1543422348412; Wed, 28 Nov 2018 08:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543422348; cv=none; d=google.com; s=arc-20160816; b=HpUfCnIFumkdzbaoyw5kcFjqRACx7rAkmjGoeyU4j7q+m9MUQh85w8KkwnMbegt6AJ xD7dohsCZFvSoMkakRFXId5DHBq+P+tT5QLvKKO5+DTDBclLSAbJQMRyPhLuN4DVYjc6 /G5L1eh603detNbGsEj0GpuVTUSZv1Pw7j68Z6Jvg62Sl4lOlxqJUEoEcVscD5XVWha/ FSx6nyn6zl1guPQhTCm+w14WBE9DS1WISSzCCOiknT5gCU9+TuReDzS6B9SqDwF26ttQ YL/HP6y4L3QxdxKpkwjbPGxoXL0elf8rZBkUpZJsi6RivijQaFgAC1Ng+GL8dI8KdUge 2rzg== 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=Wyy2f0QJMqjk95xrUA84Z0ZDdUwbfk4XXfY5HclW38w=; b=SIzNd9qAsSS2n+Ncdn15DCnkwtHbZvQAmEOEsvvm27I6aLvsgJrwF9FemGYX5oDZ7X GIq5YLreOp7yvrkdnjjXqJooN7Nv4Kbyq9WaO7wz/mpbh4ILUMXr6Je2RvtSLjk0mvAz RA5KorBfZcpupHjU3FTPi8ogQwQTlWxXn0M5vS8jBDGyQILtXAFP39CmfnUEKytq2rn9 d6k4MQdMA4ErnW4d3mCfrogXE3XL472A/a8bPB8yUPput5XKiAuqdGFKO93rQ+SmpgyG YZZ3gdbFcHmQmG2Q44+NoZIvshfXZl4rMG7tuLZhZMc/BSsTZuRrFgOKYXfZbw6ti88T quGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="t/qPoNk6"; 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 l11si7306077pgb.545.2018.11.28.08.25.23; Wed, 28 Nov 2018 08:25:48 -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="t/qPoNk6"; 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 S1728914AbeK2D0c (ORCPT + 99 others); Wed, 28 Nov 2018 22:26:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:47794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727979AbeK2D0c (ORCPT ); Wed, 28 Nov 2018 22:26:32 -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 EBB222081C; Wed, 28 Nov 2018 16:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543422260; bh=8mhaGNZrYFcm/IRz3hf9V1WI1AHFqUJV/VNTvIYNrlc=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=t/qPoNk6e2k5KBld6GKbiEdy/z/NKcw4eT7iC0JXUvmeptnx9g9/O6dsfPRrQvUqv JngTuhV6vyR1zFmpbGCNIWU8xcxZI1KVRXhdeIhjxPYtd62Tpo4xS07aUezaQuQGfw zBBMpiA2131AYNOmjfEaK5f688yQXvqx09Pdokec= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Vivek Gautam , devicetree@vger.kernel.org, iommu@lists.linux-foundation.org, joro@8bytes.org, robh+dt@kernel.org, robin.murphy@arm.com, will.deacon@arm.com From: Stephen Boyd In-Reply-To: <20181127101145.7682-2-vivek.gautam@codeaurora.org> Cc: alex.williamson@redhat.com, mark.rutland@arm.com, rjw@rjwysocki.net, robdclark@gmail.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, freedreno@lists.freedesktop.org, tfiga@chromium.org, jcrouse@codeaurora.org, sricharan@codeaurora.org, m.szyprowski@samsung.com, architt@codeaurora.org, linux-arm-msm@vger.kernel.org, thor.thayer@linux.intel.com, Vivek Gautam References: <20181127101145.7682-1-vivek.gautam@codeaurora.org> <20181127101145.7682-2-vivek.gautam@codeaurora.org> Message-ID: <154342225921.88331.14467967828250776155@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v18 1/5] iommu/arm-smmu: Add pm_runtime/sleep ops Date: Wed, 28 Nov 2018 08:24:19 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Vivek Gautam (2018-11-27 02:11:41) > @@ -1966,6 +1970,23 @@ static const struct of_device_id arm_smmu_of_match= [] =3D { > }; > MODULE_DEVICE_TABLE(of, arm_smmu_of_match); > = > +static void arm_smmu_fill_clk_data(struct arm_smmu_device *smmu, > + const char * const *clks) > +{ > + int i; > + > + if (smmu->num_clks < 1) > + return; > + > + smmu->clks =3D devm_kcalloc(smmu->dev, smmu->num_clks, > + sizeof(*smmu->clks), GFP_KERNEL); > + if (!smmu->clks) > + return; > + > + for (i =3D 0; i < smmu->num_clks; i++) > + smmu->clks[i].id =3D clks[i]; Is this clk_bulk_get_all()?