Bug 19256

Summary: in devicedriver cy.c make_dev (..) problem's occur using 2 or more cy boards
Product: Base System Reporter: arjan <arjan>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description arjan 2000-06-14 08:40:01 UTC
The Cylcom YeP device driver has a problem with registering the devices for the second and futher boards
Either the MAKEDEV script or the syscalls to 'make_dev (..)' in cy.c should be changed.

Fix: 

the second arg in make_dev should be something like this :
( adapter * 65536 + ( unit % CY_MAX_PORTS ) )
How-To-Repeat: Just install more than one YeP board and rebuild a kernel supporting both board. Try to connect to a port on the second board.
example : cu -l /dev/cuac10
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 04:17:05 UTC
State Changed
From-To: open->feedback


Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE?
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-07-23 00:39:23 UTC
State Changed
From-To: feedback->suspended


Still a problem.  Awaiting fix and committer.
Comment 3 Mike Barcroft freebsd_committer freebsd_triage 2001-07-23 00:39:30 UTC
Adding to Audit-Trail.

----- Forwarded message from Arjan Knepper <arjan@jak.nl> -----

Delivered-To: mike@freebsd.org
Date:   Mon, 23 Jul 2001 00:17:13 +0200
From: Arjan Knepper <arjan@jak.nl>
Organization: JAK++ Software Development B.V.
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
To: mike@FreeBSD.org
Cc: freebsd-bugs@FreeBSD.org
Subject: Re: kern/19256: in devicedriver cy.c  make_dev (..) problem's occur 
 using 2 or more cy boards

mike@FreeBSD.org wrote:

> Synopsis: in devicedriver cy.c  make_dev (..) problem's occur using 2 or more cy boards
>
> State-Changed-From-To: open->feedback
> State-Changed-By: mike
> State-Changed-When: Sat Jul 21 20:17:05 PDT 2001
> State-Changed-Why:
>
> Does this problem still occur in newer versions of FreeBSD,
> such as 4.3-RELEASE?

I still had to change the lines in the cy driver the last time I updated the particular
systems to 4.3 stable about 2 weeks ago, so I guess the answer is YES.

>
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19256


----- End forwarded message -----
Comment 4 Bruce Evans freebsd_committer freebsd_triage 2001-08-22 14:07:02 UTC
State Changed
From-To: suspended->closed

Fixed in rev.1.120 (-current) and rev.1.197.2.2 (RELENG_4) of cy.c.