Skip to content

Do some atomisp cleanups

Mauro Carvalho Chehab linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9media: staging: atomisp: get rid of __KERNEL macrosdrivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/host/system_local.h drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/system_local.h drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_include/math_support.h +2 more+0 -420 replies
2/9media: staging: atomisp: reenable warnings for I2Cdrivers/staging/media/atomisp/i2c/Makefile drivers/staging/media/atomisp/i2c/ov5693/Makefile+0 -140 replies
3/9media: atomisp: ov2680.h: fix identationdrivers/staging/media/atomisp/i2c/ov2680.h+447 -4480 replies
4/9media: staging: atomisp-gc2235: don't fill an unused vardrivers/staging/media/atomisp/i2c/atomisp-gc2235.c+4 -20 replies
5/9media: staging: atomisp: Comment out several unused sensor resolutionsdrivers/staging/media/atomisp/i2c/gc2235.h drivers/staging/media/atomisp/i2c/ov2680.h drivers/staging/media/atomisp/i2c/ov2722.h +1 more+35 -30 replies
6/9media: atomisp: ov2680: don't declare unused varsdrivers/staging/media/atomisp/i2c/atomisp-ov2680.c+3 -30 replies
7/9media: atomisp-gc0310: return errors at gc0310_init()drivers/staging/media/atomisp/i2c/atomisp-gc0310.c+1 -10 replies
8/9media: atomisp-mt9m114: remove dead datadrivers/staging/media/atomisp/i2c/atomisp-mt9m114.c+1 -60 replies
9/9media: atomisp-mt9m114: comment out unused stuffdrivers/staging/media/atomisp/i2c/atomisp-mt9m114.c drivers/staging/media/atomisp/i2c/mt9m114.h+12 -50 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSakari Ailus
SeriesA-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] Do some atomisp cleanups

When I started building media subsystem with the atomisp driver, I ended by adding several hacks on their Makefiles, in order to get rid of thousands of warnings. I felt a little guty of hiding how broken is this driver, so I decided t remove two Makefile hacks that affect sensors and fix the warnings.

Yet, there's still one such hack at drivers/staging/media/atomisp/pci/atomisp2/Makefile, with:

# HACK! While this driver is in bad shape, don't enable several warnings
# that would be otherwise enabled with W=1
ccflags-y += $(call cc-disable-warning, implicit-fallthrough) ccflags-y += $(call cc-disable-warning, missing-prototypes) ccflags-y += $(call cc-disable-warning, missing-declarations) ccflags-y += $(call cc-disable-warning, suggest-attribute=format) ccflags-y += $(call cc-disable-warning, unused-const-variable) ccflags-y += $(call cc-disable-warning, unused-but-set-variable)

Getting his of those is a big task, as there are thousands of warnings hidden there. In order to seriously get rid of them, one should start getting rid of the several abstraction layers at the driver and have hardware for test.

As I don't have any hardware to test, nor any reason why dedicating myself to such task, I'll just leave this task for others to do.

Mauro Carvalho Chehab (9):
media: staging: atomisp: get rid of __KERNEL macros
media: staging: atomisp: reenable warnings for I2C
media: atomisp: ov2680.h: fix identation
media: staging: atomisp-gc2235: don't fill an unused var
media: staging: atomisp: Comment out several unused sensor resolutions
media: atomisp: ov2680: don't declare unused vars
media: atomisp-gc0310: return errors at gc0310_init()
media: atomisp-mt9m114: remove dead data
media: atomisp-mt9m114: comment out unused stuff

 drivers/staging/media/atomisp/i2c/Makefile         |   7 -
 drivers/staging/media/atomisp/i2c/atomisp-gc0310.c |   2 +-
 drivers/staging/media/atomisp/i2c/atomisp-gc2235.c |   6 +-
 .../staging/media/atomisp/i2c/atomisp-mt9m114.c    |  11 +-
 drivers/staging/media/atomisp/i2c/atomisp-ov2680.c |   6 +-
 drivers/staging/media/atomisp/i2c/gc2235.h         |   9 +-
 drivers/staging/media/atomisp/i2c/mt9m114.h        |  13 +-
 drivers/staging/media/atomisp/i2c/ov2680.h         | 900 +++++++++++----------
 drivers/staging/media/atomisp/i2c/ov2722.h         |   6 +
 drivers/staging/media/atomisp/i2c/ov5693/Makefile  |   7 -
 drivers/staging/media/atomisp/i2c/ov5693/ov5693.h  |  18 +-
 .../css_2401_csi2p_system/host/system_local.h      |  15 -
 .../hive_isp_css_common/host/system_local.h        |  15 -
 .../css2400/hive_isp_css_include/math_support.h    |   5 -
 .../css2400/hive_isp_css_include/print_support.h   |   3 -
 .../media/atomisp/pci/atomisp2/css2400/sh_css_sp.c |   4 -
 16 files changed, 503 insertions(+), 524 deletions(-)
Signature · 1 line
2.14.3