From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7978C432C2 for ; Thu, 26 Sep 2019 09:12:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85290222C4 for ; Thu, 26 Sep 2019 09:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569489170; bh=j0jrKzFqpWumaiKuhJHnO4PSobs8fAoRgMVrUgqT7yg=; h=From:To:Cc:Subject:Date:List-ID:From; b=FbzV98F7SXM3Jz7hmf8fFEXPxwU7f0MCPyrU7azV6/ka2au83Wl2vx7kwLKrp2dwV 0gfhJt40dS6MjXo7b3Hxh5Lqzs+3YFWLyuD6vsJfG9EaEwW0ism27P4AsPhrttlWWx K5PMC+hYXbSHnhgeQNSfpNdUt6q7AFi7eAyVn224= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730187AbfIZJMt (ORCPT ); Thu, 26 Sep 2019 05:12:49 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34322 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729151AbfIZJMt (ORCPT ); Thu, 26 Sep 2019 05:12:49 -0400 Received: by mail-lf1-f67.google.com with SMTP id r22so1142275lfm.1 for ; Thu, 26 Sep 2019 02:12:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=86zRUVfrv1gM2heltfetGcfT+aUYDu+euELROz6td7U=; b=gMaWk1GvBUWgoYI6Yjg1vpvld9zgCaIh+mVWhrr8QpPrJqGEuNDZcMKU5peApkpEh1 TiodHnZ/EfMkXpZuSfr1dOK0YWetDjelk4oOATOutmKswHIiB4EMx7uW8lsYZj0jiZCt AyPpxsZFf3VCPqRp1623CG1oUs5u2zL4ZQafhR5MHi+Rnbkj7qGtojE9JMzyIdV+IkGK SQAR5VgrzFLY3JyL8tRyE4cbdMZQdjrUP6hOnpD8GrUACB3VKCSXt9/nNhwjZL/VF2zL ha+nCvImKIEdRzaC8nqfKJcJW2ItvgnzWeq4KOBMils9iNvYW7yTWWYTM1MpBxNb9lz/ g0UA== X-Gm-Message-State: APjAAAUNQCzx0fSrf+Cv9aJtRCYkj0XcYsDJYCKjsIeZm4xb2T9sWu/Y 2auDgOo5Av62Zt0x+9uRfvIu9SQi X-Google-Smtp-Source: APXvYqzAOIghS/STMlMLy1e3AXwHMH1hUTLl/WMh46o35BnARMLebIINWKKLWRZLrpJrE1vGoU8LLA== X-Received: by 2002:ac2:4adb:: with SMTP id m27mr1511061lfp.1.1569489165575; Thu, 26 Sep 2019 02:12:45 -0700 (PDT) Received: from xi.terra (c-51f1e055.07-184-6d6c6d4.bbcust.telenor.se. [85.224.241.81]) by smtp.gmail.com with ESMTPSA id p86sm365343lja.100.2019.09.26.02.12.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 02:12:43 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.92.2) (envelope-from ) id 1iDPpQ-0006QO-Vd; Thu, 26 Sep 2019 11:12:49 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, Johan Hovold Subject: [PATCH 0/4] USB: usblcd: disconnect fix and locking clean ups Date: Thu, 26 Sep 2019 11:12:19 +0200 Message-Id: <20190926091228.24634-1-johan@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This series fixes a failure to stop I/O on disconnect() in the usblcd driver. Turns out there was a lot of legacy cruft in this driver which could simply be removed. The first patch is marked for stable and could go into v5.4 while the rest is v5.5 material. Posting all at once for completeness. I was tempted to rip out the custom ioctls() used to retrieve the driver version and bcdDevice (sic!), but decided to leave them in. I doubt anyone would miss them though so perhaps we should give it a go? Tested using a mockup device. Johan Johan Hovold (4): USB: usblcd: fix I/O after disconnect USB: usblcd: drop redundant disconnect mutex USB: usblcd: drop redundant lcd mutex USB: usblcd: use pr_err() drivers/usb/misc/usblcd.c | 60 +++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 27 deletions(-) -- 2.23.0