← Documents Documentation/hwmon/cros_ec_hwmon.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver cros_ec_hwmon

ChromeOS EC의 fan·temperature·PWM과 suspend/resume 상태 복원입니다.

Source pathDocumentation/hwmon/cros_ec_hwmon.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

cros_ec_hwmon.rst:1-31

EC capability를 hwmon에 노출하고 suspend에서 auto로 바뀐 fan state를 resume 때 복원합니다.

문서 개요
항목
SourceDocumentation/hwmon/cros_ec_hwmon.rst
분량31 source lines
LabelsEC 제공
ThermalControllable fan 등록

원문 분량과 핵심 지원 범위입니다.

핵심 흐름
EC capability 조회Hwmon channel 등록Suspend state 저장Resume state 복원

측정과 제어의 기본 순서입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0-or-later
2
3 Kernel driver cros_ec_hwmon
4 ===========================
5
6 Supported chips:
7
8 * ChromeOS embedded controllers.
9
10 Prefix: 'cros_ec'
11
12 Addresses scanned: -
13
14 Author:
15
16 - Thomas Weißschuh <linux@weissschuh.net>
17
18 Description
19 -----------
20
21 This driver implements support for hardware monitoring commands exposed by the
22 ChromeOS embedded controller used in Chromebooks and other devices.
23
24 The channel labels exposed via hwmon are retrieved from the EC itself.
25
26 Fan and temperature readings are supported. PWM fan control is also supported if
27 the EC also supports setting fan PWM values and fan mode. Note that EC will
28 switch fan control mode back to auto when suspended. This driver will restore
29 the fan state to what they were before suspended when resumed.
30 If a fan is controllable, this driver will register that fan as a cooling device
31 in the thermal framework as well.
32

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

ChromeOS EC hwmon과 fan 상태 복원

1-31

이 GPL-2.0-or-later driver는 ChromeOS embedded controller를 prefix `cros_ec`로 지원합니다. 주소 검색은 없고 저자는 Thomas Weißschuh입니다.

Chromebook과 다른 장치에서 사용하는 ChromeOS EC가 제공하는 hardware monitoring command를 지원합니다. Hwmon channel label은 EC 자체에서 가져옵니다.

Fan과 temperature reading을 지원합니다. EC가 fan PWM value와 fan mode 설정을 지원하면 PWM fan control도 제공합니다.

Suspend 시 EC는 fan control mode를 auto로 되돌립니다. Driver는 resume 시 fan state를 suspend 이전 상태로 복원합니다. 제어 가능한 fan은 thermal framework의 cooling device로도 등록합니다.

ChromeOS EC 기능
기능동작
Channel labelEC에서 직접 조회
Temperature/FanReading 지원
PWM controlEC가 PWM value와 mode를 지원할 때
SuspendEC가 auto mode로 전환
ResumeDriver가 이전 fan state 복원
Thermal frameworkControllable fan을 cooling device로 등록

EC capability에 따라 노출되는 hwmon·thermal 기능입니다.

Suspend·resume fan 처리
Suspend 전 fan mode·PWM 저장Suspend에서 EC가 auto mode 적용Resume event 수신저장한 fan state 복원Cooling device 상태 동기화

Firmware의 auto 전환 뒤 사용자가 설정한 상태를 되살립니다.

.. SPDX-License-Identifier: GPL-2.0-or-later

Kernel driver cros_ec_hwmon
===========================

Supported chips:

  * ChromeOS embedded controllers.

    Prefix: 'cros_ec'

    Addresses scanned: -

Author:

  - Thomas Weißschuh <linux@weissschuh.net>

Description
-----------

This driver implements support for hardware monitoring commands exposed by the
ChromeOS embedded controller used in Chromebooks and other devices.

The channel labels exposed via hwmon are retrieved from the EC itself.

Fan and temperature readings are supported. PWM fan control is also supported if
the EC also supports setting fan PWM values and fan mode. Note that EC will
switch fan control mode back to auto when suspended. This driver will restore
the fan state to what they were before suspended when resumed.
If a fan is controllable, this driver will register that fan as a cooling device
in the thermal framework as well.