1. 10 Jun, 2015 4 commits
    • Antti Palosaari's avatar
      [media] ts2020: re-implement PLL calculations · af9d5255
      Antti Palosaari authored
      Used frequency synthesizer is simple Integer-N PLL, with configurable
      reference divider, output divider and of course N itself. Old
      calculations were working fine, but not so easy to understand.
      Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      af9d5255
    • Hans Verkuil's avatar
      [media] cobalt: fix 64-bit division · 95a86e43
      Hans Verkuil authored
      There are still some 64-bit division problems in the cobalt code.
      Replace it by div_u64.
      
      [mchehab@osg.samsung.com: folded with an additional diff sent by
       Hans via a priv e-mail]
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Reported-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      95a86e43
    • Heiko Stübner's avatar
      [media] rc: gpio-ir-recv: don't sleep in irq handler · 64657066
      Heiko Stübner authored
      Don't allow sleep when getting the gpio value in the irq-handler.
      On my rk3288 board this results in might_sleep warnings when receiving
      data like:
      
      BUG: sleeping function called from invalid context at drivers/gpio/gpiolib.c:1531
      in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper/0
      CPU: 0 PID: 0 Comm: swapper/0 Tainted: P                4.1.0-rc5+ #2011
      Hardware name: Rockchip (Device Tree)
      [<c00189a0>] (unwind_backtrace) from [<c0013b04>] (show_stack+0x20/0x24)
      [<c0013b04>] (show_stack) from [<c0757970>] (dump_stack+0x8c/0xbc)
      [<c0757970>] (dump_stack) from [<c0053188>] (___might_sleep+0x238/0x284)
      [<c0053188>] (___might_sleep) from [<c0053264>] (__might_sleep+0x90/0xa4)
      [<c0053264>] (__might_sleep) from [<c02ff4ac>] (gpiod_get_raw_value_cansleep+0x28/0x44)
      [<c02ff4ac>] (gpiod_get_raw_value_cansleep) from [<bf0363c4>] (gpio_ir_recv_irq+0x24/0x6c [gpio_ir_recv])
      [<bf0363c4>] (gpio_ir_recv_irq [gpio_ir_recv]) from [<c008a78c>] (handle_irq_event_percpu+0x164/0x550)
      [<c008a78c>] (handle_irq_event_percpu) from [<c008abc4>] (handle_irq_event+0x4c/0x6c)
      [<c008abc4>] (handle_irq_event) from [<c008df88>] (handle_edge_irq+0x128/0x150)
      [<c008df88>] (handle_edge_irq) from [<c0089edc>] (generic_handle_irq+0x30/0x40)
      [<c0089edc>] (generic_handle_irq) from [<c02fc4cc>] (rockchip_irq_demux+0x158/0x210)
      [<c02fc4cc>] (rockchip_irq_demux) from [<c0089edc>] (generic_handle_irq+0x30/0x40)
      [<c0089edc>] (generic_handle_irq) from [<c008a058>] (__handle_domain_irq+0x98/0xc0)
      [<c008a058>] (__handle_domain_irq) from [<c00094a4>] (gic_handle_irq+0x4c/0x70)
      [<c00094a4>] (gic_handle_irq) from [<c0014684>] (__irq_svc+0x44/0x5c)
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      64657066
    • Tina Ruchandani's avatar
      [media] dvb-frontend: Replace timeval with ktime_t · 9056a23b
      Tina Ruchandani authored
      struct timeval uses a 32-bit seconds representation which will
      overflow in the year 2038 and beyond. This patch replaces
      the usage of struct timeval with ktime_t which is a 64-bit
      timestamp and is year 2038 safe.
      This patch is part of a larger attempt to remove all instances
      of 32-bit timekeeping variables (timeval, timespec, time_t)
      which are not year 2038 safe, from the kernel.
      
      [mchehab@osg.samsung.com: add a missing parenthesis, breaking compilation]
      Suggested-by: default avatarArnd Bergmann <arndb@arndb.de>
      Signed-off-by: default avatarTina Ruchandani <ruchandani.tina@gmail.com>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      9056a23b
  2. 09 Jun, 2015 36 commits