12 Jul, 2018

1 commit


05 Jul, 2018

1 commit


26 Jun, 2018

2 commits


09 Jun, 2018

3 commits


23 Mar, 2018

1 commit

  • When FIFO mode is enabled, the receive data available interrupt
    (UART_IIR_RDI in code) should be triggered when the number of data
    in FIFO is equal or larger than interrupt trigger level.

    This patch changes the trigger level check to ensure multiple bytes
    received from upper layer can trigger RDI interrupt correctly.

    Cc: Joey Zheng
    Signed-off-by: Shunyong Yang
    Reviewed by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Shunyong Yang
     

03 Oct, 2017

1 commit


12 Jan, 2017

3 commits

  • We set info.count to 1 in mtty_get_irq_info() so static checkers
    complain that, "Why do we have impossible conditions?" The answer is
    that it seems to be left over dead code that can be safely removed.

    Signed-off-by: Dan Carpenter
    Reviewed-by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Dan Carpenter
     
  • This is a sample driver for documentation so the impact is probably
    pretty low. But we should check that bar_index is valid so we
    don't write beyond the end of the mdev_state->region_info[] array.

    Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
    Signed-off-by: Dan Carpenter
    Reviewed-by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Dan Carpenter
     
  • The copy_to_user() function returns the number of bytes which it wasn't
    able to copy but we want to return a negative error code.

    Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
    Signed-off-by: Dan Carpenter
    Reviewed-by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Dan Carpenter
     

04 Jan, 2017

1 commit


30 Dec, 2016

4 commits


18 Nov, 2016

1 commit