NetBSD Problem Report #49814

From cjb@brushtail.apana.org.au  Sun Apr  5 04:52:15 2015
Return-Path: <cjb@brushtail.apana.org.au>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 91087A65B0
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 Apr 2015 04:52:15 +0000 (UTC)
Message-Id: <20150405034949.E683D48F985@brushtail.apana.org.au>
Date: Sun,  5 Apr 2015 13:49:49 +1000 (AEST)
From: cjb@brushtail.apana.org.au
Reply-To: cjb@brushtail.apana.org.au
To: gnats-bugs@netbsd.org
Subject: USB Quirk for Texas Instrument MSP430 FET programmer
X-Send-Pr-Version: 3.95

>Number:         49814
>Category:       kern
>Synopsis:       A fix to prevent the MSP430 Launchpad being detected as a HID
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 05 04:55:00 +0000 2015
>Closed-Date:    Tue Jan 31 23:59:27 +0000 2023
>Last-Modified:  Wed Feb 01 00:15:02 +0000 2023
>Originator:     Chris Baird
>Release:        NetBSD 7.99.9 snapshot 20150405
>Organization:
World Wide Weasels
>Environment:
System: NetBSD brushtail 7.99.9 NetBSD 7.99.9 (BRUSHTAIL) #599: Sun Apr 5 12:29:00 AEST 2015 cjb@brushtail:/root/Brushtail amd64
Architecture: x86_64
Machine: amd64
>Description:

The USB debugging interface of the Texas Instrument MSP430 Launchpad
evalutation board is detected and attached as a USB HID device, which
is incorrect, and interferes with utilities such as mspdebug.

Applying this fix allows (the unknown to pkgsrc) mspdebug-0.22 to
work on NetBSD as-is, and puts my Raspbian Raspberry Pi out of a job
as an MSP430 programming platform.

Also, Texas Instruments not been bought out by Intel as yet...

>How-To-Repeat:
dmesg output on attaching a Launchpad mcu eval board:

uhidev2 at uhub1 port 1 configuration 1 interface 1
uhidev2: Texas Instruments Texas Instruments MSP-FET430UIF, rev 1.10/1.00, addr 2, iclass 3/0
uhidev2: 211 report ids
uhid3 at uhidev2 reportid 1: input=1, output=1, feature=0
uhid4 at uhidev2 reportid 2: input=2, output=2, feature=0
uhid5 at uhidev2 reportid 3: input=3, output=3, feature=0
[...]
uhid28 at uhidev2 reportid 205: input=0, output=0, feature=1
uhid29 at uhidev2 reportid 210: input=0, output=0, feature=1
uhid30 at uhidev2 reportid 211: input=0, output=0, feature=1

Attempting to use mspdebug (that's already supporting OpenBSD) reports
not being able to locate the device.

>Fix:

Index: dev/usb/usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.693
diff -r1.693 usbdevs
3175c3175
< /* Texas Intel products */
---
> /* Texas Instruments products */
3178a3179,3181
> product TI TUSB3410           0x3410  TUSB3410
> product TI MSP430_JTAG                0xf430  MSP-FET430UIF JTAG
> product TI MSP430             0xf432  MSP-FET430UIF


Index: dev/usb/usb_quirks.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.82
diff -r1.82 usb_quirks.c
70a71
>  { USB_VENDOR_TI, USB_PRODUCT_TI_MSP430,            ANY,   { UQ_HID_IGNORE }},


>Release-Note:

>Audit-Trail:
From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49814 CVS commit: src/sys/dev/usb
Date: Sun, 5 Apr 2015 09:18:13 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Sun Apr  5 09:18:13 UTC 2015

 Modified Files:
 	src/sys/dev/usb: usbdevs

 Log Message:
 More Texas Instruments (not Texas Intel) products.

 Part of PR/49814


 To generate a diff of this commit:
 cvs rdiff -u -r1.694 -r1.695 src/sys/dev/usb/usbdevs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49814 CVS commit: src/sys/dev/usb
Date: Sun, 5 Apr 2015 09:24:21 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Sun Apr  5 09:24:21 UTC 2015

 Modified Files:
 	src/sys/dev/usb: usb_quirks.c

 Log Message:
 PR/49814: USB Quirk for Texas Instrument MSP430 FET programmer


 To generate a diff of this commit:
 cvs rdiff -u -r1.82 -r1.83 src/sys/dev/usb/usb_quirks.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 16 Jun 2018 23:49:31 +0000
State-Changed-Why:
Did this get fixed?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 31 Jan 2023 23:59:27 +0000
State-Changed-Why:
Looks like all the patches got committed, no feedback since 2018


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/49814 (A fix to prevent the MSP430 Launchpad being detected
 as a HID)
Date: Wed, 1 Feb 2023 00:12:14 +0000

 On Tue, Jan 31, 2023 at 11:59:28PM +0000, dholland@NetBSD.org wrote:
  > Synopsis: A fix to prevent the MSP430 Launchpad being detected as a HID
  > 
  > State-Changed-From-To: feedback->closed
  > State-Changed-By: dholland@NetBSD.org
  > State-Changed-When: Tue, 31 Jan 2023 23:59:27 +0000
  > State-Changed-Why:
  > Looks like all the patches got committed, no feedback since 2018

 Wrong: apparently the submitter emailed me shortly after the feedback
 request happened, and I never saw it in my inbox. Sigh.

 It is fixed.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.