File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
22
/* Register offsets */
23
23
#define REG_MTXFIFO 0x00
24
24
#define REG_MRXFIFO 0x04
25
+ #define REG_XFSTA 0x0c
25
26
#define REG_SMSTA 0x14
26
27
#define REG_IMASK 0x18
27
28
#define REG_CTL 0x1c
@@ -99,14 +100,18 @@ static int pasemi_smb_clear(struct pasemi_smbus *smbus)
99
100
USEC_PER_MSEC * PASEMI_TRANSFER_TIMEOUT_MS );
100
101
101
102
if (ret < 0 ) {
102
- dev_err (smbus -> dev , "Bus is still stuck (status 0x%08x)\n" , status );
103
+ dev_err (smbus -> dev , "Bus is still stuck (status 0x%08x xfstatus 0x%08x)\n" ,
104
+ status , reg_read (smbus , REG_XFSTA ));
103
105
return - EIO ;
104
106
}
105
107
106
108
/* If any badness happened or there is data in the FIFOs, reset the FIFOs */
107
109
if ((status & (SMSTA_MRNE | SMSTA_JMD | SMSTA_MTO | SMSTA_TOM | SMSTA_MTN | SMSTA_MTA )) ||
108
- !(status & SMSTA_MTE ))
110
+ !(status & SMSTA_MTE )) {
111
+ dev_warn (smbus -> dev , "Issuing reset due to status 0x%08x (xfstatus 0x%08x)\n" ,
112
+ status , reg_read (smbus , REG_XFSTA ));
109
113
pasemi_reset (smbus );
114
+ }
110
115
111
116
/* Clear the flags */
112
117
reg_write (smbus , REG_SMSTA , status );
You can’t perform that action at this time.
0 commit comments