← Documents Documentation/ABI/testing/sysfs-platform-chipidea-usb2 GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

ChipIdea USB2 role sysfs ABI

ChipIdea USB2 controller의 current gadget/host role을 읽고 dual-role configuration에서 전환합니다.

Source pathDocumentation/ABI/testing/sysfs-platform-chipidea-usb2
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Dual-role controller 전환

sysfs-platform-chipidea-usb2:1-9

현재 gadget·host role을 문자열로 노출하고 dual-role controller에서만 같은 문자열을 써서 전환합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/platform/devices/ci_hdrc.0/role
2 Date: Mar 2017
3 Contact: Peter Chen <[email protected]>
4 Description:
5 When read, it returns string "gadget" or "host", indicating
6 the current controller role.
7
8 It will do role switch when "gadget" or "host" is written to it.
9 Only controller at dual-role configuration supports writing.
10

3. 한국어 전문 번역

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

ChipIdea USB2 role sysfs ABI: role

1-9
항목한국어 전문 번역
What/sys/bus/platform/devices/ci_hdrc.0/role
Date2017년 3월
ContactPeter Chen <[email protected]>
Description`/sys/bus/platform/devices/ci_hdrc.0/role`을 read하면 current controller role을 나타내는 `gadget` 또는 `host` string을 반환합니다. `gadget`이나 `host`를 write하면 role switch를 수행합니다. Dual-role configuration의 controller만 write를 지원합니다.
ChipIdea USB2 role values
ValueController roleWritable when
gadgetUSB device/peripheralDual-role configuration
hostUSB hostDual-role configuration

Read result와 writable role names는 같지만 write는 dual-role controller로 제한됩니다.