From patchwork Wed Apr 1 16:17:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 228475 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 C274EC2D0F0 for ; Wed, 1 Apr 2020 16:29:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58823212CC for ; Wed, 1 Apr 2020 16:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758579; bh=6nJ3X+Xe0Q7+B4viy3y2JJP90Gl2H3Wk9z+ds7EAw+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=A76Ajxu/j/uq5bwl33Ri6EH4919Xhr8K//4lK7BY8/Ii7gSFNQpl0+D3Wzj9ndLvX V3GKtr422SeRCeKAfT5e2PnUvhDy9Ylvv6BKfGCkePIVYWL5kgsMClSXIsZgsMZw0m NmdTAFv9Jl/5BJ8LLr4PkORyA09ngFSk+/yHfS7A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387963AbgDAQ3d (ORCPT ); Wed, 1 Apr 2020 12:29:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:55106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387909AbgDAQ3c (ORCPT ); Wed, 1 Apr 2020 12:29:32 -0400 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 13B5F2063A; Wed, 1 Apr 2020 16:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758572; bh=6nJ3X+Xe0Q7+B4viy3y2JJP90Gl2H3Wk9z+ds7EAw+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WM15C80elXV3KSDehnk87wrBkenr6oBA9+zGnnKCdbaxK7+4NQtf+iFnpEczwUE7T Wq5pgUSIVe1CUxVr7BFVh+ypV70JPC+SisT35SCyCQwLKtWjtEpLPFMI9YId9BE76i dygtiBwpkRq7QpJRPEQ13mYh7471cGBp5TPrX2Eg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ran Wang , Stephen Boyd , Peter Chen Subject: [PATCH 4.4 11/91] usb: host: xhci-plat: add a shutdown Date: Wed, 1 Apr 2020 18:17:07 +0200 Message-Id: <20200401161517.078410391@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161512.917494101@linuxfoundation.org> References: <20200401161512.917494101@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ran Wang commit b433e340e7565110b0ce9ca4b3e26f4b97a1decf upstream. When loading new kernel via kexec, we need to shutdown host controller to avoid any un-expected memory accessing during new kernel boot. Signed-off-by: Ran Wang Cc: stable Tested-by: Stephen Boyd Reviewed-by: Peter Chen Link: https://lore.kernel.org/r/20200306092328.41253-1-ran.wang_1@nxp.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -284,6 +284,7 @@ MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_ static struct platform_driver usb_xhci_driver = { .probe = xhci_plat_probe, .remove = xhci_plat_remove, + .shutdown = usb_hcd_platform_shutdown, .driver = { .name = "xhci-hcd", .pm = DEV_PM_OPS,