From owner-svn-src-stable@freebsd.org Sat Mar 18 23:59:52 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12D6DD1290F; Sat, 18 Mar 2017 23:59:52 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D37E6125B; Sat, 18 Mar 2017 23:59:51 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2INxoY8006098; Sat, 18 Mar 2017 23:59:50 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2INxomF006096; Sat, 18 Mar 2017 23:59:50 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201703182359.v2INxomF006096@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Sat, 18 Mar 2017 23:59:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315521 - stable/11/sys/cam/ctl X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Mar 2017 23:59:52 -0000 Author: trasz Date: Sat Mar 18 23:59:50 2017 New Revision: 315521 URL: https://svnweb.freebsd.org/changeset/base/315521 Log: MFC r312622: Add SCSI descriptors for USB Mass Storage. Sponsored by: The FreeBSD Foundation Modified: stable/11/sys/cam/ctl/ctl.c stable/11/sys/cam/ctl/ctl.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/cam/ctl/ctl.c ============================================================================== --- stable/11/sys/cam/ctl/ctl.c Sat Mar 18 23:57:47 2017 (r315520) +++ stable/11/sys/cam/ctl/ctl.c Sat Mar 18 23:59:50 2017 (r315521) @@ -10102,6 +10102,9 @@ ctl_inquiry_std(struct ctl_scsiio *ctsio } else if (port_type == CTL_PORT_SAS) { /* SAS (no version claimed) */ scsi_ulto2b(0x0BE0, inq_ptr->version3); + } else if (port_type == CTL_PORT_UMASS) { + /* USB Mass Storage Class Bulk-Only Transport, Revision 1.0 */ + scsi_ulto2b(0x1730, inq_ptr->version3); } if (lun == NULL) { Modified: stable/11/sys/cam/ctl/ctl.h ============================================================================== --- stable/11/sys/cam/ctl/ctl.h Sat Mar 18 23:57:47 2017 (r315520) +++ stable/11/sys/cam/ctl/ctl.h Sat Mar 18 23:59:50 2017 (r315521) @@ -53,6 +53,7 @@ typedef enum { CTL_PORT_INTERNAL = 0x08, CTL_PORT_ISCSI = 0x10, CTL_PORT_SAS = 0x20, + CTL_PORT_UMASS = 0x40, CTL_PORT_ALL = 0xff, CTL_PORT_ISC = 0x100 // FC port for inter-shelf communication } ctl_port_type;