diff options
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/ABI/testing/sysfs-class-mei | 15 | ||||
| -rw-r--r-- | Documentation/ABI/testing/sysfs-platform-dell-laptop | 60 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/arm/arm-boards | 2 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/arm/fw-cfg.txt | 72 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/graph.txt | 2 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-st.txt | 2 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/net/davinci_emac.txt | 3 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/vendor-prefixes.txt | 4 | ||||
| -rw-r--r-- | Documentation/kernel-parameters.txt | 1 | ||||
| -rw-r--r-- | Documentation/networking/ip-sysctl.txt | 2 | ||||
| -rwxr-xr-x | Documentation/target/tcm_mod_builder.py | 49 | ||||
| -rw-r--r-- | Documentation/thermal/cpu-cooling-api.txt | 15 |
13 files changed, 124 insertions, 104 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-mei b/Documentation/ABI/testing/sysfs-class-mei index 0ec8b8178c41..80d9888a8ece 100644 --- a/Documentation/ABI/testing/sysfs-class-mei +++ b/Documentation/ABI/testing/sysfs-class-mei | |||
| @@ -14,3 +14,18 @@ Description: | |||
| 14 | The /sys/class/mei/meiN directory is created for | 14 | The /sys/class/mei/meiN directory is created for |
| 15 | each probed mei device | 15 | each probed mei device |
| 16 | 16 | ||
| 17 | What: /sys/class/mei/meiN/fw_status | ||
| 18 | Date: Nov 2014 | ||
| 19 | KernelVersion: 3.19 | ||
| 20 | Contact: Tomas Winkler <tomas.winkler@intel.com> | ||
| 21 | Description: Display fw status registers content | ||
| 22 | |||
| 23 | The ME FW writes its status information into fw status | ||
| 24 | registers for BIOS and OS to monitor fw health. | ||
| 25 | |||
| 26 | The register contains running state, power management | ||
| 27 | state, error codes, and others. The way the registers | ||
| 28 | are decoded depends on PCH or SoC generation. | ||
| 29 | Also number of registers varies between 1 and 6 | ||
| 30 | depending on generation. | ||
| 31 | |||
diff --git a/Documentation/ABI/testing/sysfs-platform-dell-laptop b/Documentation/ABI/testing/sysfs-platform-dell-laptop deleted file mode 100644 index 7969443ef0ef..000000000000 --- a/Documentation/ABI/testing/sysfs-platform-dell-laptop +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | What: /sys/class/leds/dell::kbd_backlight/als_setting | ||
| 2 | Date: December 2014 | ||
| 3 | KernelVersion: 3.19 | ||
| 4 | Contact: Gabriele Mazzotta <gabriele.mzt@gmail.com>, | ||
| 5 | Pali Rohár <pali.rohar@gmail.com> | ||
| 6 | Description: | ||
| 7 | This file allows to control the automatic keyboard | ||
| 8 | illumination mode on some systems that have an ambient | ||
| 9 | light sensor. Write 1 to this file to enable the auto | ||
| 10 | mode, 0 to disable it. | ||
| 11 | |||
| 12 | What: /sys/class/leds/dell::kbd_backlight/start_triggers | ||
| 13 | Date: December 2014 | ||
| 14 | KernelVersion: 3.19 | ||
| 15 | Contact: Gabriele Mazzotta <gabriele.mzt@gmail.com>, | ||
| 16 | Pali Rohár <pali.rohar@gmail.com> | ||
| 17 | Description: | ||
| 18 | This file allows to control the input triggers that | ||
| 19 | turn on the keyboard backlight illumination that is | ||
| 20 | disabled because of inactivity. | ||
| 21 | Read the file to see the triggers available. The ones | ||
| 22 | enabled are preceded by '+', those disabled by '-'. | ||
| 23 | |||
| 24 | To enable a trigger, write its name preceded by '+' to | ||
| 25 | this file. To disable a trigger, write its name preceded | ||
| 26 | by '-' instead. | ||
| 27 | |||
| 28 | For example, to enable the keyboard as trigger run: | ||
| 29 | echo +keyboard > /sys/class/leds/dell::kbd_backlight/start_triggers | ||
| 30 | To disable it: | ||
| 31 | echo -keyboard > /sys/class/leds/dell::kbd_backlight/start_triggers | ||
| 32 | |||
| 33 | Note that not all the available triggers can be configured. | ||
| 34 | |||
| 35 | What: /sys/class/leds/dell::kbd_backlight/stop_timeout | ||
| 36 | Date: December 2014 | ||
| 37 | KernelVersion: 3.19 | ||
| 38 | Contact: Gabriele Mazzotta <gabriele.mzt@gmail.com>, | ||
| 39 | Pali Rohár <pali.rohar@gmail.com> | ||
| 40 | Description: | ||
| 41 | This file allows to specify the interval after which the | ||
| 42 | keyboard illumination is disabled because of inactivity. | ||
| 43 | The timeouts are expressed in seconds, minutes, hours and | ||
| 44 | days, for which the symbols are 's', 'm', 'h' and 'd' | ||
| 45 | respectively. | ||
| 46 | |||
| 47 | To configure the timeout, write to this file a value along | ||
| 48 | with any the above units. If no unit is specified, the value | ||
| 49 | is assumed to be expressed in seconds. | ||
| 50 | |||
| 51 | For example, to set the timeout to 10 minutes run: | ||
| 52 | echo 10m > /sys/class/leds/dell::kbd_backlight/stop_timeout | ||
| 53 | |||
| 54 | Note that when this file is read, the returned value might be | ||
| 55 | expressed in a different unit than the one used when the timeout | ||
| 56 | was set. | ||
| 57 | |||
| 58 | Also note that only some timeouts are supported and that | ||
| 59 | some systems might fall back to a specific timeout in case | ||
| 60 | an invalid timeout is written to this file. | ||
diff --git a/Documentation/devicetree/bindings/arm/arm-boards b/Documentation/devicetree/bindings/arm/arm-boards index 556c8665fdbf..b78564b2b201 100644 --- a/Documentation/devicetree/bindings/arm/arm-boards +++ b/Documentation/devicetree/bindings/arm/arm-boards | |||
| @@ -23,7 +23,7 @@ Required nodes: | |||
| 23 | range of 0x200 bytes. | 23 | range of 0x200 bytes. |
| 24 | 24 | ||
| 25 | - syscon: the root node of the Integrator platforms must have a | 25 | - syscon: the root node of the Integrator platforms must have a |
| 26 | system controller node pointong to the control registers, | 26 | system controller node pointing to the control registers, |
| 27 | with the compatible string | 27 | with the compatible string |
| 28 | "arm,integrator-ap-syscon" | 28 | "arm,integrator-ap-syscon" |
| 29 | "arm,integrator-cp-syscon" | 29 | "arm,integrator-cp-syscon" |
diff --git a/Documentation/devicetree/bindings/arm/fw-cfg.txt b/Documentation/devicetree/bindings/arm/fw-cfg.txt new file mode 100644 index 000000000000..953fb640d9c4 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/fw-cfg.txt | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | * QEMU Firmware Configuration bindings for ARM | ||
| 2 | |||
| 3 | QEMU's arm-softmmu and aarch64-softmmu emulation / virtualization targets | ||
| 4 | provide the following Firmware Configuration interface on the "virt" machine | ||
| 5 | type: | ||
| 6 | |||
| 7 | - A write-only, 16-bit wide selector (or control) register, | ||
| 8 | - a read-write, 64-bit wide data register. | ||
| 9 | |||
| 10 | QEMU exposes the control and data register to ARM guests as memory mapped | ||
| 11 | registers; their location is communicated to the guest's UEFI firmware in the | ||
| 12 | DTB that QEMU places at the bottom of the guest's DRAM. | ||
| 13 | |||
| 14 | The guest writes a selector value (a key) to the selector register, and then | ||
| 15 | can read the corresponding data (produced by QEMU) via the data register. If | ||
| 16 | the selected entry is writable, the guest can rewrite it through the data | ||
| 17 | register. | ||
| 18 | |||
| 19 | The selector register takes keys in big endian byte order. | ||
| 20 | |||
| 21 | The data register allows accesses with 8, 16, 32 and 64-bit width (only at | ||
| 22 | offset 0 of the register). Accesses larger than a byte are interpreted as | ||
| 23 | arrays, bundled together only for better performance. The bytes constituting | ||
| 24 | such a word, in increasing address order, correspond to the bytes that would | ||
| 25 | have been transferred by byte-wide accesses in chronological order. | ||
| 26 | |||
| 27 | The interface allows guest firmware to download various parameters and blobs | ||
| 28 | that affect how the firmware works and what tables it installs for the guest | ||
| 29 | OS. For example, boot order of devices, ACPI tables, SMBIOS tables, kernel and | ||
| 30 | initrd images for direct kernel booting, virtual machine UUID, SMP information, | ||
| 31 | virtual NUMA topology, and so on. | ||
| 32 | |||
| 33 | The authoritative registry of the valid selector values and their meanings is | ||
| 34 | the QEMU source code; the structure of the data blobs corresponding to the | ||
| 35 | individual key values is also defined in the QEMU source code. | ||
| 36 | |||
| 37 | The presence of the registers can be verified by selecting the "signature" blob | ||
| 38 | with key 0x0000, and reading four bytes from the data register. The returned | ||
| 39 | signature is "QEMU". | ||
| 40 | |||
| 41 | The outermost protocol (involving the write / read sequences of the control and | ||
| 42 | data registers) is expected to be versioned, and/or described by feature bits. | ||
| 43 | The interface revision / feature bitmap can be retrieved with key 0x0001. The | ||
| 44 | blob to be read from the data register has size 4, and it is to be interpreted | ||
| 45 | as a uint32_t value in little endian byte order. The current value | ||
| 46 | (corresponding to the above outer protocol) is zero. | ||
| 47 | |||
| 48 | The guest kernel is not expected to use these registers (although it is | ||
| 49 | certainly allowed to); the device tree bindings are documented here because | ||
| 50 | this is where device tree bindings reside in general. | ||
| 51 | |||
| 52 | Required properties: | ||
| 53 | |||
| 54 | - compatible: "qemu,fw-cfg-mmio". | ||
| 55 | |||
| 56 | - reg: the MMIO region used by the device. | ||
| 57 | * Bytes 0x0 to 0x7 cover the data register. | ||
| 58 | * Bytes 0x8 to 0x9 cover the selector register. | ||
| 59 | * Further registers may be appended to the region in case of future interface | ||
| 60 | revisions / feature bits. | ||
| 61 | |||
| 62 | Example: | ||
| 63 | |||
| 64 | / { | ||
| 65 | #size-cells = <0x2>; | ||
| 66 | #address-cells = <0x2>; | ||
| 67 | |||
| 68 | fw-cfg@9020000 { | ||
| 69 | compatible = "qemu,fw-cfg-mmio"; | ||
| 70 | reg = <0x0 0x9020000 0x0 0xa>; | ||
| 71 | }; | ||
| 72 | }; | ||
diff --git a/Documentation/devicetree/bindings/graph.txt b/Documentation/devicetree/bindings/graph.txt index 1a69c078adf2..fcb1c6a4787b 100644 --- a/Documentation/devicetree/bindings/graph.txt +++ b/Documentation/devicetree/bindings/graph.txt | |||
| @@ -19,7 +19,7 @@ type of the connections, they just map their existence. Specific properties | |||
| 19 | may be described by specialized bindings depending on the type of connection. | 19 | may be described by specialized bindings depending on the type of connection. |
| 20 | 20 | ||
| 21 | To see how this binding applies to video pipelines, for example, see | 21 | To see how this binding applies to video pipelines, for example, see |
| 22 | Documentation/device-tree/bindings/media/video-interfaces.txt. | 22 | Documentation/devicetree/bindings/media/video-interfaces.txt. |
| 23 | Here the ports describe data interfaces, and the links between them are | 23 | Here the ports describe data interfaces, and the links between them are |
| 24 | the connecting data buses. A single port with multiple connections can | 24 | the connecting data buses. A single port with multiple connections can |
| 25 | correspond to multiple devices being connected to the same physical bus. | 25 | correspond to multiple devices being connected to the same physical bus. |
diff --git a/Documentation/devicetree/bindings/i2c/i2c-st.txt b/Documentation/devicetree/bindings/i2c/i2c-st.txt index 437e0db3823c..4c26fda3844a 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-st.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-st.txt | |||
| @@ -31,7 +31,7 @@ i2c0: i2c@fed40000 { | |||
| 31 | compatible = "st,comms-ssc4-i2c"; | 31 | compatible = "st,comms-ssc4-i2c"; |
| 32 | reg = <0xfed40000 0x110>; | 32 | reg = <0xfed40000 0x110>; |
| 33 | interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; | 33 | interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; |
| 34 | clocks = <&CLK_S_ICN_REG_0>; | 34 | clocks = <&clk_s_a0_ls CLK_ICN_REG>; |
| 35 | clock-names = "ssc"; | 35 | clock-names = "ssc"; |
| 36 | clock-frequency = <400000>; | 36 | clock-frequency = <400000>; |
| 37 | pinctrl-names = "default"; | 37 | pinctrl-names = "default"; |
diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index 9f4e3824e71e..9f41d05be3be 100644 --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt | |||
| @@ -47,6 +47,7 @@ dallas,ds3232 Extremely Accurate I²C RTC with Integrated Crystal and SRAM | |||
| 47 | dallas,ds4510 CPU Supervisor with Nonvolatile Memory and Programmable I/O | 47 | dallas,ds4510 CPU Supervisor with Nonvolatile Memory and Programmable I/O |
| 48 | dallas,ds75 Digital Thermometer and Thermostat | 48 | dallas,ds75 Digital Thermometer and Thermostat |
| 49 | dlg,da9053 DA9053: flexible system level PMIC with multicore support | 49 | dlg,da9053 DA9053: flexible system level PMIC with multicore support |
| 50 | dlg,da9063 DA9063: system PMIC for quad-core application processors | ||
| 50 | epson,rx8025 High-Stability. I2C-Bus INTERFACE REAL TIME CLOCK MODULE | 51 | epson,rx8025 High-Stability. I2C-Bus INTERFACE REAL TIME CLOCK MODULE |
| 51 | epson,rx8581 I2C-BUS INTERFACE REAL TIME CLOCK MODULE | 52 | epson,rx8581 I2C-BUS INTERFACE REAL TIME CLOCK MODULE |
| 52 | fsl,mag3110 MAG3110: Xtrinsic High Accuracy, 3D Magnetometer | 53 | fsl,mag3110 MAG3110: Xtrinsic High Accuracy, 3D Magnetometer |
diff --git a/Documentation/devicetree/bindings/net/davinci_emac.txt b/Documentation/devicetree/bindings/net/davinci_emac.txt index 032808843f90..24c5cdaba8d2 100644 --- a/Documentation/devicetree/bindings/net/davinci_emac.txt +++ b/Documentation/devicetree/bindings/net/davinci_emac.txt | |||
| @@ -4,7 +4,8 @@ This file provides information, what the device node | |||
| 4 | for the davinci_emac interface contains. | 4 | for the davinci_emac interface contains. |
| 5 | 5 | ||
| 6 | Required properties: | 6 | Required properties: |
| 7 | - compatible: "ti,davinci-dm6467-emac" or "ti,am3517-emac" | 7 | - compatible: "ti,davinci-dm6467-emac", "ti,am3517-emac" or |
| 8 | "ti,dm816-emac" | ||
| 8 | - reg: Offset and length of the register set for the device | 9 | - reg: Offset and length of the register set for the device |
| 9 | - ti,davinci-ctrl-reg-offset: offset to control register | 10 | - ti,davinci-ctrl-reg-offset: offset to control register |
| 10 | - ti,davinci-ctrl-mod-reg-offset: offset to control module register | 11 | - ti,davinci-ctrl-mod-reg-offset: offset to control module register |
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index b1df0ad1306c..d443279c95dc 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt | |||
| @@ -9,7 +9,6 @@ ad Avionic Design GmbH | |||
| 9 | adapteva Adapteva, Inc. | 9 | adapteva Adapteva, Inc. |
| 10 | adi Analog Devices, Inc. | 10 | adi Analog Devices, Inc. |
| 11 | aeroflexgaisler Aeroflex Gaisler AB | 11 | aeroflexgaisler Aeroflex Gaisler AB |
| 12 | ak Asahi Kasei Corp. | ||
| 13 | allwinner Allwinner Technology Co., Ltd. | 12 | allwinner Allwinner Technology Co., Ltd. |
| 14 | altr Altera Corp. | 13 | altr Altera Corp. |
| 15 | amcc Applied Micro Circuits Corporation (APM, formally AMCC) | 14 | amcc Applied Micro Circuits Corporation (APM, formally AMCC) |
| @@ -20,6 +19,7 @@ amstaos AMS-Taos Inc. | |||
| 20 | apm Applied Micro Circuits Corporation (APM) | 19 | apm Applied Micro Circuits Corporation (APM) |
| 21 | arm ARM Ltd. | 20 | arm ARM Ltd. |
| 22 | armadeus ARMadeus Systems SARL | 21 | armadeus ARMadeus Systems SARL |
| 22 | asahi-kasei Asahi Kasei Corp. | ||
| 23 | atmel Atmel Corporation | 23 | atmel Atmel Corporation |
| 24 | auo AU Optronics Corporation | 24 | auo AU Optronics Corporation |
| 25 | avago Avago Technologies | 25 | avago Avago Technologies |
| @@ -127,6 +127,7 @@ pixcir PIXCIR MICROELECTRONICS Co., Ltd | |||
| 127 | powervr PowerVR (deprecated, use img) | 127 | powervr PowerVR (deprecated, use img) |
| 128 | qca Qualcomm Atheros, Inc. | 128 | qca Qualcomm Atheros, Inc. |
| 129 | qcom Qualcomm Technologies, Inc | 129 | qcom Qualcomm Technologies, Inc |
| 130 | qemu QEMU, a generic and open source machine emulator and virtualizer | ||
| 130 | qnap QNAP Systems, Inc. | 131 | qnap QNAP Systems, Inc. |
| 131 | radxa Radxa | 132 | radxa Radxa |
| 132 | raidsonic RaidSonic Technology GmbH | 133 | raidsonic RaidSonic Technology GmbH |
| @@ -168,6 +169,7 @@ usi Universal Scientific Industrial Co., Ltd. | |||
| 168 | v3 V3 Semiconductor | 169 | v3 V3 Semiconductor |
| 169 | variscite Variscite Ltd. | 170 | variscite Variscite Ltd. |
| 170 | via VIA Technologies, Inc. | 171 | via VIA Technologies, Inc. |
| 172 | virtio Virtual I/O Device Specification, developed by the OASIS consortium | ||
| 171 | voipac Voipac Technologies s.r.o. | 173 | voipac Voipac Technologies s.r.o. |
| 172 | winbond Winbond Electronics corp. | 174 | winbond Winbond Electronics corp. |
| 173 | wlf Wolfson Microelectronics | 175 | wlf Wolfson Microelectronics |
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 4df73da11adc..176d4fe4f076 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
| @@ -1277,6 +1277,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
| 1277 | i8042.notimeout [HW] Ignore timeout condition signalled by controller | 1277 | i8042.notimeout [HW] Ignore timeout condition signalled by controller |
| 1278 | i8042.reset [HW] Reset the controller during init and cleanup | 1278 | i8042.reset [HW] Reset the controller during init and cleanup |
| 1279 | i8042.unlock [HW] Unlock (ignore) the keylock | 1279 | i8042.unlock [HW] Unlock (ignore) the keylock |
| 1280 | i8042.kbdreset [HW] Reset device connected to KBD port | ||
| 1280 | 1281 | ||
| 1281 | i810= [HW,DRM] | 1282 | i810= [HW,DRM] |
| 1282 | 1283 | ||
diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt index 9bffdfc648dc..85b022179104 100644 --- a/Documentation/networking/ip-sysctl.txt +++ b/Documentation/networking/ip-sysctl.txt | |||
| @@ -66,6 +66,8 @@ fwmark_reflect - BOOLEAN | |||
| 66 | route/max_size - INTEGER | 66 | route/max_size - INTEGER |
| 67 | Maximum number of routes allowed in the kernel. Increase | 67 | Maximum number of routes allowed in the kernel. Increase |
| 68 | this when using large numbers of interfaces and/or routes. | 68 | this when using large numbers of interfaces and/or routes. |
| 69 | From linux kernel 3.6 onwards, this is deprecated for ipv4 | ||
| 70 | as route cache is no longer used. | ||
| 69 | 71 | ||
| 70 | neigh/default/gc_thresh1 - INTEGER | 72 | neigh/default/gc_thresh1 - INTEGER |
| 71 | Minimum number of entries to keep. Garbage collector will not | 73 | Minimum number of entries to keep. Garbage collector will not |
diff --git a/Documentation/target/tcm_mod_builder.py b/Documentation/target/tcm_mod_builder.py index 230ce71f4d75..2b47704f75cb 100755 --- a/Documentation/target/tcm_mod_builder.py +++ b/Documentation/target/tcm_mod_builder.py | |||
| @@ -389,9 +389,6 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 389 | buf += " .release_cmd = " + fabric_mod_name + "_release_cmd,\n" | 389 | buf += " .release_cmd = " + fabric_mod_name + "_release_cmd,\n" |
| 390 | buf += " .shutdown_session = " + fabric_mod_name + "_shutdown_session,\n" | 390 | buf += " .shutdown_session = " + fabric_mod_name + "_shutdown_session,\n" |
| 391 | buf += " .close_session = " + fabric_mod_name + "_close_session,\n" | 391 | buf += " .close_session = " + fabric_mod_name + "_close_session,\n" |
| 392 | buf += " .stop_session = " + fabric_mod_name + "_stop_session,\n" | ||
| 393 | buf += " .fall_back_to_erl0 = " + fabric_mod_name + "_reset_nexus,\n" | ||
| 394 | buf += " .sess_logged_in = " + fabric_mod_name + "_sess_logged_in,\n" | ||
| 395 | buf += " .sess_get_index = " + fabric_mod_name + "_sess_get_index,\n" | 392 | buf += " .sess_get_index = " + fabric_mod_name + "_sess_get_index,\n" |
| 396 | buf += " .sess_get_initiator_sid = NULL,\n" | 393 | buf += " .sess_get_initiator_sid = NULL,\n" |
| 397 | buf += " .write_pending = " + fabric_mod_name + "_write_pending,\n" | 394 | buf += " .write_pending = " + fabric_mod_name + "_write_pending,\n" |
| @@ -402,7 +399,7 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 402 | buf += " .queue_data_in = " + fabric_mod_name + "_queue_data_in,\n" | 399 | buf += " .queue_data_in = " + fabric_mod_name + "_queue_data_in,\n" |
| 403 | buf += " .queue_status = " + fabric_mod_name + "_queue_status,\n" | 400 | buf += " .queue_status = " + fabric_mod_name + "_queue_status,\n" |
| 404 | buf += " .queue_tm_rsp = " + fabric_mod_name + "_queue_tm_rsp,\n" | 401 | buf += " .queue_tm_rsp = " + fabric_mod_name + "_queue_tm_rsp,\n" |
| 405 | buf += " .is_state_remove = " + fabric_mod_name + "_is_state_remove,\n" | 402 | buf += " .aborted_task = " + fabric_mod_name + "_aborted_task,\n" |
| 406 | buf += " /*\n" | 403 | buf += " /*\n" |
| 407 | buf += " * Setup function pointers for generic logic in target_core_fabric_configfs.c\n" | 404 | buf += " * Setup function pointers for generic logic in target_core_fabric_configfs.c\n" |
| 408 | buf += " */\n" | 405 | buf += " */\n" |
| @@ -428,7 +425,7 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 428 | buf += " /*\n" | 425 | buf += " /*\n" |
| 429 | buf += " * Register the top level struct config_item_type with TCM core\n" | 426 | buf += " * Register the top level struct config_item_type with TCM core\n" |
| 430 | buf += " */\n" | 427 | buf += " */\n" |
| 431 | buf += " fabric = target_fabric_configfs_init(THIS_MODULE, \"" + fabric_mod_name[4:] + "\");\n" | 428 | buf += " fabric = target_fabric_configfs_init(THIS_MODULE, \"" + fabric_mod_name + "\");\n" |
| 432 | buf += " if (IS_ERR(fabric)) {\n" | 429 | buf += " if (IS_ERR(fabric)) {\n" |
| 433 | buf += " printk(KERN_ERR \"target_fabric_configfs_init() failed\\n\");\n" | 430 | buf += " printk(KERN_ERR \"target_fabric_configfs_init() failed\\n\");\n" |
| 434 | buf += " return PTR_ERR(fabric);\n" | 431 | buf += " return PTR_ERR(fabric);\n" |
| @@ -595,7 +592,7 @@ def tcm_mod_dump_fabric_ops(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 595 | if re.search('get_fabric_name', fo): | 592 | if re.search('get_fabric_name', fo): |
| 596 | buf += "char *" + fabric_mod_name + "_get_fabric_name(void)\n" | 593 | buf += "char *" + fabric_mod_name + "_get_fabric_name(void)\n" |
| 597 | buf += "{\n" | 594 | buf += "{\n" |
| 598 | buf += " return \"" + fabric_mod_name[4:] + "\";\n" | 595 | buf += " return \"" + fabric_mod_name + "\";\n" |
| 599 | buf += "}\n\n" | 596 | buf += "}\n\n" |
| 600 | bufi += "char *" + fabric_mod_name + "_get_fabric_name(void);\n" | 597 | bufi += "char *" + fabric_mod_name + "_get_fabric_name(void);\n" |
| 601 | continue | 598 | continue |
| @@ -820,27 +817,6 @@ def tcm_mod_dump_fabric_ops(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 820 | buf += "}\n\n" | 817 | buf += "}\n\n" |
| 821 | bufi += "void " + fabric_mod_name + "_close_session(struct se_session *);\n" | 818 | bufi += "void " + fabric_mod_name + "_close_session(struct se_session *);\n" |
| 822 | 819 | ||
| 823 | if re.search('stop_session\)\(', fo): | ||
| 824 | buf += "void " + fabric_mod_name + "_stop_session(struct se_session *se_sess, int sess_sleep , int conn_sleep)\n" | ||
| 825 | buf += "{\n" | ||
| 826 | buf += " return;\n" | ||
| 827 | buf += "}\n\n" | ||
| 828 | bufi += "void " + fabric_mod_name + "_stop_session(struct se_session *, int, int);\n" | ||
| 829 | |||
| 830 | if re.search('fall_back_to_erl0\)\(', fo): | ||
| 831 | buf += "void " + fabric_mod_name + "_reset_nexus(struct se_session *se_sess)\n" | ||
| 832 | buf += "{\n" | ||
| 833 | buf += " return;\n" | ||
| 834 | buf += "}\n\n" | ||
| 835 | bufi += "void " + fabric_mod_name + "_reset_nexus(struct se_session *);\n" | ||
| 836 | |||
| 837 | if re.search('sess_logged_in\)\(', fo): | ||
| 838 | buf += "int " + fabric_mod_name + "_sess_logged_in(struct se_session *se_sess)\n" | ||
| 839 | buf += "{\n" | ||
| 840 | buf += " return 0;\n" | ||
| 841 | buf += "}\n\n" | ||
| 842 | bufi += "int " + fabric_mod_name + "_sess_logged_in(struct se_session *);\n" | ||
| 843 | |||
| 844 | if re.search('sess_get_index\)\(', fo): | 820 | if re.search('sess_get_index\)\(', fo): |
| 845 | buf += "u32 " + fabric_mod_name + "_sess_get_index(struct se_session *se_sess)\n" | 821 | buf += "u32 " + fabric_mod_name + "_sess_get_index(struct se_session *se_sess)\n" |
| 846 | buf += "{\n" | 822 | buf += "{\n" |
| @@ -898,19 +874,18 @@ def tcm_mod_dump_fabric_ops(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 898 | bufi += "int " + fabric_mod_name + "_queue_status(struct se_cmd *);\n" | 874 | bufi += "int " + fabric_mod_name + "_queue_status(struct se_cmd *);\n" |
| 899 | 875 | ||
| 900 | if re.search('queue_tm_rsp\)\(', fo): | 876 | if re.search('queue_tm_rsp\)\(', fo): |
| 901 | buf += "int " + fabric_mod_name + "_queue_tm_rsp(struct se_cmd *se_cmd)\n" | 877 | buf += "void " + fabric_mod_name + "_queue_tm_rsp(struct se_cmd *se_cmd)\n" |
| 902 | buf += "{\n" | 878 | buf += "{\n" |
| 903 | buf += " return 0;\n" | 879 | buf += " return;\n" |
| 904 | buf += "}\n\n" | 880 | buf += "}\n\n" |
| 905 | bufi += "int " + fabric_mod_name + "_queue_tm_rsp(struct se_cmd *);\n" | 881 | bufi += "void " + fabric_mod_name + "_queue_tm_rsp(struct se_cmd *);\n" |
| 906 | 882 | ||
| 907 | if re.search('is_state_remove\)\(', fo): | 883 | if re.search('aborted_task\)\(', fo): |
| 908 | buf += "int " + fabric_mod_name + "_is_state_remove(struct se_cmd *se_cmd)\n" | 884 | buf += "void " + fabric_mod_name + "_aborted_task(struct se_cmd *se_cmd)\n" |
| 909 | buf += "{\n" | 885 | buf += "{\n" |
| 910 | buf += " return 0;\n" | 886 | buf += " return;\n" |
| 911 | buf += "}\n\n" | 887 | buf += "}\n\n" |
| 912 | bufi += "int " + fabric_mod_name + "_is_state_remove(struct se_cmd *);\n" | 888 | bufi += "void " + fabric_mod_name + "_aborted_task(struct se_cmd *);\n" |
| 913 | |||
| 914 | 889 | ||
| 915 | ret = p.write(buf) | 890 | ret = p.write(buf) |
| 916 | if ret: | 891 | if ret: |
| @@ -1018,11 +993,11 @@ def main(modname, proto_ident): | |||
| 1018 | tcm_mod_build_kbuild(fabric_mod_dir, fabric_mod_name) | 993 | tcm_mod_build_kbuild(fabric_mod_dir, fabric_mod_name) |
| 1019 | tcm_mod_build_kconfig(fabric_mod_dir, fabric_mod_name) | 994 | tcm_mod_build_kconfig(fabric_mod_dir, fabric_mod_name) |
| 1020 | 995 | ||
| 1021 | input = raw_input("Would you like to add " + fabric_mod_name + "to drivers/target/Makefile..? [yes,no]: ") | 996 | input = raw_input("Would you like to add " + fabric_mod_name + " to drivers/target/Makefile..? [yes,no]: ") |
| 1022 | if input == "yes" or input == "y": | 997 | if input == "yes" or input == "y": |
| 1023 | tcm_mod_add_kbuild(tcm_dir, fabric_mod_name) | 998 | tcm_mod_add_kbuild(tcm_dir, fabric_mod_name) |
| 1024 | 999 | ||
| 1025 | input = raw_input("Would you like to add " + fabric_mod_name + "to drivers/target/Kconfig..? [yes,no]: ") | 1000 | input = raw_input("Would you like to add " + fabric_mod_name + " to drivers/target/Kconfig..? [yes,no]: ") |
| 1026 | if input == "yes" or input == "y": | 1001 | if input == "yes" or input == "y": |
| 1027 | tcm_mod_add_kconfig(tcm_dir, fabric_mod_name) | 1002 | tcm_mod_add_kconfig(tcm_dir, fabric_mod_name) |
| 1028 | 1003 | ||
diff --git a/Documentation/thermal/cpu-cooling-api.txt b/Documentation/thermal/cpu-cooling-api.txt index fca24c931ec8..753e47cc2e20 100644 --- a/Documentation/thermal/cpu-cooling-api.txt +++ b/Documentation/thermal/cpu-cooling-api.txt | |||
| @@ -3,7 +3,7 @@ CPU cooling APIs How To | |||
| 3 | 3 | ||
| 4 | Written by Amit Daniel Kachhap <amit.kachhap@linaro.org> | 4 | Written by Amit Daniel Kachhap <amit.kachhap@linaro.org> |
| 5 | 5 | ||
| 6 | Updated: 12 May 2012 | 6 | Updated: 6 Jan 2015 |
| 7 | 7 | ||
| 8 | Copyright (c) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) | 8 | Copyright (c) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) |
| 9 | 9 | ||
| @@ -25,7 +25,18 @@ the user. The registration APIs returns the cooling device pointer. | |||
| 25 | 25 | ||
| 26 | clip_cpus: cpumask of cpus where the frequency constraints will happen. | 26 | clip_cpus: cpumask of cpus where the frequency constraints will happen. |
| 27 | 27 | ||
| 28 | 1.1.2 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) | 28 | 1.1.2 struct thermal_cooling_device *of_cpufreq_cooling_register( |
| 29 | struct device_node *np, const struct cpumask *clip_cpus) | ||
| 30 | |||
| 31 | This interface function registers the cpufreq cooling device with | ||
| 32 | the name "thermal-cpufreq-%x" linking it with a device tree node, in | ||
| 33 | order to bind it via the thermal DT code. This api can support multiple | ||
| 34 | instances of cpufreq cooling devices. | ||
| 35 | |||
| 36 | np: pointer to the cooling device device tree node | ||
| 37 | clip_cpus: cpumask of cpus where the frequency constraints will happen. | ||
| 38 | |||
| 39 | 1.1.3 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) | ||
| 29 | 40 | ||
| 30 | This interface function unregisters the "thermal-cpufreq-%x" cooling device. | 41 | This interface function unregisters the "thermal-cpufreq-%x" cooling device. |
| 31 | 42 | ||
