summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2008-08-03Do use printk-s without a priority when continuing previous printk.Tzafrir Cohen
Also remove a small duplication in dahdi-base.c, as I'm too lazy to fix in two separate places. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4688 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Strip trailing whitespaceRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4686 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Change all instances of printk in DAHDI to include a priorityRussell Bryant
(closes issue #11504) Reported by: tzafrir Patches: 20080717__issue11504_dahdi_printk_without_priority.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4685 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03reduce indentation and tweak formatting of a for loop in proc_readRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4684 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Get rid of dahdi_rxsig_t typedefRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4682 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Get rid of another typedef, sf_detect_state_t, and fix referencesRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4681 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Fix a couple last references to dahdi_txsig_t.Russell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4680 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Rework the table of signalling bits for signalling types and hook statesRussell Bryant
in dahdi_rbs_sethook() to a much more readable and less error prone format. In passing, get rid of the dahdi_txsig_t typedef, and fix uses of it throughout the tree. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4679 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03 - Formatting changes to better conform to guidelinesRussell Bryant
- tweak hw_echocan_on to reduce indentation and use an initializer instead of memset git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4677 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Convert dahdi timers to a kernel list instead of an open coded listRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4675 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Rework free_tone_zone a bit to avoid a potential memory leak in a weird ↵Russell Bryant
scenario. It was theoretically possible that a zone was registered after we removed a zone, but before we tried to put it back after determining that it was busy. If this occurred, then when putting the zone back, we would overwrite the reference to the newly created zone, leaking the associated memory. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4673 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - use C99 instead of GNU initializersRussell Bryant
- adding spaces and braces according to guidelines - use for loop instead of a while loop for open coded list traversal - reduce some indentation git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4672 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Use C99 instead of GNU style initializersRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4671 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - simplify some code using ARRAY_SIZERussell Bryant
- don't put multiple statements on the same line git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4669 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Update copyright, and fix a typo in some HDLC code that I wasn't buildingRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4668 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - Define kzalloc() for kernel versions that don't have itRussell Bryant
- Use kzalloc instead of kmalloc+memset - formatting tweaks to better conform to coding guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4667 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02kzalloc was introduced in later versions of 2.6, so use kcalloc insteadRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4665 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02- align case with switchRussell Bryant
- constify return of sigstr() - rework implementation of fill_alarm_string to only use one call to snprintf() and avoid more complicated string building logic git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4664 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02- use kzalloc instead of kmalloc+memsetRussell Bryant
- reformat dahdi_q_sig to match proper coding guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4662 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02convert a list of defines to an enumRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4657 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Space out the definition of an enum, and remove an unused typedefRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4655 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01use correct logic to handle a slave channel being removed from a master ↵Kevin P. Fleming
channel, so if the master channel itself is not reconfigured it will still end up properly linking to any remaining slaves (closes issue #11611) Reported by: richvdh Tested by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4653 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01fix a couple of places where the driver assumed 4 spans were present on the cardKevin P. Fleming
(closes issue #13141) Reported by: pabelanger git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4651 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01make skb_linearize() work for kernels <= 2.6.17 tooKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4648 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01fix problem accepting non-linearized skbs from NIC driversKevin P. Fleming
(closes issue #13204) Reported by: biohumanoid Patches: ztd-eth.c.patch uploaded by biohumanoid (license 459) (modified by me to actually apply to DAHDI) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4643 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-31would help if we didn't copy a NULL pointer and then try to dereference it...Kevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4641 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-29make an initial split of dahdi/kernel.h into userspace- and ↵Kevin P. Fleming
kernelspace-specific parts git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4628 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-22from r4429 of zaptel... make battery loss to red alarm translation actually workKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4624 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-21Fixed typo where chan is cleared out accidentally.Shaun Ruffell
(Related to issue #0013112) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4618 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-09Undoing accidental commit to the trunk of dahdi/linux.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4590 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-09Saving off some work in progress on half-full buffering. Still needs a methodShaun Ruffell
for dumping half the buffer on tx overrun from the user side. Also, the behavior of half-full on the rx side has not been checked. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4589 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-09Revert optimization done in rev 4436 which broke the MTP2 signalling type.Matthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4582 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07wc->chans needs to be an array of pointers as struct dahdi_span expects.Shaun Ruffell
(Related to issue 0012657) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4567 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07the initialization of wc->chans was done using NUM_CARDS in wc->cards, but ↵Kevin P. Fleming
then later wc->cards was (possibly) reduced to the actual number of cards present, so we have to check every possible slot in wc->chans for structures to free git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4563 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07Fix accidental zeroing out of the chans member of struct wctdm.Shaun Ruffell
DAHDI-156 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4559 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07wctdm_initialize expects the channels to already be allocated.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4558 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-07Default ring debounce timer should be higher to properly catch calleridMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4555 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-06Fix yet another surviving place with CONFIG_ZAPATA_BRI_DCHANS .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4548 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02fix typoKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4530 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02perform an explicit check for the destination directories for hotplug ↵Kevin P. Fleming
firmware, and issue an error message if neither of them can be found git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4529 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02fix a problem found by the kernel 2.6.26 build process (this function is ↵Kevin P. Fleming
called from other contexts besides __exit context so it cannot be in the __exit section) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4523 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02Linux kernel 2.6.26 is going to change the sysfs registration/destruction ↵Kevin P. Fleming
methods (again), so be prepared for it (closes issue #12944) Reported by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4522 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02fix up the last few drivers for the new single-allocation channel changesKevin P. Fleming
(related to issue #12657) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4521 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02Only set the XSP registers from a single place.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4518 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02Minor fixes following r4513:Tzafrir Cohen
* Convert card_bri as well. * memset each channel separately. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4517 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02fix remaining drivers broken by pointer type change in 'struct ↵Kevin P. Fleming
dahdi_span'... wctdm24xxp still broken, will fix in a couple of hours (related to issue #12657) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4514 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02break up large memory allocations made by digital span drivers into smaller ↵Kevin P. Fleming
ones (one allocation for each dahdi_chan structure, separate from any private structures used by the driver) (closes issue #12657) Reported by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4513 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02Remove unneeded case for #ifdef DAHDI_SPANSTAT_V2 - Tzafrir Cohen
this is always the case for dahdi. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4509 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-02there is no need for the top-level Makefile to be involved in the kernel's ↵Kevin P. Fleming
build process, and removing it gets the modules installed into the proper directories in /lib/modules git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4506 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-01Fixes a problem where the first invocation of 'make install' will not downloadSean Bright
dahdi-fw-oct6114-128 and subsequently fails on install. This may be a bug in GNU Make 3.81 as both the reporter and I are running the same version and experiencing the same issue. (closes issue #12967) Reported by: dimas Patches: 0012967.patch uploaded by seanbright (license 71) Tested by: dimas git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4490 a0bf4364-ded3-4de4-8d8a-66a801d63aff