Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=eajames@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44gkHB3kcszDqT3 for ; Sat, 13 Apr 2019 02:43:33 +1000 (AEST) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3CGdxdj055414 for ; Fri, 12 Apr 2019 12:43:31 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rtusdfmhr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 12 Apr 2019 12:43:30 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 12 Apr 2019 17:43:29 +0100 Received: from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 12 Apr 2019 17:43:26 +0100 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3CGhPS027197570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Apr 2019 16:43:25 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 61B32C6055; Fri, 12 Apr 2019 16:43:25 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E78CEC6059; Fri, 12 Apr 2019 16:43:24 +0000 (GMT) Received: from [9.80.204.35] (unknown [9.80.204.35]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 12 Apr 2019 16:43:24 +0000 (GMT) Subject: Re: USB Gadget Vendor ID To: Adriana Kobylak Cc: openbmc@lists.ozlabs.org References: <213010e1dd547165f8f56ee672c832fa@linux.vnet.ibm.com> <3d670716e684620dfcce63d0f5d50ad1@linux.vnet.ibm.com> From: Eddie James Date: Fri, 12 Apr 2019 11:43:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <3d670716e684620dfcce63d0f5d50ad1@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 19041216-0012-0000-0000-0000172637A0 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010914; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000284; SDB=6.01188087; UDB=6.00622381; IPR=6.00968854; MB=3.00026412; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-12 16:43:28 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19041216-0013-0000-0000-000056D86ADB Message-Id: <373cf9aa-3091-ae4f-0c38-594947613e83@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-12_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904120111 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2019 16:43:35 -0000 On 4/12/19 10:52 AM, Adriana Kobylak wrote: > On 2019-04-12 10:24, Eddie James wrote: >> On 4/12/19 10:17 AM, Adriana Kobylak wrote: >>> Hi Eddie, >>> >>> I have a script to initialize the USB gadget for Virtual Media and >>> there was a comment that the Vendor ID should be provided by the >>> Linux Foundation - >>> https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/17494 . >>> >>> In your ikvm script you use a Vendor ID with the comment "Linux >>> Foundation" - >>> https://github.com/openbmc/obmc-ikvm/blob/fb6a8e1e727a8ece5eb0350d3962dd3056a6f608/create_usbhid.sh#L18 >>> >>> Is this an ID that came from the LF, and if so could I use it in my >>> script? >> >> >> Hi, >> >> Since OpenBMC is a LF project, I just used their vendor ID... and I >> just invented a serial number. This might not be the proper way to do >> it... Since the devices are virtual, I'm not sure anyone will care >> though? >> >> > Thanks that helps. Forgot to ask about the the product id (echo 0x0104 > > idProduct # Multifunction Composite Gadget), is it also a LF number > or documented somewhere? Yes, here's the list I was using: http://www.linux-usb.org/usb.ids > >>> >>> As a side question, were there any discussions about the serial >>> number value in the ikvm script? I have a similar hard-coded value >>> for the virtual media one but there were questions in the review >>> about how useful could it be having a non-generated value and to >>> have it removed instead. >> >> >> I think there were similar comments about the serial number but in the >> end it was decided to worry about it later I think. >> >> Thanks, Eddie >