Ticket #1703 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

SYSFS: Bluetooth power_on entry inversety inconsistent

Reported by: kriss Owned by: openmoko-kernel
Priority: normal Milestone:
Component: kernel Version: GTA02v6
Severity: normal Keywords: Bluetooth, SYSFS
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

The sysfs entry /sys/class/backlight/pcf50633-bl/bl_power is written inverse but reads out data "right".

Linux om-gta02 2.6.24 #1 PREEMPT Wed Jul 23 06:34:19 CEST 2008 armv4tl unknown

Example:

root@om-gta02:~# cat /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
0
root@om-gta02:~# echo 1 > /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
root@om-gta02:~# cat /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
0
root@om-gta02:~# echo 1 > /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
root@om-gta02:~# cat /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
0
root@om-gta02:~# echo 0 > /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
root@om-gta02:~# cat /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
1

Example 2: Backlight (inverse, consisten):

root@om-gta02:~# cat /sys/class/backlight/pcf50633-bl/bl_power
0
root@om-gta02:~# echo 1 > /sys/class/backlight/pcf50633-bl/bl_power
root@om-gta02:~# cat /sys/class/backlight/pcf50633-bl/bl_power
1

Change History

comment:1 Changed 10 years ago by mickeyl

  • Milestone FSO deleted

Andy?

comment:2 Changed 9 years ago by andy

  • Status changed from new to closed
  • HasPatchForReview unset
  • Resolution set to fixed

In the newer kernels

/sys/class/backlight/gta02-bl/bl_power

acts consistently inverted for read and write which is expected I believe.

Note: See TracTickets for help on using tickets.