[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4fee5a64-8ae3-4d90-617f-699b8d27a699@acm.org>
Date: Mon, 3 Feb 2020 14:30:37 -0800
From: Bart Van Assche <bvanassche@....org>
To: Can Guo <cang@...eaurora.org>
Cc: asutoshd@...eaurora.org, nguyenb@...eaurora.org,
hongwus@...eaurora.org, rnayak@...eaurora.org,
linux-scsi@...r.kernel.org, kernel-team@...roid.com,
saravanak@...gle.com, salyzyn@...gle.com,
Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
Pedro Sousa <pedrom.sousa@...opsys.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Tomas Winkler <tomas.winkler@...el.com>,
Stanley Chu <stanley.chu@...iatek.com>,
Venkat Gopalakrishnan <venkatg@...eaurora.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 6/8] scsi: ufs: Add dev ref clock gating wait time
support
On 2/2/20 11:16 PM, Can Guo wrote:
> On 2020-01-26 11:34, Bart Van Assche wrote:
>> On 2020-01-22 23:25, Can Guo wrote:
>>> + /* getting Specification Version in big endian format */
>>> + hba->dev_info.spec_version =
>>> desc_buf[DEVICE_DESC_PARAM_SPEC_VER] << 8 |
>>> + desc_buf[DEVICE_DESC_PARAM_SPEC_VER + 1];
>>
>> Please use get_unaligned_be16() instead of open-coding it.
>
> I am just keeping symmetry with the other device descriptors,
> for example w_manufacturer_id.
Hi Can,
How about adding an additional patch that refactors the existing code?
Please use get_unaligned_be16() in new code. That makes code easier to
read compared to open-coding get_unaligned_be16().
Thanks,
Bart.
Powered by blists - more mailing lists