Home
last modified time | relevance | path

Searched +full:autosuspend +full:- +full:delay (Results 1 – 25 of 75) sorted by relevance

123

/linux/Documentation/driver-api/usb/
H A Dpower-management.rst1 .. _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/Documentation/power/
H A Druntime_pm.rst5 (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/include/linux/
H A Dpm_runtime.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * pm_runtime.h - Device run-time power management helper functions.
77 extern int pm_schedule_suspend(struct device *dev, unsigned int delay);
87 extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay);
99 * pm_suspend_ignore_children - Set runtime PM behavior regarding children.
109 dev->power.ignore_children = enable; in pm_suspend_ignore_children()
113 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device.
118 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume()
122 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device.
129 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
[all …]
/linux/drivers/gpu/drm/i915/
H A DKconfig.profile28 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
/linux/Documentation/devicetree/bindings/net/nfc/
H A Dti,trf7970a.yaml1 # 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/Documentation/devicetree/bindings/media/
H A Dgpio-ir-receiver.yaml1 # 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/drivers/usb/core/
H A DKconfig1 # 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
H A Dhub.c1 // SPDX-License-Identifier: GPL-2.0
71 /* Protect struct usb_device->state and ->children members
72 * Note: Both are also protected by ->dev.sem, except that ->state can
80 /* synchronize hub-port add/remove and peering operations */
90 * 10 seconds to send reply for the initial 64-byte descriptor request.
92 /* define initial 64-byte descriptor request timeout in milliseconds */
96 "initial 64-byte descriptor request timeout in milliseconds "
97 "(default 5000 - 5.0 seconds)");
141 if (hub_is_superspeedplus(hub->hdev)) in portspeed()
143 if (hub_is_superspeed(hub->hdev)) in portspeed()
[all …]
H A Dusb.c1 // 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/Documentation/ABI/stable/
H A Dsysfs-bus-usb8 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/drivers/base/power/
H A Druntime.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/base/power/runtime.c - Helper functions for device runtime PM
27 if (dev->pm_domain) in __rpm_get_callback()
28 ops = &dev->pm_domain->ops; in __rpm_get_callback()
29 else if (dev->type && dev->type->pm) in __rpm_get_callback()
30 ops = dev->type->pm; in __rpm_get_callback()
31 else if (dev->class && dev->class->pm) in __rpm_get_callback()
32 ops = dev->class->pm; in __rpm_get_callback()
33 else if (dev->bus && dev->bus->pm) in __rpm_get_callback()
34 ops = dev->bus->pm; in __rpm_get_callback()
[all …]
/linux/drivers/accel/ivpu/
H A Divpu_pm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-2024 Intel Corporation
34 MODULE_PARM_DESC(tdr_timeout_ms, "Timeout for device hang detection, in milliseconds, 0 - default");
40 struct ivpu_fw_info *fw = vdev->fw; in ivpu_pm_prepare_cold_boot()
46 fw->entry_point = fw->cold_boot_entry_point; in ivpu_pm_prepare_cold_boot()
51 struct ivpu_fw_info *fw = vdev->fw; in ivpu_pm_prepare_warm_boot()
52 struct vpu_boot_params *bp = ivpu_bo_vaddr(fw->mem); in ivpu_pm_prepare_warm_boot()
54 if (!bp->save_restore_ret_address) { in ivpu_pm_prepare_warm_boot()
59 ivpu_dbg(vdev, FW_BOOT, "Save/restore entry point %llx", bp->save_restore_ret_address); in ivpu_pm_prepare_warm_boot()
60 fw->entry_point = bp->save_restore_ret_address; in ivpu_pm_prepare_warm_boot()
[all …]
/linux/Documentation/devicetree/bindings/remoteproc/
H A Dti,omap-remoteproc.yaml1 # 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/Documentation/devicetree/bindings/spi/
H A Dspi-pl022.yaml1 # 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/Documentation/ABI/testing/
H A Dsysfs-devices-power40 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/drivers/ufs/host/
H A Dufs-mediatek.h1 /* SPDX-License-Identifier: GPL-2.0 */
51 * Ref-clk control
189 /* MTK delay of autosuspend: 500 ms */
/linux/drivers/gpu/drm/panel/
H A Dpanel-samsung-atna33xc20.c1 // 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>
70 if (p->el3_was_on) in atana33xc20_suspend()
71 atana33xc20_wait(p->el_on3_off_time, 150); in atana33xc20_suspend()
73 drm_dp_dpcd_set_powered(p->aux, false); in atana33xc20_suspend()
74 ret = regulator_disable(p->supply); in atana33xc20_suspend()
77 p->powered_off_time = ktime_get_boottime(); in atana33xc20_suspend()
78 p->el3_was_on = false; in atana33xc20_suspend()
90 atana33xc20_wait(p->powered_off_time, 500); in atana33xc20_resume()
[all …]
/linux/sound/usb/
H A Dusbaudio.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
10 /* handling of USB vendor/product ID pairs as 32-bit numbers */
56 struct list_head ep_list; /* list of audio-related endpoints */
80 #define USB_AUDIO_IFACE_UNUSED ((void *)-1L)
83 dev_err(&(chip)->dev->dev, fmt, ##args)
85 dev_err_ratelimited(&(chip)->dev->dev, fmt, ##args)
87 dev_warn(&(chip)->dev->dev, fmt, ##args)
89 dev_info(&(chip)->dev->dev, fmt, ##args)
91 dev_dbg(&(chip)->dev->dev, fmt, ##args)
98 #define QUIRK_NODEV_INTERFACE -3 /* return -ENODEV */
[all …]
/linux/drivers/iio/accel/
H A Dkxsd9.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2008-2009 Jonathan Cameron <jic23@kernel.org>
22 #include <linux/delay.h>
61 #define KXSD9_CTRL_B_ST BIT(5) /* Self-test */
66 * struct kxsd9_state - device related storage
89 #define KXSD9_ZERO_G_OFFSET -2048
109 return -EINVAL; in kxsd9_write_scale()
111 ret = regmap_update_bits(st->map, in kxsd9_write_scale()
119 st->scale = i; in kxsd9_write_scale()
142 int ret = -EINVAL; in kxsd9_write_raw()
[all …]
/linux/drivers/char/hw_random/
H A Dmtk-rng.c1 // 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/drivers/iio/pressure/
H A Dmpl115.c1 // 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 …]
H A Dicp10100.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Driver for InvenSense ICP-1010xx barometric pressure and temperature sensor.
8 * http://www.invensense.com/wp-content/uploads/2018/01/DS-000186-ICP-101xx-v1.2.pdf
18 #include <linux/delay.h>
115 return -EIO; in icp10100_i2c_xfer()
124 size_t size = cmd->response_word_nb * ICP10100_RESPONSE_WORD_LENGTH; in icp10100_send_cmd()
130 .addr = st->client->addr, in icp10100_send_cmd()
133 .buf = (uint8_t *)&cmd->cmd, in icp10100_send_cmd()
135 .addr = st->client->addr, in icp10100_send_cmd()
146 return -EINVAL; in icp10100_send_cmd()
[all …]
/linux/drivers/iio/light/
H A Dbh1780.c1 // 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/drivers/misc/mei/
H A Dclient.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2022, Intel Corporation. All rights reserved.
9 #include <linux/delay.h>
12 #include <linux/dma-mapping.h>
21 * mei_me_cl_init - initialize me client
27 INIT_LIST_HEAD(&me_cl->list); in mei_me_cl_init()
28 kref_init(&me_cl->refcnt); in mei_me_cl_init()
32 * mei_me_cl_get - increases me client refcount
36 * Locking: called under "dev->device_lock" lock
42 if (me_cl && kref_get_unless_zero(&me_cl->refcnt)) in mei_me_cl_get()
[all …]
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mm-evk.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/phy/phy-imx8-pcie.h>
9 #include <dt-bindings/usb/pd.h>
14 stdout-path = &uart2;
22 hdmi-connector {
23 compatible = "hdmi-connector";
29 remote-endpoint = <&adv7535_out>;
35 compatible = "gpio-leds";
36 pinctrl-names = "default";
[all …]

123