1. 21 1月, 2011 1 次提交
  2. 20 1月, 2011 4 次提交
    • P
      serial: sh-sci: Limit early console to one device. · ecdf8a46
      Paul Mundt 提交于
      Presently the early console setup will be invoked for every device handed
      off to he earlyprintk command line argument. In practice we can only
      handle one, so this adds a sanity check to prevent clobbering the
      existing active console.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      ecdf8a46
    • P
      serial: sh-sci: Fix up break timer scheduling race. · bc9b3f5c
      Paul Mundt 提交于
      The break flag timer is presently added through add_timer() via the
      interrupt and error paths, where it is possible to send multiple breaks
      in rapid succession and trigger the timer pending BUG_ON(). This moves
      over to a mod_timer() instead.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      bc9b3f5c
    • P
      serial: sh-sci: Bring oversized error handlers out of line. · 94c8b6db
      Paul Mundt 提交于
      Presently much of the error handling paths are inlined, stemming from a
      time when they were much smaller. This simply brings them out of line and
      leaves it up to the compiler. Given that some of these now contain nested
      loops, it's pretty hard to justify the inlining regardless of the
      footprint.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      94c8b6db
    • P
      serial: sh-sci: Handle port memory region reservations. · e2651647
      Paul Mundt 提交于
      At the moment the request/release_port ops are no-ops with the port
      remapping case tied in to the config_port op. This moves the remap logic
      in to the request_port, balances it with unmapping in the port release,
      and finally takes care of the mem region reservations.
      
      All existing users are of the port autoconf variety, so we follow the
      example of other drivers that wrap in to the port request by way of the
      config op in the UART_CONFIG_TYPE case.
      
      This is the first step towards fixing up conflicts with multiple users
      of the same ports, as currently happens between sh-sci and spi_sh_sci.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e2651647
  3. 19 1月, 2011 35 次提交