• Luca Risolia's avatar
    [PATCH] Updates for W99[87]CF and new SN9C10[12] driver · be3a4fef
    Luca Risolia authored
    This single patch contains some updates and cleanups for
    the W996[87]CF driver and a new experimental V4L2 driver
    for SONiX SN9C10[12] PC Camera Controllers connected to various
    image sensors. I have not divided the patch in two logical
    sub-patches becouse of two independent changes in one common
    file, KConfigure.
    
    More informations about the SN9C10[12] can be found below in the
    documentation. The driver is marked as "EXPERIMENTAL", meaning
    that there are no known bugs, but further testing is necessary
    before considering it stable. This the first driver using the new
    SBGGR8 video format, which has been recently added to the mainline
    kernel, so there are no available user application at the moment:
    this is one more reason why it should be in the kernel now.
    
    Changes in W996[87]CF:
    - remove w9968cf_externaldef.h now that ovcamchip.h is in the kernel;
    - mark user pointers with __user in a cleaner way to avoid sparse
      warnings;
    - use appropriate exclusive wait macro during open();
    - replace info(), err(), warn() with dev_info(), dev_err(), dev_warn(),
      pr_debug(), pr_info();
    - replace usb_unlink_urb() + wait_for_completion() with usb_kill_urb();
    - fix memory offsets for buffers in the chip to be used with generic
      image sensors;
    - 'vppmod_load', 'debug', 'specific_debug' and 'simcams' module
      parameters are now writeable by default;
    - fix possible race conditions between disconnect() and open();
    - add automatic 'ovcamchip' module loading option with 'ovmod_load'
      module parameter;
    - get rid of deprecated intermodule communication routines and use the
      correct module registration/unregistration approach;
    - remove period at the end of kernel messages;
    - fix several typos;
    - use MODULE_VERSION() macro;
    - other small internal cleanups;
    - documentation updates.
    Signed-off-by: default avatarLuca Risolia <luca.risolia@studio.unibo.it>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    be3a4fef
sn9c102.txt 9.56 KB