From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ayan Halder Subject: Re: [PATCH] drm/komeda: Add ACLK rate to sysfs Date: Tue, 3 Sep 2019 13:46:02 +0000 Message-ID: <20190903134601.GA9315@arm.com> References: <20190828110342.45936-1-mihail.atanassov@arm.com> <20190828141508.GA6738@jamwan02-TSP300> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20190828141508.GA6738@jamwan02-TSP300> Content-Language: en-US Content-ID: <1B5BE7F30491A649A54770DE417F951A@eurprd08.prod.outlook.com> Sender: linux-kernel-owner@vger.kernel.org To: "james qian wang (Arm Technology China)" Cc: Mihail Atanassov , David Airlie , Liviu Dudau , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , nd List-Id: dri-devel@lists.freedesktop.org On Wed, Aug 28, 2019 at 02:15:15PM +0000, james qian wang (Arm Technology C= hina) wrote: > Hi Mihail: >=20 > Looks good to me. >=20 > Reviewed-by: James Qian Wang (Arm Technology China) > Pushed to drm-misc-next 5fcd055193c5d4cac6d205bd65e52c957ea057c2 And that verifies my new dim setup. :) > James. >=20 > On Wed, Aug 28, 2019 at 11:03:49AM +0000, Mihail Atanassov wrote: > > Expose node with the name 'aclk_hz' > >=20 > > Signed-off-by: Mihail Atanassov > > --- > > drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > >=20 > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c b/drivers/= gpu/drm/arm/display/komeda/komeda_dev.c > > index 0142ee991957..e8d67395a3b9 100644 > > --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c > > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c > > @@ -91,9 +91,19 @@ config_id_show(struct device *dev, struct device_att= ribute *attr, char *buf) > > } > > static DEVICE_ATTR_RO(config_id); > > =20 > > +static ssize_t > > +aclk_hz_show(struct device *dev, struct device_attribute *attr, char *= buf) > > +{ > > + struct komeda_dev *mdev =3D dev_to_mdev(dev); > > + > > + return snprintf(buf, PAGE_SIZE, "%lu\n", clk_get_rate(mdev->aclk)); > > +} > > +static DEVICE_ATTR_RO(aclk_hz); > > + > > static struct attribute *komeda_sysfs_entries[] =3D { > > &dev_attr_core_id.attr, > > &dev_attr_config_id.attr, > > + &dev_attr_aclk_hz.attr, > > NULL, > > }; > > =20 > > --=20 > > 2.22.0 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel