Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6634119ybf; Fri, 6 Mar 2020 01:27:29 -0800 (PST) X-Google-Smtp-Source: ADFU+vsvmTDfIjoiOWTleWGpN6kOlwbOjI5AMpGA6pyiBta39wBueVBNXxQ3gDXQV6vzixhCtGOv X-Received: by 2002:a9d:f67:: with SMTP id 94mr1765173ott.46.1583486849809; Fri, 06 Mar 2020 01:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583486849; cv=none; d=google.com; s=arc-20160816; b=cX1QKMDPg/kbB3jlzff+gMUmLtTgJL4YZiRa973sq0z5AQLDOGupJ42iWqGRvwEF42 R1e+BA+GZkKCuLp4A7OcZnDRDAHrdUvPfnHrouwfuWF7Eawknemjazgjf4JoYGf+ZtHa gv344/QkC63fcMNrOVMt4jrPZbgb2Zxx8/uxxCUbLN9czvWO1DRhxM3V8ApRHbc6Rq2d 6xZ3VOvv1nczkUywC4T15EZZFSgssSltWKFQ4euwfsQrIKRwX7psUcH+SfmlLUnRZZRd jXZNWlPwgPCGSh4PVOI2s2O22ufkNrJlS4pALpxFj464fyRVqrWb/u2Q3kH2xIbtVX8P y6ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=l/RmQiTGeiaeZRewHNBAi0QE2ldsiXE7MfvTi03jsV0=; b=BKAA9qB6wei8dkSnnv1KgCs9tGofrv+VlNZKe+9GFB8b+RIJoMW3712w7oHDMbJwXj /4LSAUmQD+nIADCPZSFFqCzQ73Ty7+iBSq8p2U5lC09l28P6RSUB4neqVgnJ4BwCgIqk eRcHs0SpsXYy8KvEgd0jKJhvVweAcZqFALJ3xUl8O2wSNIUe6DZW8ZiLvE0uJ5/CzP90 ChyFlCK1KEQF4td/9IPUI4JanlX2M04tIkNsHK0tRe/EBf5LSColq9g24NBJpS1aNSDR raOxknQERuS1l7scPbpeq+kuuCChvC78anyrBDiKjWc4p4FDXlh3SZ7KT2czZQmO2okf hlbg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13si1031942oto.33.2020.03.06.01.27.17; Fri, 06 Mar 2020 01:27:29 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgCFJ0o (ORCPT + 99 others); Fri, 6 Mar 2020 04:26:44 -0500 Received: from inva020.nxp.com ([92.121.34.13]:44054 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbgCFJ0o (ORCPT ); Fri, 6 Mar 2020 04:26:44 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 894241A0A78; Fri, 6 Mar 2020 10:26:42 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A44431A0A4A; Fri, 6 Mar 2020 10:26:38 +0100 (CET) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 85C4C402A0; Fri, 6 Mar 2020 17:26:33 +0800 (SGT) From: Ran Wang To: Mathias Nyman , Greg Kroah-Hartman Cc: Peter Chen , Jun Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Ran Wang Subject: [PATCH] usb: host: xhci-plat: add a shutdown Date: Fri, 6 Mar 2020 17:23:28 +0800 Message-Id: <20200306092328.41253-1-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Peter Chen --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index d90cd5e..315b455 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -445,6 +445,7 @@ MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_match); 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 = &xhci_plat_pm_ops, -- 2.7.4