+
+ /* terrible MSMCAN reset design - best to comment out */
+ if(0) {
+ int tic=jiffies;
+ int tac;
+
+ msmcan_write_register(iCTL_INI, chip->chip_base_addr+iCTL);
+ /*CLKOUT stopped (iCPU_CEN=0) */
+ msmcan_write_register(iCPU_DSC, chip->chip_base_addr+iCPU);
+ while(!(msmcan_read_register(chip->chip_base_addr+iCPU)&iCPU_CEN)){
+ tac=jiffies;
+ if((tac-tic)>HZ*2){
+ CANMSG("Unable to reset board\n");
+ return -EIO;
+ }
+ schedule();
+ }
+
+
+ }
+