init.c (4e1609c9eec2bf9971004fce8b65c0877d5ae600) | init.c (44af34428dfdce0472cb229b013c72710285d2db) |
---|---|
1 2/* 3 * Copyright (c) 2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. --- 1644 unchanged lines hidden (view full) --- 1653 goto err_power_off; 1654 1655 /* 1656 * The reason we have to wait for the target here is that the 1657 * driver layer has to init BMI in order to set the host block 1658 * size. 1659 */ 1660 ret = ath6kl_htc_wait_target(ar->htc_target); | 1 2/* 3 * Copyright (c) 2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. --- 1644 unchanged lines hidden (view full) --- 1653 goto err_power_off; 1654 1655 /* 1656 * The reason we have to wait for the target here is that the 1657 * driver layer has to init BMI in order to set the host block 1658 * size. 1659 */ 1660 ret = ath6kl_htc_wait_target(ar->htc_target); |
1661 if (ret) { | 1661 1662 if (ret == -ETIMEDOUT) { 1663 /* 1664 * Most likely USB target is in odd state after reboot and 1665 * needs a reset. A cold reset makes the whole device 1666 * disappear from USB bus and initialisation starts from 1667 * beginning. 1668 */ 1669 ath6kl_warn("htc wait target timed out, resetting device\n"); 1670 ath6kl_init_hw_reset(ar); 1671 goto err_power_off; 1672 } else if (ret) { |
1662 ath6kl_err("htc wait target failed: %d\n", ret); 1663 goto err_power_off; 1664 } 1665 1666 ret = ath6kl_init_service_ep(ar); 1667 if (ret) { 1668 ath6kl_err("Endpoint service initilisation failed: %d\n", ret); 1669 goto err_cleanup_scatter; --- 184 unchanged lines hidden --- | 1673 ath6kl_err("htc wait target failed: %d\n", ret); 1674 goto err_power_off; 1675 } 1676 1677 ret = ath6kl_init_service_ep(ar); 1678 if (ret) { 1679 ath6kl_err("Endpoint service initilisation failed: %d\n", ret); 1680 goto err_cleanup_scatter; --- 184 unchanged lines hidden --- |