Re: [PATCH 1/4] ch341: Name more registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24.03.20 11:20, Johan Hovold wrote:
> On Fri, Mar 06, 2020 at 07:00:42PM +0000, Michael Hanselmann wrote:
>> Add more #defines with register names.
> 
> Please be more specific (e.g. which registers are you naming). Update
> the patch summary too.

Done. Will be in the next revision.

>> -	r = ch341_control_out(dev, CH341_REQ_WRITE_REG, 0x2518, lcr);
>> +	reg = ((uint16_t)0x2500) | CH341_REG_LCR;
> 
> Ditto, and please add a bit shift for consistency.
> 
> Hmm, but this is unrelated to the defines you are adding, and there are
> other magic constants for registers in this driver. Perhaps drop this
> bit or break it out in its own patch (rule of thumb: one logical change
> per patch).

I figured out what the 0x25 register is, or maybe was, and updated the
patch with a description and moved it later in the series, just before
the simulated break condition.

Michael



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux