From patchwork Mon Sep 30 16:12:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 11166945 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A15F1599 for ; Mon, 30 Sep 2019 16:13:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FD732190F for ; Mon, 30 Sep 2019 16:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569860001; bh=tkgnB0UeLe80mGdWKb0STCoCS+rXk9Zusf7O1hJ1mCE=; h=From:To:Cc:Subject:Date:List-ID:From; b=PYPlbHsbgp2BeT6slw+hbkSxYXju56Z//GbCCOz06LSwWAf65cciSelJM2C8k3bKd bV/gYgOF1U5AnswzmAg2vIPnarrwFSFdoQkxUr7LyQIdQcWxLH9Bp742ijD73MCq0g tzQGgqdscYw3VLUPIikaWdHo4CFaahbMyUFLYmM4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732153AbfI3QM5 (ORCPT ); Mon, 30 Sep 2019 12:12:57 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35840 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731459AbfI3QM5 (ORCPT ); Mon, 30 Sep 2019 12:12:57 -0400 Received: by mail-lj1-f195.google.com with SMTP id v24so10126202ljj.3; Mon, 30 Sep 2019 09:12:55 -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=AHlZ2LOaSE7OHrbGjaVF2FEkUoJaJEmgh7aqAGxCpLE=; b=BgsVwWhxBobswAdNQ8Zvl9vF3NZywUBV13SqKtCC4puzNn52RWM+cnCO9kCYMOgh21 mBvqKv+e91DJCF3esURvn8BzXrdbjlac7hOaEhifhzfSU582VVKGqJM6xUUlF+RJbqO9 mVkhzDgC/KSfFpCh2qtg3LblfL6jOTlewbVHSSPFs02uLBEAnu1edDVepQF6CncsNV7O 3Zz03n9JqFMvAYSoAzvS0BFTUrtSKaVCO5ntvkOTmxX1T+cSM1q5mYBmuOqJmkV9g36M lI8L3oWlD8jBWiaaSiLNtyRlGafjjXYRGjc+YUKmxJ7X1PLs2rZ9dkiOCyOAy7rZU2Mt p/eQ== X-Gm-Message-State: APjAAAVVUI102W3sSUuNWpXNqOn4MWV3MImZ3U+yKjCmMN0G0GhLe+2n UBv230ELHwE0fdAn7nYw2EnyQeNn X-Google-Smtp-Source: APXvYqyn9GFzb7vPBX3mYtFnBb9YViKDiDhSa7YTEaDYzv0rMF3wYhamzXs2jYdFRN+OQ+l87OHL0w== X-Received: by 2002:a2e:1415:: with SMTP id u21mr13244044ljd.22.1569859974665; Mon, 30 Sep 2019 09:12:54 -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 k23sm3410962ljk.93.2019.09.30.09.12.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Sep 2019 09:12:53 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.92.2) (envelope-from ) id 1iEyIF-0004uM-BW; Mon, 30 Sep 2019 18:13:00 +0200 From: Johan Hovold To: Greg Kroah-Hartman , Mauro Carvalho Chehab Cc: Pete Zaitcev , Alan Stern , linux-media@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/4] USB: fix runtime PM after driver unbind Date: Mon, 30 Sep 2019 18:12:01 +0200 Message-Id: <20190930161205.18803-1-johan@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org A recent change in USB core broke runtime-PM after driver unbind in several drivers (when counting all USB serial drivers). Specifically, drivers which took care not modify the runtime-PM usage counter after their disconnect callback had returned, would now fail to be suspended when a driver is later bound. I guess Greg could take all of these directly through his tree, unless the media maintainers disagree. Johan Johan Hovold (4): USB: usb-skeleton: fix runtime PM after driver unbind USB: usblp: fix runtime PM after driver unbind USB: serial: fix runtime PM after driver unbind media: stkwebcam: fix runtime PM after driver unbind drivers/media/usb/stkwebcam/stk-webcam.c | 3 +-- drivers/usb/class/usblp.c | 8 +++++--- drivers/usb/serial/usb-serial.c | 5 +---- drivers/usb/usb-skeleton.c | 8 +++----- 4 files changed, 10 insertions(+), 14 deletions(-) Acked-by: Mauro Carvalho Chehab