Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1189425ybf; Thu, 27 Feb 2020 06:33:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwUL70203e7yZMKIPNBTRPodnH54CTGG9oXixZ25h99uZXW89maJPJIZ9Hi4ZMcOpgg3Uy9 X-Received: by 2002:a9d:7d9a:: with SMTP id j26mr3418518otn.21.1582813986140; Thu, 27 Feb 2020 06:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582813986; cv=none; d=google.com; s=arc-20160816; b=D0h63G69mLFimy/MblIgQkUubQ9F8IfrEswCjUviB1H8snvq0tIvHGof9c79WiRZdu muZv3bhnHG+yiBqAtH1ReAptUQ+y1dV9n5gt43Xzl8mfod9cLTP1Tl2yYgLRSr9wSi+G WFaSSX7Zhqd+fcw7oysyiEUsR+XnCPe36tbbIYMk04tK/4mXLpg0z0aLNQnvQha4f3pv suiKIInR1FFPUFemQuniyovOmdfFm81BgIaAmIUzKAlOaRBWN13Y64cpyVuJWBgjC7Qf fEPhea/lmewUlGtSOnF0sUSxcMsSsxx1bw7vLrQIwS8Az1axUBPy0b5LnIbYF34eijFz kK9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o9da86MAFFO1W+QppT9LgUyvk50xOu32N8OzHd394jk=; b=hCGFDuW+Yy9YEDjI/CI3u5GuoQjPE3fSeMaNQJR+yT/Op8cTitf6LBhEIygZvularT p3UxrqR42Q42nDGAvb6jnYIShDm/qkljCNeP7bBljoY8oy4+qRtWwzla1TdoS5tN1Yut 8oEct6rvyS8ag9LHCtTE9jyF5akd+Ol/K4SIqZqoFKRMEOEVPJRUINhLoK6as1oC5Zul YN7IN/RmD/1TaWjLW99LwUxW5yQBG7DYhEo9Q38BHJ94unGGxe4UA2+j8qcs739RTrMD YoMb6szvm1BmQuUPJ/UvPwv/GcHPZggACLu6L3WJR9dcY+OHHDZ5TARHmXXhPBEtkOjG AI1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZQt+T61D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k205si1354957oib.64.2020.02.27.06.32.53; Thu, 27 Feb 2020 06:33:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZQt+T61D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733198AbgB0OCq (ORCPT + 99 others); Thu, 27 Feb 2020 09:02:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:37540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733188AbgB0OCp (ORCPT ); Thu, 27 Feb 2020 09:02:45 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D08221556; Thu, 27 Feb 2020 14:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582812164; bh=SE3ZIrQ6TFTBLuugNMM70YTNIDDZ0MjWbN4LcPCJ7as=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZQt+T61Di2m6TGEgv6i1KtDwzEqSeBXirWao3BG3kHYp1ZfD/p3w4ksuZ5D2d9hgj Iz+OkQa5N11+1AS6fGQB+cF7C9OvWPAZi0mhnJfVGRutjplzXSqSWbYbuAf09ICBPk UVi/p1A3reiEOR6fw4D3K8mceKwXyIYRErlPn1Ww= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Jung Subject: [PATCH 4.19 10/97] USB: misc: iowarrior: add support for the 28 and 28L devices Date: Thu, 27 Feb 2020 14:36:18 +0100 Message-Id: <20200227132216.257444795@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200227132214.553656188@linuxfoundation.org> References: <20200227132214.553656188@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman commit 5f6f8da2d7b5a431d3f391d0d73ace8edfb42af7 upstream. Add new device ids for the 28 and 28L devices. These have 4 interfaces instead of 2, but the driver binds the same, so the driver changes are minimal. Cc: Christoph Jung Cc: stable Link: https://lore.kernel.org/r/20200212040422.2991-2-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/iowarrior.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c @@ -33,6 +33,9 @@ #define USB_DEVICE_ID_CODEMERCS_IOWPV2 0x1512 /* full speed iowarrior */ #define USB_DEVICE_ID_CODEMERCS_IOW56 0x1503 +/* fuller speed iowarrior */ +#define USB_DEVICE_ID_CODEMERCS_IOW28 0x1504 +#define USB_DEVICE_ID_CODEMERCS_IOW28L 0x1505 /* OEMed devices */ #define USB_DEVICE_ID_CODEMERCS_IOW24SAG 0x158a @@ -143,6 +146,8 @@ static const struct usb_device_id iowarr {USB_DEVICE(USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW56)}, {USB_DEVICE(USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW24SAG)}, {USB_DEVICE(USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW56AM)}, + {USB_DEVICE(USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW28)}, + {USB_DEVICE(USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW28L)}, {} /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, iowarrior_ids); @@ -383,6 +388,8 @@ static ssize_t iowarrior_write(struct fi break; case USB_DEVICE_ID_CODEMERCS_IOW56: case USB_DEVICE_ID_CODEMERCS_IOW56AM: + case USB_DEVICE_ID_CODEMERCS_IOW28: + case USB_DEVICE_ID_CODEMERCS_IOW28L: /* The IOW56 uses asynchronous IO and more urbs */ if (atomic_read(&dev->write_busy) == MAX_WRITES_IN_FLIGHT) { /* Wait until we are below the limit for submitted urbs */ @@ -792,7 +799,9 @@ static int iowarrior_probe(struct usb_in } if ((dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56) || - (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56AM)) { + (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56AM) || + (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW28) || + (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW28L)) { res = usb_find_last_int_out_endpoint(iface_desc, &dev->int_out_endpoint); if (res) { @@ -806,7 +815,9 @@ static int iowarrior_probe(struct usb_in dev->report_size = usb_endpoint_maxp(dev->int_in_endpoint); if ((dev->interface->cur_altsetting->desc.bInterfaceNumber == 0) && ((dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56) || - (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56AM))) + (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56AM) || + (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW28) || + (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW28L))) /* IOWarrior56 has wMaxPacketSize different from report size */ dev->report_size = 7;