Page MenuHomeFreeBSD

smaryus_gmail.com (Marius S)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 25 2019, 3:12 PM (25 w, 2 h)

Recent Activity

Jul 8 2019

smaryus_gmail.com added a comment to D20072: Fix UART NS8250 detecting parity and framing errors.

Based on the comments from the previous patch I've made some changes to how LSR errors are stored:

  • instead of saving the entire LSR register, only saving the error bits that are clear by the UART. In this way the current implementation remains the same and only update the code in places where the value from bit errors is needed, eg. ns8250_bus_receive.
  • created two functions, one to clear and one to update the save LSR error bits.
  • clear the saved error bits after they are used or after a read on REG_DATA took place.
Jul 8 2019, 9:34 AM

May 22 2019

smaryus_gmail.com added a comment to D20072: Fix UART NS8250 detecting parity and framing errors.

I only saved the LSR flags so I can later use it into the read to detect parity errors.
I don't know if saving LSR is useful in other places except for the parity errors. So maybe it would be enough to save the error bits from LSR,, because it looks like everything else works fine in driver.
What do you think it might be useful to save entire LSR and clear bits when needed, or just fix this parity error and rename to reflect for what is used? I don't know what will be the implication, but but we can also change into uart_intr to call a new function to handle the parity errors, in the same way like for overflow and then we don't save anymore the LSR internaly?

May 22 2019, 3:08 PM

Apr 26 2019

smaryus_gmail.com created D20073: Add support for mark/space parity in TTY for UART.
Apr 26 2019, 8:58 AM
smaryus_gmail.com changed the visibility for D20072: Fix UART NS8250 detecting parity and framing errors.
Apr 26 2019, 8:32 AM
smaryus_gmail.com updated the summary of D20072: Fix UART NS8250 detecting parity and framing errors.
Apr 26 2019, 8:28 AM
smaryus_gmail.com created D20072: Fix UART NS8250 detecting parity and framing errors.
Apr 26 2019, 7:51 AM