[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0ae601dc05c9$b749ba60$25dd2f20$@samsung.com>
Date: Tue, 5 Aug 2025 10:58:00 +0530
From: "Bharat Uppal" <bharat.uppal@...sung.com>
To: "'Bart Van Assche'" <bvanassche@....org>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <James.Bottomley@...senPartnership.com>,
<martin.petersen@...cle.com>, <alim.akhtar@...sung.com>,
<avri.altman@....com>, <linux-samsung-soc@...r.kernel.org>
Cc: <pankaj.dubey@...sung.com>, <aswani.reddy@...sung.com>, "'Nimesh Sati'"
<nimesh.sati@...sung.com>
Subject: RE: [PATCH] scsi: ufs: exynos: fsd: Gate ref_clk and put UFS device
in reset on suspend
> -----Original Message-----
> From: Bart Van Assche <bvanassche@....org>
> Sent: 04 August 2025 21:17
> To: Bharat Uppal <bharat.uppal@...sung.com>; linux-scsi@...r.kernel.org;
> linux-kernel@...r.kernel.org; James.Bottomley@...senPartnership.com;
> martin.petersen@...cle.com; alim.akhtar@...sung.com;
> avri.altman@....com; linux-samsung-soc@...r.kernel.org
> Cc: pankaj.dubey@...sung.com; aswani.reddy@...sung.com; Nimesh Sati
> <nimesh.sati@...sung.com>
> Subject: Re: [PATCH] scsi: ufs: exynos: fsd: Gate ref_clk and put UFS device in
> reset on suspend
>
> On 8/4/25 4:36 AM, Bharat Uppal wrote:
> > +static int fsd_ufs_suspend(struct exynos_ufs *ufs) {
> > + exynos_ufs_gate_clks(ufs);
> > + hci_writel(ufs, 0 << 0, HCI_GPIO_OUT);
> > + return 0;
> > +}
>
> Why '0 << 0' instead of just '0'? Isn't the latter easier to read?
Thanks for reviewing.
Indeed setting 0 is right, but in the same file ufs-exynos.c, I have seen HCI_GPIO_OUT register configured using 0 << 0.
My intent here is to maintain coding style within the file.
With Regards
Bharat Uppal
>
> Thanks,
>
> Bart.
Powered by blists - more mailing lists