23 Nov, 2016

1 commit

  • If the driver is built as a module, autoload won't work because the module
    alias information is not filled. So user-space can't match the registered
    device with the corresponding module.

    Export the module alias information using the MODULE_DEVICE_TABLE() macro.

    Before this patch:

    $ modinfo drivers/thermal/tango_thermal.ko | grep alias
    $

    After this patch:

    $ modinfo drivers/thermal/tango_thermal.ko | grep alias
    alias: of:N*T*Csigma,smp8758-thermalC*
    alias: of:N*T*Csigma,smp8758-thermal

    Acked-by: Marc Gonzalez
    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Eduardo Valentin

    Javier Martinez Canillas
     

27 Sep, 2016

1 commit

  • When this platform is suspended, firmware powers the entire SoC down,
    except a few hardware blocks waiting for wakeup events. There is no
    context to save for this particular block.

    Therefore, there is nothing useful for the driver to do on suspend;
    so we define a NULL suspend hook. On resume, the driver initializes
    the block exactly as is done in the probe callback.

    Signed-off-by: Marc Gonzalez
    Reviewed-by: Kevin Hilman
    Signed-off-by: Zhang Rui

    Marc Gonzalez
     

17 May, 2016

3 commits