Showing error 535

User: Jiri Slaby
Error type: Calling function from invalid context
Error type description: Some function is called at inappropriate place like sleep inside critical sections or interrupt handlers
File location: drivers/net/qla3xxx.c
Line in file: 3845
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2011-11-07 22:19:02 UTC


Source:

3815                                    ispControlStatus,
3816                                    ((ISP_CONTROL_RI << 16) | ISP_CONTROL_RI));
3817                /*
3818                 * Wait the for Soft Reset to Complete.
3819                 */
3820                max_wait_time = 10;
3821                do {
3822                        value = ql_read_common_reg(qdev,
3823                                                   &port_regs->CommonRegs.
3824
3825                                                   ispControlStatus);
3826                        if ((value & ISP_CONTROL_SR) == 0) {
3827                                printk(KERN_DEBUG PFX
3828                                       "%s: reset completed.\n",
3829                                       qdev->ndev->name);
3830                                break;
3831                        }
3832
3833                        if (value & ISP_CONTROL_RI) {
3834                                printk(KERN_DEBUG PFX
3835                                       "%s: clearing NRI after reset.\n",
3836                                       qdev->ndev->name);
3837                                ql_write_common_reg(qdev,
3838                                                    &port_regs->
3839                                                    CommonRegs.
3840                                                    ispControlStatus,
3841                                                    ((ISP_CONTROL_RI <<
3842                                                      16) | ISP_CONTROL_RI));
3843                        }
3844
3845                        ssleep(1);
3846                } while (--max_wait_time);
3847                spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
3848
3849                if (value & ISP_CONTROL_SR) {
3850
3851                        /*
3852                         * Set the reset flags and clear the board again.
3853                         * Nothing else to do...
3854                         */
3855                        printk(KERN_ERR PFX
Show full sources