Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp681605ybg; Wed, 3 Jun 2020 10:44:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNxKe6M0HR/9p7ErY1azmulWOV1wJXD5CuxC7hQWvfwrYTP6yaW5tiPS6abGOoo2FpAOLM X-Received: by 2002:aa7:d613:: with SMTP id c19mr505658edr.321.1591206299544; Wed, 03 Jun 2020 10:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591206299; cv=none; d=google.com; s=arc-20160816; b=iCgZSqcGmfazdSq7WrEQhZCfio6zkWoxAIeHiNvx6NW+K05RHDhkShvhOXLKb2T8d8 3mIh3tgnXhsiU/4GQQnvRUNoW9LIIBAajQyL2721RvzeEQuw4p40DVvQSUOnc0fNxKAp p6ydPksxXut/xM6ECtB1tJfsKdqDsurgviXcQmKoGel35L8jas0NgoVb7VXJamwKXwHh scTlrLk6g0xMIrQBLT8H4Uz+pQSgyqSBwQA3iuDiLeM8sZ4JUIzEetbpuL+j6KX8+USa qhy1BZ8z+9Zhwf5OkPSFL+dIMVujgJmUxvra2m1cX2rSGqGCU2r/W2EjrCTJqv0i9/Bc RFxg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=RiYI0t+KrBvaJgMcqUi2332VvHKyX88P2wlQysjVLXM=; b=q+5kOzDWxiyl6Ob2+NvhRk1E6ijRzxf1hbtD5Vi3OVjC9BbOEjbJgcesqET3fEV4M8 GtCpbZwAWnOo+sS4n+5oRxYoGDNB9E1V3yQ/QruFjhxLtIOC8x6D7LbbGURcoNQJGnca aCssgVP8gdNj0lu6OMHracjUxAw6W3VSmAUS7EkohI+w3aCAOaG13UTCNGB3RJfIk97L 67SN87vq74aO8RaBXuA+T3RoWlLh9rWaauVqbLoLzREycY1UOjwzBKttEg06RvN/O0YK a079RmWITP5qNjcdcuxw5rdlovZru1jq1k9O8npHwcXMljxp9YZ3FsjwF/uDiloNux67 jGrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=gk244yjd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si142454edu.182.2020.06.03.10.44.36; Wed, 03 Jun 2020 10:44:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=gk244yjd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbgFCRms (ORCPT + 99 others); Wed, 3 Jun 2020 13:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbgFCRmq (ORCPT ); Wed, 3 Jun 2020 13:42:46 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27BACC08C5C0 for ; Wed, 3 Jun 2020 10:33:31 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id j12so1856693lfh.0 for ; Wed, 03 Jun 2020 10:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RiYI0t+KrBvaJgMcqUi2332VvHKyX88P2wlQysjVLXM=; b=gk244yjdaq9AeMPc0x74cYRwy2EEkQH/A2o2vAvYivtoPifzXZ4zIPTJxNnt6AEms3 lnpu4id+cI4xfoV50YJ3gBY/KHwO5czVFEAW3yZvg2XLVI0C+9X1+Ckei58TxH5yrgfU PF13oW+pEFgFc9YI47rXwqVQRStTEWiZL8fC7FVTh8rSr0KJdluA2FI89xLVmbfQ+NEW wlgPHeXOEVwRUcFUMyqo37mmdKmoeKXeGMAoiKXHwA/4WYa5strDvITPRW9Rem2vUDvL zNBIpLEJlrIhR0I1My/Ub2bW9Sw0qyMOt/HBDths765G9kyJoGaQBb+35SazRc8zZLjg m+LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RiYI0t+KrBvaJgMcqUi2332VvHKyX88P2wlQysjVLXM=; b=WhNf2uH+FRGKAwHj9wPL56tx6nFivDR9FFoGBVMYulRijweWUJ8dZYea3IpxhRL+T9 fLdE6w0yQlhiEU1pGSPQ8z0QcHG/JgJQimPhyShrEyM4MTfqgncOVLE2q6JWYi589rVg b0VER97T8t8vqF30E7YTqfcq1b6TAvln1OCVKGTce2ZXi0j75zKrhVCmVAFAPoSOWbLf /DYEEVYAyprLdBdZekx4Wvglg1bWlOCSU4sus4L6SS6HF0v3jrFiDul56iq0JI0+23fL g6YW/VEUYFtjvrJ35XyIXwv+JMlgIpCE3LbdBp6XOd1TBrv86N+3xsUyghC+SQVu8mnN MJ3g== X-Gm-Message-State: AOAM532PYzQGfnHrXu8DGJyBVeYMyO1G1T4a1n+wkf3rDUTgUOti0Zoo Gk5E3r+s7i+A8qzkinWP+RfsWQ== X-Received: by 2002:ac2:489a:: with SMTP id x26mr297287lfc.111.1591205609563; Wed, 03 Jun 2020 10:33:29 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:448d:774a:2057:6699:2c75:847d? ([2a00:1fa0:448d:774a:2057:6699:2c75:847d]) by smtp.gmail.com with ESMTPSA id q8sm815921lfo.13.2020.06.03.10.33.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jun 2020 10:33:28 -0700 (PDT) Subject: Re: [PATCH v3] usb: host: xhci-mtk: avoid runtime suspend when removing hcd To: Macpaul Lin , Chunfeng Yun , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , stable@vger.kernel.org Cc: Mediatek WSD Upstream , Macpaul Lin , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-mediatek@lists.infradead.org References: <1591189767-21988-1-git-send-email-macpaul.lin@mediatek.com> From: Sergei Shtylyov Message-ID: Date: Wed, 3 Jun 2020 20:33:24 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <1591189767-21988-1-git-send-email-macpaul.lin@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. On 03.06.2020 16:09, Macpaul Lin wrote: > When runtime suspend was enabled, runtime suspend might happened Happen. > when xhci is removing hcd. This might cause kernel panic when hcd > has been freed but runtime pm suspend related handle need to > reference it. > > Signed-off-by: Macpaul Lin > Reviewed-by: Chunfeng Yun [...] MBR, Sergei