lkml.org 
[lkml]   [2021]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/6] soundwire: qcom: set continue execution flag for ignored commands
On 01-02-21, 15:50, Srinivas Kandagatla wrote:
>
>
> On 01/02/2021 14:16, Vinod Koul wrote:
> > > /* Configure number of retries of a read/write cmd */
> > > - ctrl->reg_write(ctrl, SWRM_CMD_FIFO_CFG_ADDR, SWRM_RD_WR_CMD_RETRIES);
> > > + if (ctrl->version_major == 1 && ctrl->version_minor >= 5 &&
> > > + ctrl->version_step >= 1) {
> > why not use raw version value?
> >
> > if (ctrl->raw > 0x10501 )
> >
> We can do that way as well, but Major Minor seems much clear to readers!

yes but comparison with numbers is always easiest and better :) We can
always add comment that check version 1.5.1 which will make it clear

--
~Vinod

\
 
 \ /
  Last update: 2021-02-02 05:48    [W:6.304 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site