/linux-5.10/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-5.10/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-5.10/drivers/gpu/drm/i915/ |
D | Kconfig.profile | 14 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)" 21 that complements the runtime-pm autosuspend and provides a lower 22 floor on the autosuspend delay. 24 May be 0 to disable the extra delay and solely use the device level 25 runtime pm autosuspend delay tunable. 32 check the health of the GPU and undertake regular house-keeping of 66 take a non-negligible time to setup, we do a short spin first to
|
D | intel_wakeref.h | 2 * SPDX-License-Identifier: MIT 74 * Note that @fn is allowed to fail, in which case the runtime-pm wakeref 84 if (unlikely(!atomic_inc_not_zero(&wf->count))) in intel_wakeref_get() 102 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0); in __intel_wakeref_get() 103 atomic_inc(&wf->count); in __intel_wakeref_get() 118 return atomic_inc_not_zero(&wf->count); in intel_wakeref_get_if_active() 135 * Note that @fn is allowed to fail, in which case the runtime-pm wakeref 145 GENMASK(BITS_PER_LONG - 1, __INTEL_WAKEREF_PUT_LAST_BIT__) in __intel_wakeref_put() 147 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0); in __intel_wakeref_put() 148 if (unlikely(!atomic_add_unless(&wf->count, -1, 1))) in __intel_wakeref_put() [all …]
|
D | intel_runtime_pm.h | 1 /* SPDX-License-Identifier: MIT */ 37 * Our driver uses the autosuspend delay feature, which means we'll only really 52 struct device *kdev; /* points to i915->drm.pdev->dev */ 81 #define INTEL_RPM_RAW_WAKEREF_MASK (INTEL_RPM_WAKELOCK_BIAS - 1) 98 WARN_ONCE(rpm->suspended, in assert_rpm_device_not_suspended() 107 "RPM raw-wakeref not held\n"); in __assert_rpm_raw_wakeref_held() 121 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held() 127 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held() 131 * disable_rpm_wakeref_asserts - disable the RPM assert checks 135 * reference, while keeping the device-not-suspended checks still enabled. [all …]
|
/linux-5.10/Documentation/devicetree/bindings/net/nfc/ |
D | trf7970a.txt | 4 - compatible: Should be "ti,trf7970a". 5 - spi-max-frequency: Maximum SPI frequency (<= 2000000). 6 - interrupts: A single interrupt specifier. 7 - ti,enable-gpios: One or two GPIO entries used for 'EN' and 'EN2' pins on the 9 - vin-supply: Regulator for supply voltage to VIN pin 12 - pinctrl-names: Contains only one value - "default". 13 - pintctrl-0: Specifies the pin control groups used for this controller. 14 - autosuspend-delay: Specify autosuspend delay in milliseconds. 15 - irq-status-read-quirk: Specify that the trf7970a being used has the 17 - en2-rf-quirk: Specify that the trf7970a being used has the "EN2 RF" [all …]
|
/linux-5.10/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. 42 extern int pm_schedule_suspend(struct device *dev, unsigned int delay); 52 extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay); 63 * pm_runtime_get_if_in_use - Conditionally bump up runtime PM usage counter. 75 * pm_suspend_ignore_children - Set runtime PM behavior regarding children. 85 dev->power.ignore_children = enable; in pm_suspend_ignore_children() 89 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. 94 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume() 98 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device. [all …]
|
/linux-5.10/Documentation/devicetree/bindings/media/ |
D | gpio-ir-receiver.txt | 1 Device-Tree bindings for GPIO IR receiver 4 - compatible: should be "gpio-ir-receiver". 5 - gpios: specifies GPIO used for IR signal reception. 8 - linux,rc-map-name: see rc.txt file in the same 10 - linux,autosuspend-period: autosuspend delay time, 15 ir: ir-receiver { 16 compatible = "gpio-ir-receiver"; 18 linux,rc-map-name = "rc-rc6-mce"; 19 linux,autosuspend-period = <125>;
|
/linux-5.10/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 49 /* Protect struct usb_device->state and ->children members 50 * Note: Both are also protected by ->dev.sem, except that ->state can 58 /* synchronize hub-port add/remove and peering operations */ 68 * 10 seconds to send reply for the initial 64-byte descriptor request. 70 /* define initial 64-byte descriptor request timeout in milliseconds */ 74 "initial 64-byte descriptor request timeout in milliseconds " 75 "(default 5000 - 5.0 seconds)"); 120 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 122 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
D | usb.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * (C) Copyright Johannes Erdfelt 1999-2001 11 * (C) Copyright David Brownell 2000-2004 14 * (C) Copyright Greg Kroah-Hartman 2002-2003 46 #include <linux/dma-mapping.h> 66 /* Default delay value, in seconds */ 68 module_param_named(autosuspend, usb_autosuspend_delay, int, 0644); 69 MODULE_PARM_DESC(autosuspend, "default autosuspend delay"); 119 * usb_find_common_endpoints() -- look up common endpoint descriptors 126 * Search the alternate setting's endpoint descriptors for the first bulk-in, [all …]
|
/linux-5.10/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-5.10/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-5.10/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-5.10/block/ |
D | blk-pm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <linux/blk-mq.h> 4 #include <linux/blk-pm.h> 7 #include "blk-mq.h" 8 #include "blk-mq-tag.h" 11 * blk_pm_runtime_init - Block layer runtime PM initialization routine 16 * Initialize runtime-PM-related fields for @q and start auto suspend for 17 * @dev. Drivers that want to take advantage of request-based runtime PM 24 * the autosuspend delay is set to -1 to make runtime suspend impossible 26 * not need to touch other autosuspend settings. [all …]
|
/linux-5.10/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-5.10/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#" 22 - compatible 27 - const: arm,pl022 28 - const: arm,primecell 39 clock-names: [all …]
|
/linux-5.10/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 32 #include <linux/delay.h> 37 #include <linux/mfd/sun4i-gpadc.h> 59 .temp_offset = -1932, 68 .temp_offset = -1447, 77 .temp_offset = -1623, [all …]
|
/linux-5.10/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-5.10/arch/arm/boot/dts/ |
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-5.10/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-5.10/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-5.10/drivers/net/wimax/i2400m/ |
D | usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> 7 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 10 * See i2400m-usb.h for a general description of this driver. 13 * generic driver to implement the bus-specific functions (device 51 #include "i2400m-usb.h" 59 #include "usb-debug-levels.h" 65 "String of space-separated NAME:VALUE pairs, where NAMEs " 71 #define I2400MU_FW_FILE_NAME_v1_5 "i2400m-fw-usb-1.5.sbcf" 73 #define I2400MU_FW_FILE_NAME_v1_4 "i2400m-fw-usb-1.4.sbcf" [all …]
|
/linux-5.10/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 …]
|
/linux-5.10/drivers/misc/mei/ |
D | client.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2003-2020, Intel Corporation. All rights reserved. 9 #include <linux/delay.h> 20 * mei_me_cl_init - initialize me client 26 INIT_LIST_HEAD(&me_cl->list); in mei_me_cl_init() 27 kref_init(&me_cl->refcnt); in mei_me_cl_init() 31 * mei_me_cl_get - increases me client refcount 35 * Locking: called under "dev->device_lock" lock 41 if (me_cl && kref_get_unless_zero(&me_cl->refcnt)) in mei_me_cl_get() 48 * mei_me_cl_release - free me client [all …]
|