Bug 188780 - [ patch ] misc/dahdi-kmod: rc.d/dahdi start doesn't initialise properly
Summary: [ patch ] misc/dahdi-kmod: rc.d/dahdi start doesn't initialise properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Some People
Assignee: Max Khon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-19 01:30 UTC by Dan Lukes
Modified: 2015-03-21 19:26 UTC (History)
0 users

See Also:


Attachments
file.diff (402 bytes, patch)
2014-04-19 01:30 UTC, Dan Lukes
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Lukes 2014-04-19 01:30:00 UTC
	The startup script rc.d/dahdi will load required kernel modules then
call dahdi_cfg immediately in attempt to configure them

	Unfortunately, kernel's device probe and attach may take some time so 
dahdi_cfg may fail because device is not ready yet. 

	And when device become ready it doesn't work as it is not configured 
by dahdi_cfg

Fix: Give kernel module a few seconds to initialize hardware in full.

 --- patch begins here ---
How-To-Repeat: 	Observed with wct4xxp card and E1 line. Just try it.
Comment 1 Edwin Groothuis freebsd_committer 2014-04-19 01:30:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->fjoe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 commit-hook freebsd_committer 2015-03-21 19:23:50 UTC
A commit references this bug:

Author: fjoe
Date: Sat Mar 21 19:22:57 UTC 2015
New revision: 381820
URL: https://svnweb.freebsd.org/changeset/ports/381820

Log:
  Give kernel module a few seconds to initialize hardware before
  calling dahdi_cfg.

  PR:		188780
  Submitted by:	Dan Lukes

Changes:
  head/misc/dahdi-kmod/Makefile
  head/misc/dahdi-kmod/files/dahdi.in
Comment 3 commit-hook freebsd_committer 2015-03-21 19:24:52 UTC
A commit references this bug:

Author: fjoe
Date: Sat Mar 21 19:23:55 UTC 2015
New revision: 381821
URL: https://svnweb.freebsd.org/changeset/ports/381821

Log:
  Give kernel module a few seconds to initialize hardware before
  calling dahdi_cfg.

  PR:		188780
  Submitted by:	Dan Lukes

Changes:
  head/misc/dahdi-kmod26/files/dahdi.in
Comment 4 Max Khon freebsd_committer 2015-03-21 19:26:08 UTC
Fixed in dahdi-kmod-2.4.0rc5_7 and dahdi-kmod26-2.6.1.r10747_1