/Linux-v6.6/Documentation/driver-api/usb/ |
D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 17 * Changing the default idle-delay time 20 * The driver interface for autosuspend and autoresume 31 ------------------------- 35 component is ``suspended`` it is in a nonfunctional low-power state; it 37 ``resumed`` (returned to a functional full-power state) when the kernel 67 ---------------------- 85 -------------------------- [all …]
|
/Linux-v6.6/Documentation/power/ |
D | runtime_pm.rst | 5 (C) 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 18 put their PM-related work items. It is strongly recommended that pm_wq be 20 them to be synchronized with system-wide power transitions (suspend to RAM, 53 The ->runtime_suspend(), ->runtime_resume() and ->runtime_idle() callbacks 57 1. PM domain of the device, if the device's PM domain object, dev->pm_domain, 60 2. Device type of the device, if both dev->type and dev->type->pm are present. 62 3. Device class of the device, if both dev->class and dev->class->pm are 65 4. Bus type of the device, if both dev->bus and dev->bus->pm are present. 69 dev->driver->pm directly (if present). 73 and bus type. Moreover, the high-priority one will always take precedence over [all …]
|
/Linux-v6.6/include/linux/ |
D | pm_runtime.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * pm_runtime.h - Device run-time power management helper functions. 76 extern int pm_schedule_suspend(struct device *dev, unsigned int delay); 86 extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay); 98 * pm_runtime_get_if_in_use - Conditionally bump up runtime PM usage counter. 110 * pm_suspend_ignore_children - Set runtime PM behavior regarding children. 120 dev->power.ignore_children = enable; in pm_suspend_ignore_children() 124 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. 129 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume() 133 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device. [all …]
|
/Linux-v6.6/drivers/gpu/drm/i915/ |
D | Kconfig.profile | 28 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)" 35 that complements the runtime-pm autosuspend and provides a lower 36 floor on the autosuspend delay. 38 May be 0 to disable the extra delay and solely use the device level 39 runtime pm autosuspend delay tunable. 46 check the health of the GPU and undertake regular house-keeping of 98 take a non-negligible time to setup, we do a short spin first to
|
D | intel_wakeref.h | 2 * SPDX-License-Identifier: MIT 71 * the runtime pm wakeref and then call the intel_wakeref_ops->get() 74 * Note that intel_wakeref_ops->get() is allowed to fail, in which case 75 * the runtime-pm wakeref will be released and the acquisition unwound, 85 if (unlikely(!atomic_inc_not_zero(&wf->count))) in intel_wakeref_get() 103 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0); in __intel_wakeref_get() 104 atomic_inc(&wf->count); in __intel_wakeref_get() 119 return atomic_inc_not_zero(&wf->count); in intel_wakeref_get_if_active() 130 might_lock(&wf->mutex); in intel_wakeref_might_get() 139 * the runtime pm wakeref will be released after the intel_wakeref_ops->put() [all …]
|
D | intel_runtime_pm.h | 1 /* SPDX-License-Identifier: MIT */ 29 * Our driver uses the autosuspend delay feature, which means we'll only really 44 struct device *kdev; /* points to i915->drm.dev */ 69 /* Manual runtime pm autosuspend delay for user GGTT/lmem mmaps */ 96 #define INTEL_RPM_RAW_WAKEREF_MASK (INTEL_RPM_WAKELOCK_BIAS - 1) 113 WARN_ONCE(rpm->suspended, in assert_rpm_device_not_suspended() 122 "RPM raw-wakeref not held\n"); in __assert_rpm_raw_wakeref_held() 136 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held() 142 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held() 146 * disable_rpm_wakeref_asserts - disable the RPM assert checks [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/net/nfc/ |
D | ti,trf7970a.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Mark Greer <mgreer@animalcreek.com> 17 autosuspend-delay: 20 Specify autosuspend delay in milliseconds. 22 clock-frequency: 27 en2-rf-quirk: 35 irq-status-read-quirk: [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/media/ |
D | gpio-ir-receiver.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/media/gpio-ir-receiver.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> 13 - $ref: rc.yaml# 17 const: gpio-ir-receiver 22 linux,autosuspend-period: 23 description: autosuspend delay time in milliseconds 26 wakeup-source: [all …]
|
/Linux-v6.6/drivers/usb/core/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 30 Documentation/driver-api/usb/persist.rst for more info. 45 Say N here unless you require new-device enumeration failure to 64 "Dual-Role" device, which can act as either a device 69 Select this only if your board has Mini-AB/Micro-AB 97 Implements OTG Finite State Machine as specified in On-The-Go 109 int "Default autosuspend delay" 113 The default autosuspend delay in seconds. Can be overridden 114 with the usbcore.autosuspend command line or module parameter. 117 this value if you want a different delay and cannot modify
|
D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 57 /* Protect struct usb_device->state and ->children members 58 * Note: Both are also protected by ->dev.sem, except that ->state can 66 /* synchronize hub-port add/remove and peering operations */ 76 * 10 seconds to send reply for the initial 64-byte descriptor request. 78 /* define initial 64-byte descriptor request timeout in milliseconds */ 82 "initial 64-byte descriptor request timeout in milliseconds " 83 "(default 5000 - 5.0 seconds)"); 128 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 130 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
/Linux-v6.6/Documentation/ABI/stable/ |
D | sysfs-bus-usb | 8 not the "USB-Persist" facility is enabled for the device. For 12 For more information, see Documentation/driver-api/usb/persist.rst. 14 What: /sys/bus/usb/devices/.../power/autosuspend 20 power/autosuspend. This file holds the time (in seconds) 27 The autosuspend delay for newly-created devices is set to 28 the value of the usbcore.autosuspend module parameter. 37 connected to the machine. This file is read-only. 49 active, i.e. not in a suspended state. This file is read-only. 63 What: /sys/bus/usb/devices/<busnum>-<port[.port]>...:<config num>-<interface num>/supports_autosus… 69 for this interface supports autosuspend. It also [all …]
|
/Linux-v6.6/drivers/base/power/ |
D | runtime.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/runtime.c - Helper functions for device runtime PM 26 if (dev->pm_domain) in __rpm_get_callback() 27 ops = &dev->pm_domain->ops; in __rpm_get_callback() 28 else if (dev->type && dev->type->pm) in __rpm_get_callback() 29 ops = dev->type->pm; in __rpm_get_callback() 30 else if (dev->class && dev->class->pm) in __rpm_get_callback() 31 ops = dev->class->pm; in __rpm_get_callback() 32 else if (dev->bus && dev->bus->pm) in __rpm_get_callback() 33 ops = dev->bus->pm; in __rpm_get_callback() [all …]
|
/Linux-v6.6/block/ |
D | blk-pm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <linux/blk-pm.h> 6 #include "blk-mq.h" 9 * blk_pm_runtime_init - Block layer runtime PM initialization routine 14 * Initialize runtime-PM-related fields for @q and start auto suspend for 15 * @dev. Drivers that want to take advantage of request-based runtime PM 22 * the autosuspend delay is set to -1 to make runtime suspend impossible 24 * not need to touch other autosuspend settings. 31 q->dev = dev; in blk_pm_runtime_init() 32 q->rpm_status = RPM_ACTIVE; in blk_pm_runtime_init() [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/remoteproc/ |
D | ti,omap-remoteproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,omap-remoteproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 13 The OMAP family of SoCs usually have one or more slave processor sub-systems 14 that are used to offload some of the processor-intensive tasks, or to manage 17 The processor cores in the sub-system are usually behind an IOMMU, and may 18 contain additional sub-modules like Internal RAM and/or ROMs, L1 and/or L2 21 The OMAP SoCs usually have a DSP processor sub-system and/or an IPU processor [all …]
|
/Linux-v6.6/Documentation/ABI/testing/ |
D | sysfs-devices-power | 40 space to control the run-time power management of the device. 61 with the main suspend/resume thread) during system-wide power 86 attribute is read-only. If the device is not capable to wake up 98 is read-only. If the device is not capable to wake up the 110 state in progress. This attribute is read-only. If the device 122 read-only. If the device is not capable to wake up the system 133 the device is being processed (1). This attribute is read-only. 145 device, in milliseconds. This attribute is read-only. If the 156 with the device, in milliseconds. This attribute is read-only. 169 milliseconds. This attribute is read-only. If the device is [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/spi/ |
D | spi-pl022.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-pl022.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 - $ref: spi-controller.yaml# 14 - $ref: /schemas/arm/primecell.yaml# 23 - compatible 28 - const: arm,pl022 29 - const: arm,primecell [all …]
|
/Linux-v6.6/drivers/iio/adc/ |
D | sun4i-gpadc-iio.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2016 Quentin Schulz <quentin.schulz@free-electrons.com> 15 * This is also the reason of using autosuspend in pm_runtime. If there was no 16 * autosuspend, the thermal sensor would need X seconds after every 17 * pm_runtime_get_sync to get a value from the ADC. The autosuspend allows the 31 #include <linux/delay.h> 36 #include <linux/mfd/sun4i-gpadc.h> 58 .temp_offset = -1932, 67 .temp_offset = -1447, 76 .temp_offset = -1623, [all …]
|
/Linux-v6.6/sound/usb/ |
D | usbaudio.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 /* handling of USB vendor/product ID pairs as 32-bit numbers */ 47 struct list_head ep_list; /* list of audio-related endpoints */ 68 #define USB_AUDIO_IFACE_UNUSED ((void *)-1L) 71 dev_err(&(chip)->dev->dev, fmt, ##args) 73 dev_err_ratelimited(&(chip)->dev->dev, fmt, ##args) 75 dev_warn(&(chip)->dev->dev, fmt, ##args) 77 dev_info(&(chip)->dev->dev, fmt, ##args) 79 dev_dbg(&(chip)->dev->dev, fmt, ##args) 86 #define QUIRK_NODEV_INTERFACE -3 /* return -ENODEV */ [all …]
|
/Linux-v6.6/arch/arm/boot/dts/nxp/imx/ |
D | imx6dl-prtrvt.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 8 #include "imx6qdl-prti6q.dtsi" 9 #include <dt-bindings/leds/common.h> 21 compatible = "gpio-leds"; 22 pinctrl-names = "default"; 23 pinctrl-0 = <&pinctrl_leds>; 25 led-debug0 { 28 linux,default-trigger = "heartbeat"; 34 pinctrl-names = "default"; [all …]
|
/Linux-v6.6/drivers/media/rc/ |
D | gpio-ir-recv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <media/rc-core.h> 33 struct device *pmdev = gpio_dev->pmdev; in gpio_ir_recv_irq() 39 * this may introduce a millisecond delay to call resume callback, in gpio_ir_recv_irq() 43 * respond to interrupt, another is delay introduced by async api. in gpio_ir_recv_irq() 48 val = gpiod_get_value(gpio_dev->gpiod); in gpio_ir_recv_irq() 50 ir_raw_event_store_edge(gpio_dev->rcdev, val == 1); in gpio_ir_recv_irq() 62 struct device *dev = &pdev->dev; in gpio_ir_recv_probe() 63 struct device_node *np = dev->of_node; in gpio_ir_recv_probe() 70 return -ENODEV; in gpio_ir_recv_probe() [all …]
|
/Linux-v6.6/drivers/gpu/drm/panel/ |
D | panel-samsung-atna33xc20.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * by the DRM_PANEL_SIMPLE driver because its power sequencing is non-standard. 10 #include <linux/delay.h> 72 if (p->el3_was_on) in atana33xc20_suspend() 73 atana33xc20_wait(p->el_on3_off_time, 150); in atana33xc20_suspend() 75 ret = regulator_disable(p->supply); in atana33xc20_suspend() 78 p->powered_off_time = ktime_get_boottime(); in atana33xc20_suspend() 79 p->el3_was_on = false; in atana33xc20_suspend() 91 atana33xc20_wait(p->powered_off_time, 500); in atana33xc20_resume() 93 ret = regulator_enable(p->supply); in atana33xc20_resume() [all …]
|
/Linux-v6.6/drivers/iio/accel/ |
D | kxsd9.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2008-2009 Jonathan Cameron <jic23@kernel.org> 21 #include <linux/delay.h> 60 #define KXSD9_CTRL_B_ST BIT(5) /* Self-test */ 65 * struct kxsd9_state - device related storage 88 #define KXSD9_ZERO_G_OFFSET -2048 108 return -EINVAL; in kxsd9_write_scale() 110 ret = regmap_update_bits(st->map, in kxsd9_write_scale() 118 st->scale = i; in kxsd9_write_scale() 141 int ret = -EINVAL; in kxsd9_write_raw() [all …]
|
/Linux-v6.6/drivers/char/hw_random/ |
D | mtk-rng.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/delay.h> 21 /* Runtime PM autosuspend timeout: */ 47 err = clk_prepare_enable(priv->clk); in mtk_rng_init() 51 val = readl(priv->base + RNG_CTRL); in mtk_rng_init() 53 writel(val, priv->base + RNG_CTRL); in mtk_rng_init() 63 val = readl(priv->base + RNG_CTRL); in mtk_rng_cleanup() 65 writel(val, priv->base + RNG_CTRL); in mtk_rng_cleanup() 67 clk_disable_unprepare(priv->clk); in mtk_rng_cleanup() 75 ready = readl(priv->base + RNG_CTRL) & RNG_READY; in mtk_rng_wait_ready() [all …]
|
/Linux-v6.6/drivers/iio/pressure/ |
D | mpl115.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mpl115.c - Support for Freescale MPL115A pressure/temperature sensor 12 #include <linux/delay.h> 37 int ret = data->ops->write(data->dev, MPL115_CONVERT, 0); in mpl115_request() 54 mutex_lock(&data->lock); in mpl115_comp_pressure() 59 ret = data->ops->read(data->dev, MPL115_PADC); in mpl115_comp_pressure() 64 ret = data->ops->read(data->dev, MPL115_TADC); in mpl115_comp_pressure() 70 a1 = data->b1 + ((data->c12 * tadc) >> 11); in mpl115_comp_pressure() 71 y1 = (data->a0 << 10) + a1 * padc; in mpl115_comp_pressure() 74 pcomp = (y1 + ((data->b2 * (int) tadc) >> 1)) >> 9; in mpl115_comp_pressure() [all …]
|
/Linux-v6.6/drivers/iio/light/ |
D | bh1780.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/delay.h> 45 int ret = i2c_smbus_write_byte_data(bh1780->client, in bh1780_write() 49 dev_err(&bh1780->client->dev, in bh1780_write() 58 int ret = i2c_smbus_read_byte_data(bh1780->client, in bh1780_read() 61 dev_err(&bh1780->client->dev, in bh1780_read() 70 int ret = i2c_smbus_read_word_data(bh1780->client, in bh1780_read_word() 73 dev_err(&bh1780->client->dev, in bh1780_read_word() 108 switch (chan->type) { in bh1780_read_raw() 110 pm_runtime_get_sync(&bh1780->client->dev); in bh1780_read_raw() [all …]
|