isp116x-hcd.c (05909cd9a0c8811731b38697af13075e8954314f) isp116x-hcd.c (93c747ed00c1c74316645f7761f0cdb3f3d3952d)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ISP116x HCD (Host Controller Driver) for USB.
4 *
5 * Derived from the SL811 HCD, rewritten for ISP116x.
6 * Copyright (C) 2005 Olav Kongas <ok@artecdesign.ee>
7 *
8 * Portions:

--- 1433 unchanged lines hidden (view full) ---

1442 spin_lock_irq(&isp116x->lock);
1443
1444 val = isp116x_read_reg32(isp116x, HCCONTROL);
1445 switch (val & HCCONTROL_HCFS) {
1446 case HCCONTROL_USB_SUSPEND:
1447 val &= ~HCCONTROL_HCFS;
1448 val |= HCCONTROL_USB_RESUME;
1449 isp116x_write_reg32(isp116x, HCCONTROL, val);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ISP116x HCD (Host Controller Driver) for USB.
4 *
5 * Derived from the SL811 HCD, rewritten for ISP116x.
6 * Copyright (C) 2005 Olav Kongas <ok@artecdesign.ee>
7 *
8 * Portions:

--- 1433 unchanged lines hidden (view full) ---

1442 spin_lock_irq(&isp116x->lock);
1443
1444 val = isp116x_read_reg32(isp116x, HCCONTROL);
1445 switch (val & HCCONTROL_HCFS) {
1446 case HCCONTROL_USB_SUSPEND:
1447 val &= ~HCCONTROL_HCFS;
1448 val |= HCCONTROL_USB_RESUME;
1449 isp116x_write_reg32(isp116x, HCCONTROL, val);
1450 break;
1450 case HCCONTROL_USB_RESUME:
1451 break;
1452 case HCCONTROL_USB_OPER:
1453 spin_unlock_irq(&isp116x->lock);
1454 return 0;
1455 default:
1456 /* HCCONTROL_USB_RESET: this may happen, when during
1457 suspension the HC lost power. Reinitialize completely */

--- 238 unchanged lines hidden ---
1451 case HCCONTROL_USB_RESUME:
1452 break;
1453 case HCCONTROL_USB_OPER:
1454 spin_unlock_irq(&isp116x->lock);
1455 return 0;
1456 default:
1457 /* HCCONTROL_USB_RESET: this may happen, when during
1458 suspension the HC lost power. Reinitialize completely */

--- 238 unchanged lines hidden ---