[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#794266: Tests



Hello! Here is the output (this is a newer Testkernel 4.5.2 with no
patches, only one rtc-driver is enabled rtc-s35390a the rest is debian
kernel-config. If needed I can backup the actual kernel/initrd and
test again.

root@ts219p:~# dmesg -c > /dev/null
root@ts219p:~# echo 0-0030 > /sys/bus/i2c/devices/0-0030/driver/unbind
root@ts219p:~# echo 1 > /sys/kernel/debug/tracing/events/i2c/enable
root@ts219p:~# echo 0-0030 > /sys/bus/i2c/drivers/rtc-s35390a/bind
root@ts219p:~# echo 0-0030 > /sys/bus/i2c/devices/0-0030/driver/unbind
root@ts219p:~# i2cget 0 0x30 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will read from device file /dev/i2c-0, chip address 0x30, data address
0x01, using read byte data.
Continue? [Y/n] y
Error: Read failed
root@ts219p:~# echo 0-0030 > /sys/bus/i2c/drivers/rtc-s35390a/bind
-bash: echo: Schreibfehler: Kein passendes Gerät gefunden.
root@ts219p:~# dmesg
[245704.947084] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
[245732.145566] i2c i2c-0: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x7,
status: 0x38, addr: 0x30, flags: 0x1
[245746.881691] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[245746.888378] rtc-s35390a 0-0030: error resetting chip
[245746.902086] rtc-s35390a: probe of 0-0030 failed with error -5
root@ts219p:~# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 26/26   #P:1
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
            bash-3150  [000] .... 245704.945876: i2c_read: i2c-0 #0
a=030 f=0001 l=1
            bash-3150  [000] .... 245704.945974: i2c_reply: i2c-0 #0
a=030 f=0001 l=1 [70]
            bash-3150  [000] .... 245704.945978: i2c_result: i2c-0 n=1 ret=1
            bash-3150  [000] .... 245704.945981: i2c_read: i2c-0 #0
a=031 f=0001 l=1
            bash-3150  [000] .... 245704.946075: i2c_reply: i2c-0 #0
a=031 f=0001 l=1 [00]
            bash-3150  [000] .... 245704.946079: i2c_result: i2c-0 n=1 ret=1
            bash-3150  [000] .... 245704.946082: i2c_read: i2c-0 #0
a=030 f=0001 l=1
            bash-3150  [000] .... 245704.946175: i2c_reply: i2c-0 #0
a=030 f=0001 l=1 [70]
            bash-3150  [000] .... 245704.946178: i2c_result: i2c-0 n=1 ret=1
            bash-3150  [000] .... 245704.946181: i2c_read: i2c-0 #0
a=032 f=0001 l=7
            bash-3150  [000] .... 245704.946467: i2c_reply: i2c-0 #0
a=032 f=0001 l=7 [68-a0-80-00-9a-44-98]
            bash-3150  [000] .... 245704.946471: i2c_result: i2c-0 n=1 ret=1
            bash-3150  [000] .... 245704.946505: i2c_read: i2c-0 #0
a=032 f=0001 l=7
            bash-3150  [000] .... 245704.946755: i2c_reply: i2c-0 #0
a=032 f=0001 l=7 [68-a0-80-00-9a-44-98]
            bash-3150  [000] .... 245704.946760: i2c_result: i2c-0 n=1 ret=1
            bash-3150  [000] .... 245704.946765: i2c_read: i2c-0 #0
a=031 f=0001 l=1
            bash-3150  [000] .... 245704.946852: i2c_reply: i2c-0 #0
a=031 f=0001 l=1 [00]
            bash-3150  [000] .... 245704.946855: i2c_result: i2c-0 n=1 ret=1
          i2cget-3173  [000] .... 245732.145408: smbus_read: i2c-0 a=030
f=0000 c=1 BYTE_DATA
          i2cget-3173  [000] .... 245732.145418: i2c_write: i2c-0 #0
a=030 f=0000 l=1 [01]
          i2cget-3173  [000] .... 245732.145420: i2c_read: i2c-0 #1
a=030 f=0001 l=1
          i2cget-3173  [000] .... 245732.155145: i2c_result: i2c-0 n=0
ret=-5
          i2cget-3173  [000] .... 245732.155150: smbus_reply: i2c-0
a=030 f=0000 c=1 BYTE_DATA l=1 [79]
          i2cget-3173  [000] .... 245732.155153: smbus_result: i2c-0
a=030 f=0000 c=1 BYTE_DATA rd res=-5
            bash-3150  [000] .... 245744.882560: i2c_read: i2c-0 #0
a=030 f=0001 l=1
            bash-3150  [000] .... 245746.888363: i2c_result: i2c-0 n=0
ret=-110
root@ts219p:~#


Reply to: