1. 18 12月, 2013 1 次提交
  2. 10 12月, 2013 2 次提交
  3. 09 12月, 2013 2 次提交
  4. 05 12月, 2013 1 次提交
  5. 03 12月, 2013 1 次提交
  6. 30 11月, 2013 1 次提交
  7. 29 11月, 2013 1 次提交
  8. 08 11月, 2013 6 次提交
    • M
      [media] stv090x: Don't use dynamic static allocation · f7a35df1
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
             drivers/media/dvb-frontends/stv090x.c:750:1: warning: 'stv090x_write_regs.constprop.6' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for	the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
       On most cases, the limit is a way lower than that, but	this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      f7a35df1
    • M
      [media] stv0367: Don't use dynamic static allocation · 9aca4fb0
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/dvb-frontends/stv0367.c:791:1: warning: 'stv0367_writeregs.constprop.4' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for	the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
       On most cases, the limit is a way lower than that, but	this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      9aca4fb0
    • M
      [media] stb0899_drv: Don't use dynamic static allocation · ba474642
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/dvb-frontends/stb0899_drv.c:540:1: warning: 'stb0899_write_regs' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for	the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
       On most cases, the limit is a way lower than that, but	this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      ba474642
    • M
      [media] dvb-frontends: Don't use dynamic static allocation · 37ebaf68
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/dvb-frontends/af9013.c:77:1: warning: 'af9013_wr_regs_i2c' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/af9033.c:188:1: warning: 'af9033_wr_reg_val_tab' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/af9033.c:68:1: warning: 'af9033_wr_regs' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/bcm3510.c:230:1: warning: 'bcm3510_do_hab_cmd' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/cxd2820r_core.c:84:1: warning: 'cxd2820r_rd_regs_i2c.isra.1' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/rtl2830.c:56:1: warning: 'rtl2830_wr' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/rtl2832.c:187:1: warning: 'rtl2832_wr' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/tda10071.c:52:1: warning: 'tda10071_wr_regs' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/tda10071.c:84:1: warning: 'tda10071_rd_regs' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for	the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
       On most cases, the limit is a way lower than that, but	this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Reviewed-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      37ebaf68
    • M
      [media] dvb-frontends: Don't use dynamic static allocation · 8393796d
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/dvb-frontends/bcm3510.c:230:1: warning: 'bcm3510_do_hab_cmd' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/itd1000.c:69:1: warning: 'itd1000_write_regs.constprop.0' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/mt312.c:126:1: warning: 'mt312_write' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/nxt200x.c:111:1: warning: 'nxt200x_writebytes' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/stb6100.c:216:1: warning: 'stb6100_write_reg_range.constprop.3' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/stv6110.c:98:1: warning: 'stv6110_write_regs' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/stv6110x.c:85:1: warning: 'stv6110x_write_regs' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/tda18271c2dd.c:147:1: warning: 'WriteRegs' uses dynamic stack allocation [enabled by default]
      	drivers/media/dvb-frontends/zl10039.c:119:1: warning: 'zl10039_write' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
       On most cases, the limit is a way lower than that, but this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      8393796d
    • M
      [media] s5h1420: Don't use dynamic static allocation · 9736a89d
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/dvb-frontends/s5h1420.c:851:1: warning: 's5h1420_tuner_i2c_tuner_xfer' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer.
      In the specific case of this frontend, only ttpci uses it. The maximum
      number of messages there is two, on I2C read operations. As the logic
      can add an extra operation, change the size to 3.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      9736a89d
  9. 31 10月, 2013 1 次提交
  10. 17 10月, 2013 4 次提交
  11. 14 10月, 2013 1 次提交
  12. 03 10月, 2013 2 次提交
  13. 02 10月, 2013 6 次提交
  14. 25 9月, 2013 1 次提交
    • A
      [media] tda10071: change firmware download condition · aea28ade
      Andreas Matthies 提交于
      Reading firmware status register to detect whether firmware is
      running or not didn't worked 100% reliably. That register was
      likely set by firmware itself which means it could not contain
      reasonable values until firmware is up and running. Usually it
      just worked as some garbage value was returned accidentally but it
      appears that in some cases returned garbage value was 0x00 which
      was considered "firmware is up and running" by the driver and
      firmware loading was skipped leaving device to non-working state.
      Fix problem by removing unreliable check and let the driver keep
      count whether firmware is loaded or not.
      Signed-off-by: NAndreas Matthies <a.matthies@gmx.net>
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      aea28ade
  15. 22 8月, 2013 1 次提交
  16. 05 7月, 2013 1 次提交
  17. 28 6月, 2013 1 次提交
  18. 17 6月, 2013 1 次提交
  19. 09 6月, 2013 6 次提交
    • M
      [media] drxk_hard: Remove most 80-cols checkpatch warnings · ab5060cd
      Mauro Carvalho Chehab 提交于
      X-Patchwork-Delegate: mchehab@redhat.com
      There are a few cases where breaking the code into separate
      lines make it worse to read. However, on several places,
      breaking it to make checkpatch.pl happier is OK and improves
      code readability.
      So, break longer lines where that won't cause harm.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ab5060cd
    • M
      [media] drxk_hard: remove needless parenthesis · 949dd08d
      Mauro Carvalho Chehab 提交于
      X-Patchwork-Delegate: mchehab@redhat.com
      There are several places where: state->var = (some_var)
      The parenthesis there are doing nothing but making it
      harder to read and breaking the 80 columns soft limits.
      Just get rid of it.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      949dd08d
    • M
      [media] drxk_hard.h: don't use more than 80 columns · d5687ab5
      Mauro Carvalho Chehab 提交于
      X-Patchwork-Delegate: mchehab@redhat.com
      Almost all 80-col warnings are related to comments. There's
      one, however, that it is due to a one-line enum declaration
      for enum agc_ctrl_mode.
      Break it into one line per enumered data.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d5687ab5
    • M
      [media] drxk_hard.h: Remove some alien comment markups · 57b8b003
      Mauro Carvalho Chehab 提交于
      X-Patchwork-Delegate: mchehab@redhat.com
      The comments markup language used on Kernel is defined at:
      	Documentation/kernel-doc-nano-HOWTO.txt
      Remove invalid markups from the header file.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      57b8b003
    • M
      [media] drxk_hard: use usleep_range() · b72852ba
      Mauro Carvalho Chehab 提交于
      X-Patchwork-Delegate: mchehab@redhat.com
      Fixes the following checkpatch.pl warnings:
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +			msleep(10);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +		msleep(1);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +			msleep(1);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +		msleep(1);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +		msleep(1);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +		msleep(1);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +		msleep(1);
      WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
      +		msleep(1);
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b72852ba
    • M
      [media] drxk_hard: don't split strings across lines · 0fb220f2
      Mauro Carvalho Chehab 提交于
      X-Patchwork-Delegate: mchehab@redhat.com
      WARNING: quoted string split across lines
      	#5416: FILE: media/dvb-frontends/drxk_hard.c:5416:
      	+		dprintk(1, "Could not set demodulator parameters. Make "
      	+			"sure qam_demod_parameter_count (%d) is correct for "
      	WARNING: quoted string split across lines
      	#5423: FILE: media/dvb-frontends/drxk_hard.c:5423:
      	+		dprintk(1, "Auto-probing the correct QAM demodulator command "
      	+			"parameters was successful - using %d parameters.\n",
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      0fb220f2