aboutsummaryrefslogtreecommitdiff
path: root/include/linux/via-core.h
AgeCommit message (Collapse)AuthorFilesLines
2020-09-08fbdev: via-core: use generic power managementVaibhav Gupta1-2/+0
Drivers should do only device-specific jobs. But in general, drivers using legacy PCI PM framework for .suspend()/.resume() have to manage many PCI PM-related tasks themselves which can be done by PCI Core itself. This brings extra load on the driver and it directly calls PCI helper functions to handle them. Switch to the new generic framework by updating function signatures and define a "struct dev_pm_ops" variable to bind PM callbacks. The via_suspend() is designed to function only in the case of Suspend. Thus, the code checked for "if (state.event != PM_EVENT_SUSPEND)". This is because, in the legacy framework, this callback was invoked even in the event of Freeze and Hibernate. Hence, added the load of unnecessary function-calls. The goal can be achieved by binding the callback with only "via_pm_ops.suspend" in the new framework. This also avoids the step of checking "if (state.event != PM_EVENT_SUSPEND)" every time the callback is invoked. Signed-off-by: Vaibhav Gupta <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Vaibhav Gupta <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Russell King <[email protected]> Cc: Andres Salomon <[email protected]> CC: Antonino Daplas <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50Thomas Gleixner1-16/+1
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 or at your option any later version this program is distributed in the hope that it will be useful but without any warranties or representations without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 59 temple place suite 330 boston ma 02111 1307 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 43 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Allison Randal <[email protected]> Reviewed-by: Kate Stewart <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2010-11-10Merge branch 'viafb-next' of git://github.com/schandinat/linux-2.6Paul Mundt1-0/+15
2010-11-09viafb: General power management infrastructureDaniel Drake1-0/+15
Multiple devices need S/R hooks (framebuffer, GPIO, camera). Add infrastructure and convert existing framebuffer code to the new model. This patch should create no functional change. Based on earlier work by Jonathan Corbet. Signed-off-by: Daniel Drake <[email protected]> Acked-by: Jonathan Corbet <[email protected]> Signed-off-by: Florian Tobias Schandinat <[email protected]>
2010-10-21[media] Add the via framebuffer camera controller driverJonathan Corbet1-1/+3
Add a driver for the video capture port on VIA integrated chipsets. This version has a remaining OLPCism or two and expects to be talking to an ov7670; those can be improved as the need arises. This work was supported by the One Laptop Per Child project. Thanks to Laurent Pinchart for a number of useful comments. Cc: Florian Tobias Schandinat <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2010-05-11viafb: move some include files to include/linuxJonathan Corbet1-0/+219
These are the files which should be available to subdevices compiled outside of drivers/video/via. Cc: [email protected] Cc: [email protected] Cc: Harald Welte <[email protected]> Acked-by: Florian Tobias Schandinat <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>