13 Aug, 2020

1 commit

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Signed-off-by: Alexander A. Klimov
    Signed-off-by: Andrew Morton
    Reviewed-by: Kees Cook
    Link: http://lkml.kernel.org/r/20200726110117.16346-1-grandmaster@al2klimov.de
    Signed-off-by: Linus Torvalds

    Alexander A. Klimov
     

31 Mar, 2020

1 commit

  • pwm_omap_dmtimer.h is used only:
    - to typedef struct omap_dm_timer to pwm_omap_dmtimer
    - for macro PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE
    Rest of the file is pretty mush unsed. So reuse omap_dm_timer
    and OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE in pwm-omap-dmtimer.c
    and delete the header file.

    Acked-by: Tony Lindgren
    Signed-off-by: Lokesh Vutla
    Acked-by: Uwe Kleine-König
    Signed-off-by: Thierry Reding

    Lokesh Vutla
     

16 Mar, 2020

2 commits

  • omap_dm_timer_enable() restores the entire context(including counter)
    based on 2 conditions:
    - If get_context_loss_count is populated and context is lost.
    - If get_context_loss_count is not populated update unconditionally.

    Case2 has a side effect of updating the counter register even though
    context is not lost. When timer is configured in pwm mode, this is
    causing undesired behaviour in the pwm period.

    Instead of using get_context_loss_count call back, implement cpu_pm
    notifier with context save and restore support. And delete the
    get_context_loss_count callback all together.

    Suggested-by: Tony Lindgren
    Signed-off-by: Lokesh Vutla
    [tony@atomide.com: removed pm_runtime calls from cpuidle calls]
    Signed-off-by: Tony Lindgren
    Signed-off-by: Daniel Lezcano
    Link: https://lore.kernel.org/r/20200316111453.15441-1-lokeshvutla@ti.com

    Lokesh Vutla
     
  • Let's add runtime_suspend and resume functions and atomic enabled
    flag. This way we can use these when converting to use cpuidle
    for saving and restoring device context.

    And we need to maintain the driver state in the driver as documented
    in "9. Autosuspend, or automatically-delayed suspends" in the
    Documentation/power/runtime_pm.rst document related to using driver
    private lock and races with runtime_suspend().

    Signed-off-by: Tony Lindgren
    Signed-off-by: Lokesh Vutla
    Signed-off-by: Daniel Lezcano
    Link: https://lore.kernel.org/r/20200305082715.15861-3-lokeshvutla@ti.com

    Tony Lindgren
     

01 Mar, 2018

1 commit


23 Feb, 2018

2 commits