Re: [PATCH v1 tty] 8250: microchip: pci1xxxx: Refactor TX Burst code to use pre-existing APIs

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

 



On 23. 02. 24, 10:21, Rengarajan.S@xxxxxxxxxxxxx wrote:
On Fri, 2024-02-23 at 07:08 +0100, Jiri Slaby wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you
know the content is safe

On 22. 02. 24, 14:49, Rengarajan S wrote:
Updated the TX Burst implementation by changing the circular buffer
processing with the pre-existing APIs in kernel. Also updated
conditional
statements and alignment issues for better readability.

Hi,

so why are you keeping the nested double loop?


Hi, in order to differentiate Burst mode handling with byte mode had
seperate loops for both. Since, having single while loop also does not
align with rx implementation (where we have seperate handling for burst
and byte) have retained the double loop.

So obviously, align RX to a single loop if possible. The current TX code is very hard to follow and sort of unmaintainable (and buggy). And IMO it's unnecessary as I proposed [1]. And even if RX cannot be one loop, you still can make TX easy to read as the two need not be the same.

[1] https://lore.kernel.org/all/b8325c3f-bf5b-4c55-8dce-ef395edce251@xxxxxxxxxx/

thanks,
--
js
suse labs





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux