/linux-6.12.1/Documentation/driver-api/usb/ |
D | persist.rst | 1 .. _usb-persist: 3 USB device persistence during system suspend 14 bus must continue to supply suspend current (around 1-5 mA). This 16 detect connect-change events (devices being plugged in or unplugged). 21 conservative approach; in the absence of suspend current the computer 22 has no way to know what has actually happened. Perhaps the same 27 controller loses power during a system suspend, then when the system 38 Unfortunately problems _can_ arise, particularly with mass-storage 41 filesystem on the device, you're out of luck -- everything in that 48 even though suspend current may have been maintained while the system [all …]
|
D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 17 * Changing the default idle-delay time 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 44 the system, we speak of it as a "system suspend". When a particular 46 call it a "dynamic suspend" (also known as a "runtime suspend" or 47 "selective suspend"). This document concentrates mostly on how [all …]
|
D | callbacks.rst | 11 completion callback can be found in :ref:`usb-urb`. 17 - @probe: 21 - @disconnect: 22 Called when the interface is no longer accessible, usually 28 - @ioctl: 36 - @suspend: 39 - @resume: 42 - @reset_resume: 43 Called when the suspended device has been reset instead 48 - @pre_reset: [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/input/ |
D | goodix,gt7375p.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Douglas Anderson <dianders@chromium.org> 14 This touchscreen uses the i2c-hid protocol but has some non-standard 18 - $ref: /schemas/input/touchscreen/touchscreen.yaml# 23 - const: goodix,gt7375p 24 - items: 25 - const: goodix,gt7986u 26 - const: goodix,gt7375p [all …]
|
/linux-6.12.1/drivers/remoteproc/ |
D | omap_remoteproc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2020 Texas Instruments Incorporated - http://www.ti.com/ 8 * Ohad Ben-Cohen <ohad@wizery.com> 12 * Suman Anna <s-anna@ti.com> 13 * Hari Kanigeri <h-kanigeri2@ti.com> 27 #include <linux/dma-mapping.h> 31 #include <linux/omap-iommu.h> 32 #include <linux/omap-mailbox.h> 35 #include <linux/reset.h> 36 #include <clocksource/timer-ti-dm.h> [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | intel_gt_pm.c | 1 // SPDX-License-Identifier: MIT 7 #include <linux/suspend.h> 28 static void user_forcewake(struct intel_gt *gt, bool suspend) in user_forcewake() argument 30 int count = atomic_read(>->user_wakeref); in user_forcewake() 33 /* Inside suspend/resume so single threaded, no races to worry about. */ in user_forcewake() 38 if (suspend) { in user_forcewake() 39 GEM_BUG_ON(count > atomic_read(>->wakeref.count)); in user_forcewake() 40 atomic_sub(count, >->wakeref.count); in user_forcewake() 42 atomic_add(count, >->wakeref.count); in user_forcewake() 50 write_seqcount_begin(>->stats.lock); in runtime_begin() [all …]
|
/linux-6.12.1/kernel/power/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 config SUSPEND config 3 bool "Suspend to RAM and standby" 9 suspend-to-RAM state (e.g. the ACPI S3 state). 12 bool "Enable freezer for suspend to RAM/standby" \ 14 depends on SUSPEND 17 This allows you to turn off the freezer for suspend. If this is 18 done, no tasks are frozen for suspend to RAM/standby. 23 bool "Skip kernel's sys_sync() on suspend to RAM/standby" 24 depends on SUSPEND [all …]
|
/linux-6.12.1/arch/arm/mach-tegra/ |
D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * CPU complex suspend & resume functions for Tegra SoCs 5 * Copyright (c) 2009-2012, NVIDIA Corporation. All rights reserved. 17 #include <linux/suspend.h> 29 #include <asm/proc-fns.h> 31 #include <asm/suspend.h> 36 #include "reset.h" 93 * transition to suspend state 141 if (tegra_cpu_car_ops->rail_off_ready && in tegra_sleep_cpu() 143 return -EBUSY; in tegra_sleep_cpu() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mmc/ |
D | mmc-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 25 "#address-cells": 30 "#size-cells": 37 broken-cd: 40 There is no card detection available; polling must be used. 42 cd-gpios: [all …]
|
/linux-6.12.1/include/linux/ |
D | pm.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * pm.h - Power management interface 63 * struct dev_pm_ops - device PM callbacks. 70 * registration of a child already in progress), it may return -EAGAIN, so 73 * This method is executed for all kinds of suspend transitions and is 74 * followed by one of the suspend callbacks: @suspend(), @freeze(), or 75 * @poweroff(). If the transition is a suspend to memory or standby (that 77 * used to indicate to the PM core to leave the device in runtime suspend 80 * runtime-suspended and it may be left in that state during the entire 81 * transition and during the subsequent resume if all of its descendants [all …]
|
/linux-6.12.1/drivers/usb/host/ |
D | octeon-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights 37 * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR 104 * This register can be used to configure the core after power-on or a change in 105 * mode of operation. This register mainly contains AHB system-related 126 * @nptxfemplvl: Non-Periodic TxFIFO Empty Level (NPTxFEmpLvl) 128 * Indicates when the Non-Periodic TxFIFO Empty Interrupt bit in 131 * * 1'b0: GINTSTS.NPTxFEmp interrupt indicates that the Non- 133 * * 1'b1: GINTSTS.NPTxFEmp interrupt indicates that the Non- 172 * This value is in terms of 32-bit words. [all …]
|
/linux-6.12.1/drivers/watchdog/ |
D | imx2_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * ---- ----- 15 * Registers: 32-bit 16-bit 16 * Stopable timer: Yes No 17 * Need to enable clk: No Yes 18 * Halt on suspend: Manual Can be automatic 34 #define DRIVER_NAME "imx2-wdt" 37 #define IMX2_WDT_WCR_WT (0xFF << 8) /* -> Watchdog Timeout Field */ 38 #define IMX2_WDT_WCR_WDW BIT(7) /* -> Watchdog disable for WAIT */ 39 #define IMX2_WDT_WCR_WDA BIT(5) /* -> External Reset WDOG_B */ [all …]
|
/linux-6.12.1/Documentation/driver-api/pm/ |
D | devices.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 :Copyright: |copy| 2010-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 18 management (PM) code is also driver-specific. Most drivers will do very 22 This writeup gives an overview of how drivers interact with system-wide 25 background for the domain-specific work you'd do with any specific driver. 31 Drivers will use one or both of these models to put devices into low-power 36 Drivers can enter low-power states as part of entering system-wide 37 low-power states like "suspend" (also known as "suspend-to-RAM"), or 39 "suspend-to-disk"). 42 by implementing various role-specific suspend and resume methods to [all …]
|
/linux-6.12.1/drivers/hid/intel-ish-hid/ishtp/ |
D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2012-2016, Intel Corporation. 15 #include "ishtp-dev.h" 28 * ishtp_recv() - process ishtp message 42 msg_hdr = dev->ops->ishtp_read_hdr(dev); in ishtp_recv() 46 dev->ops->sync_fw_clock(dev); in ishtp_recv() 49 dev->ishtp_msg_hdr = msg_hdr; in ishtp_recv() 52 if (ishtp_hdr->length > dev->mtu) { in ishtp_recv() 53 dev_err(dev->devc, in ishtp_recv() 54 "ISHTP hdr - bad length: %u; dropped [%08X]\n", in ishtp_recv() [all …]
|
/linux-6.12.1/drivers/hid/i2c-hid/ |
D | i2c-hid-of-goodix.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Goodix touchscreens that use the i2c-hid protocol. 18 #include "i2c-hid.h" 42 * We assert reset GPIO here (instead of during power-down) to ensure in goodix_i2c_hid_power_up() 46 if (ihid_goodix->no_reset_during_suspend) in goodix_i2c_hid_power_up() 47 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1); in goodix_i2c_hid_power_up() 49 ret = regulator_enable(ihid_goodix->vdd); in goodix_i2c_hid_power_up() 53 ret = regulator_enable(ihid_goodix->vddio); in goodix_i2c_hid_power_up() 57 if (ihid_goodix->timings->post_power_delay_ms) in goodix_i2c_hid_power_up() 58 msleep(ihid_goodix->timings->post_power_delay_ms); in goodix_i2c_hid_power_up() [all …]
|
/linux-6.12.1/Documentation/power/ |
D | s2ram.rst | 8 1) Check suspend.sf.net, program s2ram there has long whitelist of 21 always it's a driver that is buggy. Thank God for the suspend/resume 22 debugging - the thing that Chuck tried to disable. That's often the _only_ 24 time-consuming - having to insert TRACE_RESUME() markers into the device 30 - enable PM_DEBUG, and PM_TRACE 32 - use a script like this:: 39 to suspend 41 - if it doesn't come back up (which is usually the problem), reboot by 54 If no device matches the hash (or any matches appear to be false positives), 63 that "radeonfb" simply cannot resume that device - it tries to set the [all …]
|
/linux-6.12.1/sound/soc/sof/intel/ |
D | hda-dsp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 21 #include <sound/hda-mlink.h> 24 #include "../sof-audio.h" 28 #include "hda-ipc.h" 49 chip = get_chip_info(sdev->pdata); in hda_get_interfaces() 50 switch (chip->hw_ip_version) { in hda_get_interfaces() 91 return interface_mask[sdev->dspless_mode_selected]; in hda_get_interface_mask() 100 if (sdev->dspless_mode_selected) in hda_is_chain_dma_supported() 115 chip = get_chip_info(sdev->pdata); in hda_is_chain_dma_supported() 116 if (chip->hw_ip_version < SOF_INTEL_ACE_2_0) in hda_is_chain_dma_supported() [all …]
|
/linux-6.12.1/drivers/usb/dwc2/ |
D | core.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * core.h - DesignWare HS OTG Controller common declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 21 * - no_printk: Disable tracing 22 * - pr_info: Print this info to the console 23 * - trace_printk: Print this info to trace buffer (good for verbose logging) 32 dev_name(hsotg->dev), ##__VA_ARGS__) 37 dev_name(hsotg->dev), ##__VA_ARGS__) 42 /* dwc2-hsotg declarations */ 63 * If we try to lower the MPS size for EP0, then no transfers work properly [all …]
|
/linux-6.12.1/arch/arm/mach-rockchip/ |
D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Tony Xie <tony.xie@rock-chips.com> 13 #include <linux/suspend.h> 19 #include <asm/suspend.h> 55 rkpm_bootdata_cpusp = rk3288_bootram_phy + (SZ_4K - 8); in rk3288_config_bootdata() 99 * SGRF_FAST_BOOT_EN - system to boot from FAST_BOOT_ADDR in rk3288_slp_mode_set() 100 * PCLK_WDT_GATE - disable WDT during suspend. in rk3288_slp_mode_set() 107 * The dapswjdp can not auto reset before resume, that cause it may in rk3288_slp_mode_set() 108 * access some illegal address during resume. Let's disable it before in rk3288_slp_mode_set() 109 * suspend, and the MASKROM will enable it back. in rk3288_slp_mode_set() [all …]
|
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | habanalabs_drv.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2021 HabanaLabs, Ltd. 52 "Do device reset on lockup (0 = no, 1 = yes, default yes)"); 56 "Scrub device memory in various states (0 = no, 1 = yes, default no)"); 60 …"Mask of the error status during device CPU boot (If bitX is cleared then error X is masked. Defau… 114 * get_asic_type - translate device id to asic type 119 * In case of unidentified device, return -1 123 struct pci_dev *pdev = hdev->pdev; in get_asic_type() 126 switch (pdev->device) { in get_asic_type() 137 switch (pdev->revision) { in get_asic_type() [all …]
|
/linux-6.12.1/drivers/ata/ |
D | libata-zpodd.c | 1 // SPDX-License-Identifier: GPL-2.0 22 enum odd_mech_type mech_type; /* init during probe, RO afterwards */ 32 * during suspend */ 85 if (be16_to_cpu(desc->feature_code) != 3) { in zpodd_get_mech_type() 90 if (desc->mech_type == 0 && desc->load == 0 && desc->eject == 1) { in zpodd_get_mech_type() 93 } else if (desc->mech_type == 1 && desc->load == 0 && in zpodd_get_mech_type() 94 desc->eject == 1) { in zpodd_get_mech_type() 108 struct zpodd *zpodd = dev->zpodd; in zpready() 115 sense_buf = dev->sector_buf; in zpready() 132 if (zpodd->mech_type == ODD_MECH_TYPE_SLOT) in zpready() [all …]
|
/linux-6.12.1/Documentation/pcmcia/ |
D | driver-changes.rst | 8 If `struct pcmcia_device *p_dev->config_flags` is set accordingly, 14 - CONF_AUTO_CHECK_VCC : check for matching Vcc 15 - CONF_AUTO_SET_VPP : set Vpp 16 - CONF_AUTO_AUDIO : auto-enable audio line, if required 17 - CONF_AUTO_SET_IO : set ioport resources (->resource[0,1]) 18 - CONF_AUTO_SET_IOMEM : set first iomem resource (->resource[2]) 20 * pcmcia_request_configuration -> pcmcia_enable_device (as of 2.6.36) 28 `struct pcmcia_device *p_dev->resource[2,3,4,5]` for up to four ioport 30 are reserved and may be used immediately -- until pcmcia_release_window() 35 `struct pcmcia_device *p_dev->resource[0,1]` for up to two ioport [all …]
|
/linux-6.12.1/drivers/net/wireless/ath/wil6210/ |
D | pm.c | 1 // SPDX-License-Identifier: ISC 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 17 mutex_lock(&wil->vif_mutex); in wil_pm_wake_connected_net_queues() 19 struct wil6210_vif *vif = wil->vifs[i]; in wil_pm_wake_connected_net_queues() 21 if (vif && test_bit(wil_vif_fwconnected, vif->status)) in wil_pm_wake_connected_net_queues() 24 mutex_unlock(&wil->vif_mutex); in wil_pm_wake_connected_net_queues() 31 mutex_lock(&wil->vif_mutex); in wil_pm_stop_all_net_queues() 33 struct wil6210_vif *vif = wil->vifs[i]; in wil_pm_stop_all_net_queues() 38 mutex_unlock(&wil->vif_mutex); in wil_pm_stop_all_net_queues() 47 switch (wdev->iftype) { in wil_can_suspend_vif() [all …]
|
/linux-6.12.1/include/sound/ |
D | hda_codec.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 51 unsigned int allow_bus_reset:1; /* allow bus reset at fatal error */ 54 unsigned int response_reset:1; /* controller was reset */ 55 unsigned int in_reset:1; /* during reset operation */ 57 unsigned int bus_probing :1; /* during probing process */ 59 unsigned int jackpoll_in_suspend:1; /* keep jack polling during 60 * runtime suspend 112 int (*suspend)(struct hda_codec *codec); member 157 #define SNDRV_PCM_INVALID_DEVICE (-1) 205 struct list_head conn_list; /* linked-list of connection-list */ [all …]
|
/linux-6.12.1/drivers/usb/core/ |
D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 70 /* Protect struct usb_device->state and ->children members 71 * Note: Both are also protected by ->dev.sem, except that ->state can 79 /* synchronize hub-port add/remove and peering operations */ 89 * 10 seconds to send reply for the initial 64-byte descriptor request. 91 /* define initial 64-byte descriptor request timeout in milliseconds */ 95 "initial 64-byte descriptor request timeout in milliseconds " 96 "(default 5000 - 5.0 seconds)"); 124 * port reset on some companion controllers. 140 if (hub_is_superspeedplus(hub->hdev)) in portspeed() [all …]
|