From: oharboe at B. <oh...@ma...> - 2009-08-24 09:26:06
|
Author: oharboe Date: 2009-08-24 09:26:05 +0200 (Mon, 24 Aug 2009) New Revision: 2605 Modified: trunk/src/jtag/core.c Log: Jonas Horberg <jho...@sa...> The trunk is currently broken for interfaces without the speed_div function (interface specific clock speed value to kHz conversion). Example: parport. Modified: trunk/src/jtag/core.c =================================================================== --- trunk/src/jtag/core.c 2009-08-21 11:23:24 UTC (rev 2604) +++ trunk/src/jtag/core.c 2009-08-24 07:26:05 UTC (rev 2605) @@ -1153,9 +1153,8 @@ int actual_khz = requested_khz; int retval = jtag_get_speed_readable(&actual_khz); if (ERROR_OK != retval) - return retval; - - if (actual_khz) + LOG_INFO("interface specific clock speed value %d", jtag_get_speed()); + else if (actual_khz) { if ((CLOCK_MODE_RCLK == clock_mode) || ((CLOCK_MODE_KHZ == clock_mode) && !requested_khz)) |