← Documents Documentation/ABI/testing/sysfs-bus-i2c-devices-pca954x GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

PCA954x I2C mux idle-state sysfs ABI

PCA954x 계열 I2C mux가 idle일 때 channel을 disconnect·유지하거나 미리 지정하는 idle_state 값을 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-bus-i2c-devices-pca954x
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

I2C mux idle behavior

sysfs-bus-i2c-devices-pca954x:1-23

idle_state는 지원하는 mux devices에서만 존재하며 -2는 disconnect, -1은 기본값인 현 상태 유지, 0..<nchans>는 predetermined channel 선택을 뜻합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/i2c/.../idle_state
2 Date: January 2019
3 KernelVersion: 5.2
4 Contact: Robert Shearman <[email protected]>
5 Description:
6 Value that exists only for mux devices that can be
7 written to control the behaviour of the multiplexer on
8 idle. Possible values:
9
10 =========== ===============================================
11 -2 disconnect on idle, i.e. deselect the last used
12 channel, which is useful when there is a device
13 with an address that conflicts with another
14 device on another mux on the same parent bus.
15 -1 leave the mux as-is, which is the most optimal
16 setting in terms of I2C operations and is the
17 default mode.
18 0..<nchans> set the mux to a predetermined channel,
19 which is useful if there is one channel that is
20 used almost always, and you want to reduce the
21 latency for normal operations after rare
22 transactions on other channels
23 =========== ===============================================
24

3. 한국어 전문 번역

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

I2C mux idle behavior

1-23
항목전문 번역
What/sys/bus/i2c/.../idle_state
Date2019년 1월
KernelVersion5.2
ContactRobert Shearman <[email protected]>
DescriptionIdle 상태에서 multiplexer의 동작을 제어하도록 쓸 수 있는 값이며, 이를 지원하는 mux devices에만 존재합니다. 가능한 값은 아래와 같습니다.
전문 번역
-2Idle에서 disconnect합니다. 즉, 마지막으로 사용한 channel을 deselect합니다. 같은 parent bus의 서로 다른 mux에 address가 충돌하는 devices가 있을 때 유용합니다.
-1Mux를 현재 상태 그대로 둡니다. I2C operations 측면에서 가장 최적인 설정이며 기본 mode입니다.
0..<nchans>Mux를 미리 정한 channel로 설정합니다. 거의 항상 사용하는 channel이 하나 있고, 다른 channels에서 드물게 transaction한 뒤 일반 operations의 latency를 줄이려는 경우에 유용합니다.