Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1124569pxx; Tue, 27 Oct 2020 08:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfiHERXrRxLrLMeE3Z78rKT3JvCTNHQmURgZNNkXhxfo5Hqdrum2ckdh7aEYtzIO4dFO+A X-Received: by 2002:aa7:c0d2:: with SMTP id j18mr3041972edp.89.1603813735518; Tue, 27 Oct 2020 08:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813735; cv=none; d=google.com; s=arc-20160816; b=XQ3biUVpFKl/Fz1Uao9o2EemnBiC4urVZYefQj9NehcOg2ZOF2E81COHqbAtPeJdkI IvnNzYFZg7MCpGXWyMX1mTtWi+ojH4f5LSyQPO+kEOg5XolHGXtGHJ3ZDFT5DSlRqYTb fa5WKfScDwhbq4uQairdE/4SBzpYX4+HggOuH5gTOevfxRZEtkha5PrvtIRKB7wuccig XFYuf/4iR6IcMS92vZ5O5DMM9RTvcfTm3u35KrXh30t3Pd53DkqrFDHkfg79bI0mrZPm Wd92gkYF0+9ZaIgUSbYxly5ZjyEbXk3rPEkulFOSc45TnGuv4QrlMdcb4mk8LWdZ5faq VYkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AvsK2WXtFQDpoRubrU0oWXd7B4ciriKye/UWnJhkJWM=; b=USkw5JqLkXwbivEcZNlOjU1wrdtzaAGRZiraSMyrAnOGSgHJA4xQa0ibXfrp3AKovX FruFOiJCtb1INnXexCEbusduDdDJ/nwDw/gxiIcHGK2faaAJP+mvqRgMOU0yk/Dlcsp0 DUGU7nM2d8/cL6W+5ez7JaU8y7FtK1+62r+zUNGIC5dZh9swYu3zWmdpoNT99tdy8dOm +n8lCkovpmprEjD9CGqoNUo2HTCjtsDVADrvCDDWtjK21Mad99I2N2WG43HyZBuWmsKR vYHXmqHh8TwZ+RxWexPSs4o1MM8eU93z1vdpC59jaVtNNO2Fjw5isyUeAQ+OJ9zHyZr6 QmjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NjFcxyyj; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga3si1268345ejc.703.2020.10.27.08.48.33; Tue, 27 Oct 2020 08:48:55 -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=@kernel.org header.s=default header.b=NjFcxyyj; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1783325AbgJ0O6G (ORCPT + 99 others); Tue, 27 Oct 2020 10:58:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:45044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763851AbgJ0OpJ (ORCPT ); Tue, 27 Oct 2020 10:45:09 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 3D680206E5; Tue, 27 Oct 2020 14:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809906; bh=YnKoK56twkUq+7zHFZ2YQYk/Z3q+R8LdT6ACfeu8ZvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NjFcxyyje4HovFxQxW/h12Fr3oWyugAlvGVuLdGlHvpcSN5O34KE/yj950bIrf4Ux oq9PQBbr8L5M1Yl7WqV2tDktGcqG8jzA5uARHY54F4srt2RvpESyszGKhGGdySL8wB 0WC5tUDJWK5q7FdpdoEw3mDCStMO4Dh01kL7V3h8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mauro Carvalho Chehab , Felipe Balbi , Sasha Levin Subject: [PATCH 5.4 362/408] usb: dwc3: simple: add support for Hikey 970 Date: Tue, 27 Oct 2020 14:55:00 +0100 Message-Id: <20201027135511.812859133@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mauro Carvalho Chehab [ Upstream commit b68d9251561f33661e53dd618f1cafe7ec9ec3c2 ] This binding driver is needed for Hikey 970 to work, as otherwise a Serror is produced: [ 1.837458] SError Interrupt on CPU0, code 0xbf000002 -- SError [ 1.837462] CPU: 0 PID: 74 Comm: kworker/0:1 Not tainted 5.8.0+ #205 [ 1.837463] Hardware name: HiKey970 (DT) [ 1.837465] Workqueue: events deferred_probe_work_func [ 1.837467] pstate: 20000005 (nzCv daif -PAN -UAO BTYPE=--) [ 1.837468] pc : _raw_spin_unlock_irqrestore+0x18/0x50 [ 1.837469] lr : regmap_unlock_spinlock+0x14/0x20 [ 1.837470] sp : ffff8000124dba60 [ 1.837471] x29: ffff8000124dba60 x28: 0000000000000000 [ 1.837474] x27: ffff0001b7e854c8 x26: ffff80001204ea18 [ 1.837476] x25: 0000000000000005 x24: ffff800011f918f8 [ 1.837479] x23: ffff800011fbb588 x22: ffff0001b7e40e00 [ 1.837481] x21: 0000000000000100 x20: 0000000000000000 [ 1.837483] x19: ffff0001b767ec00 x18: 00000000ff10c000 [ 1.837485] x17: 0000000000000002 x16: 0000b0740fdb9950 [ 1.837488] x15: ffff8000116c1198 x14: ffffffffffffffff [ 1.837490] x13: 0000000000000030 x12: 0101010101010101 [ 1.837493] x11: 0000000000000020 x10: ffff0001bf17d130 [ 1.837495] x9 : 0000000000000000 x8 : ffff0001b6938080 [ 1.837497] x7 : 0000000000000000 x6 : 000000000000003f [ 1.837500] x5 : 0000000000000000 x4 : 0000000000000000 [ 1.837502] x3 : ffff80001096a880 x2 : 0000000000000000 [ 1.837505] x1 : ffff0001b7e40e00 x0 : 0000000100000001 [ 1.837507] Kernel panic - not syncing: Asynchronous SError Interrupt [ 1.837509] CPU: 0 PID: 74 Comm: kworker/0:1 Not tainted 5.8.0+ #205 [ 1.837510] Hardware name: HiKey970 (DT) [ 1.837511] Workqueue: events deferred_probe_work_func [ 1.837513] Call trace: [ 1.837514] dump_backtrace+0x0/0x1e0 [ 1.837515] show_stack+0x18/0x24 [ 1.837516] dump_stack+0xc0/0x11c [ 1.837517] panic+0x15c/0x324 [ 1.837518] nmi_panic+0x8c/0x90 [ 1.837519] arm64_serror_panic+0x78/0x84 [ 1.837520] do_serror+0x158/0x15c [ 1.837521] el1_error+0x84/0x100 [ 1.837522] _raw_spin_unlock_irqrestore+0x18/0x50 [ 1.837523] regmap_write+0x58/0x80 [ 1.837524] hi3660_reset_deassert+0x28/0x34 [ 1.837526] reset_control_deassert+0x50/0x260 [ 1.837527] reset_control_deassert+0xf4/0x260 [ 1.837528] dwc3_probe+0x5dc/0xe6c [ 1.837529] platform_drv_probe+0x54/0xb0 [ 1.837530] really_probe+0xe0/0x490 [ 1.837531] driver_probe_device+0xf4/0x160 [ 1.837532] __device_attach_driver+0x8c/0x114 [ 1.837533] bus_for_each_drv+0x78/0xcc [ 1.837534] __device_attach+0x108/0x1a0 [ 1.837535] device_initial_probe+0x14/0x20 [ 1.837537] bus_probe_device+0x98/0xa0 [ 1.837538] deferred_probe_work_func+0x88/0xe0 [ 1.837539] process_one_work+0x1cc/0x350 [ 1.837540] worker_thread+0x2c0/0x470 [ 1.837541] kthread+0x154/0x160 [ 1.837542] ret_from_fork+0x10/0x30 [ 1.837569] SMP: stopping secondary CPUs [ 1.837570] Kernel Offset: 0x1d0000 from 0xffff800010000000 [ 1.837571] PHYS_OFFSET: 0x0 [ 1.837572] CPU features: 0x240002,20882004 [ 1.837573] Memory Limit: none Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/dwc3/dwc3-of-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index bdac3e7d7b184..d055e00f81808 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -183,6 +183,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { { .compatible = "amlogic,meson-axg-dwc3" }, { .compatible = "amlogic,meson-gxl-dwc3" }, { .compatible = "allwinner,sun50i-h6-dwc3" }, + { .compatible = "hisilicon,hi3670-dwc3" }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, of_dwc3_simple_match); -- 2.25.1