From 75a1b90515aa90729ba32cb9698a6db53e19cdd4 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Tue, 27 Feb 2007 06:14:18 +0000 Subject: Xorcom rev. 3491: * Version of xpp modules is set from xpp/.version, rather than "unknown". * Astribank devices are now initialized in parallel: faster startup when there are multiple Astribanks. * Re-added support for the old format of /proc/xpp/sync write: (echo N 0 > /proc/xpp/sync ) . The new format (SYNC=NN) is preffered. * Firmware update to fix a PCM issue. * Fixed a build issue with kernel 2.6.8 . * Fixed missing initialization in Zaptel::Xpp::Xbus . * genzaptelconf will now set FXS ports as LS by default. To set them as KS, use fxs_default_start=ks in /etc/default/zaptel / /etc/sysconfig/zaptel (Also a workaround for #7755 ). * Groundwork for sync from zaptel master span: if zaptel is built with ZAPTEL_SYNC_TIC (see zaptel/team/tzafrir/sync ), xpp will report its drift from the zaptel sync master. * USB firmware update: had bad lines checksums (and fxload did not report). * fpga_load can now better report bad hex file checksum ;-) . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2239 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/xpp_usb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xpp/xpp_usb.c') diff --git a/xpp/xpp_usb.c b/xpp/xpp_usb.c index 3325f59..30aa62b 100644 --- a/xpp/xpp_usb.c +++ b/xpp/xpp_usb.c @@ -266,8 +266,9 @@ static int xusb_xframe_send(xbus_t *xbus, xframe_t *xframe) if(atomic_read(&xusb->pending_writes) > MAX_PENDING_WRITES) { static int rate_limit; - if((rate_limit++ % 1000) < 10) - ERR("%s: %s: more than %d pending writes. Dropping.\n", __FUNCTION__, xbus->busname, MAX_PENDING_WRITES); + if((rate_limit++ % 5000) == 0) + ERR("%s: %s: more than %d pending writes (%d). Dropping.\n", + __FUNCTION__, xbus->busname, MAX_PENDING_WRITES, rate_limit); ret = -ENODEV; goto freepack; } -- cgit v1.2.3