Message ID | 20191028215919.83697-7-john.stultz@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3978380ill; Mon, 28 Oct 2019 14:59:31 -0700 (PDT) X-Received: by 2002:a63:29c1:: with SMTP id p184mr19643156pgp.174.1572299971061; Mon, 28 Oct 2019 14:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572299971; cv=none; d=google.com; s=arc-20160816; b=KyfupVR18E4PqFGpIOMEL8hbbu2pxFhBJSny6PpKPwFbeXmEzuPbONLmj1yb1s2zPl tSCYxBqsHAqElUQDcJFs2dZrrfoFhwTtup+Gm2dOoZgs63SE+vanVvc7HGQs1IOSBKYI JY7HEW88/LdgL/zZ6cxV0eMSMCwFbPyZ5PmiTwyw2hi+u3MafWBUfmDHePZNKQ3h5Hci InuR7fZcQUPaQR26ksxs9o08iN06SsX+BFHcLa9aKGyTg47BhOpYwKMoDzFflfSYO2Ru PGC5ohmWO+fj+0T8dGGrZqJz8FjUqUAvdXXB7PAKCE8+JPA019IeYf/8Zz1wF6aBgYdI v6bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7OkAbKqeK5UAQaAqjCwbs8uW675j/BSDdsRWiE3W8aU=; b=DIbRG+Aslo55JYxRG8VoTx4s3Eg3520W1747JI/Acy6fpwHYFxddP8kt2K/HmK3trh 6Rs7ziA3938XpGfl+I4fOPUADb0+a3mBi/bxJLM02ib2Z6WfEit6Hz3boM+GgEMEpPAL 9puJz/ww/n3ZctoD7rvW0aeY/Z/C4k5aKAfpSKkIe5xQGst/VW/aW8Al+FMfxkKcSlxW FKCAZuVOnfrHKDEshY9aBkGM87DffNsY7kMpZBZVuaSEEOANkxbDgdeuZvERDbmD6j4P 9O0OmeuC8AHYfwPCFsdHNiXsB+n3912++JyGB0Fcp5J9o//Jnv33nO5eeu6vjnddOsBP /++A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ai1HB2gk; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <john.stultz@linaro.org> Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f100sor1112077pje.25.2019.10.28.14.59.30 for <patches@linaro.org> (Google Transport Security); Mon, 28 Oct 2019 14:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ai1HB2gk; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7OkAbKqeK5UAQaAqjCwbs8uW675j/BSDdsRWiE3W8aU=; b=Ai1HB2gk9lrqHztEC4ZHzPtyWt6AhILNoXDJsOU4uocb3Mo/r7ybCc2lWBLviVG2N4 2WfVuv1aWQtHng83gZz0etX1FhVI9HBvVDGvYj4oHX7GLNHq6c7IqOVFfFmlsEJ3u6V2 01kHeUfxJOkJsRUMTL7H/2IMUmPIRLQyYYkYzgYMM7GYjCFqWaEsAfxq9yg2r0HLw5gx d+dlFHHWxtXtR7TBChXd90oVqVYIHxOgcRJyOiw3zfcoappJREjdXKXhbPPe700BWOHl vKLkbx8vDz8s5mBsPYA/b56+OkDHPAHSKuWohftBaNZf+cnRCSNHOkBwDpEWHEe2MWd3 zEgQ== 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:in-reply-to :references; bh=7OkAbKqeK5UAQaAqjCwbs8uW675j/BSDdsRWiE3W8aU=; b=XGce97l13e7uxjVMt6Nm9yIGKJV1tVX/9TALEUbaFXpB3WzSC3hpNWm+tNput36IhO 4+Z9UyMM2+c++4Hqi5VcvAuLEyHgmfKnLzKUsjU0yb1FMrb3Q1t4X5Ifka6AGQTJDGwp NuqVoP2zdc3UtTvMEnLAVYFzt0k3oM36OGmMRdf+OUW+xg6WHHyEp5HpRRLuWtA43Tk0 IZ64MvjMPUmsncR87qI6JCX+P2RGxr1HTc5dYNSTjfof0+1/BVjj355cT2qm3zVFtOGY GNXO+OQTaVq8XHlEfOL52n8i1WWtGWOyVuhB01xCPt+259IydyFK1GOdcE+Lmz92BgVm HUbA== X-Gm-Message-State: APjAAAWiXElio7Ftt9h5mbLbQ2aBZM5OpeMCRIN6pHpt0YTYSUY6gVbC vZDo3GCJRDUaEWqH+UrEveRdIRxU X-Google-Smtp-Source: APXvYqxHxifqq5Xfv4B4vIzQhfZKh/YWkRZppo1k5WzU2a3NOH7qey4U6MAmtNictRTF7mgCEmNVYg== X-Received: by 2002:a17:90a:a406:: with SMTP id y6mr1962404pjp.106.1572299970594; Mon, 28 Oct 2019 14:59:30 -0700 (PDT) Return-Path: <john.stultz@linaro.org> Received: from localhost.localdomain (c-67-170-172-113.hsd1.or.comcast.net. [67.170.172.113]) by smtp.gmail.com with ESMTPSA id f12sm10880612pfn.152.2019.10.28.14.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:59:30 -0700 (PDT) From: John Stultz <john.stultz@linaro.org> To: lkml <linux-kernel@vger.kernel.org> Cc: John Stultz <john.stultz@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, ShuFan Lee <shufan_lee@richtek.com>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Chunfeng Yun <chunfeng.yun@mediatek.com>, Yu Chen <chenyu56@huawei.com>, Felipe Balbi <balbi@kernel.org>, Hans de Goede <hdegoede@redhat.com>, Andy Shevchenko <andy.shevchenko@gmail.com>, Jun Li <lijun.kernel@gmail.com>, Valentin Schneider <valentin.schneider@arm.com>, Jack Pham <jackp@codeaurora.org>, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 6/9] usb: dwc3: Rework resets initialization to be more flexible Date: Mon, 28 Oct 2019 21:59:16 +0000 Message-Id: <20191028215919.83697-7-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191028215919.83697-1-john.stultz@linaro.org> References: <20191028215919.83697-1-john.stultz@linaro.org> |
Series |
Prereqs for HiKey960 USB support
|
expand
|
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 4d4f1836b62c..ef52ffa5d6cb 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1442,7 +1442,7 @@ static int dwc3_probe(struct platform_device *pdev) dwc3_get_properties(dwc); - dwc->reset = devm_reset_control_get_optional_shared(dev, NULL); + dwc->reset = devm_reset_control_array_get(dev, true, true); if (IS_ERR(dwc->reset)) return PTR_ERR(dwc->reset);
The dwc3 core binding specifies one reset. However some variants of the hardware my not have more. So this patch reworks the reading of the resets to fetch all the resets specified in the dts together. This patch was reccomended by Rob Herring <robh@kernel.org> as an alternative to creating multiple bindings for each variant of hardware when the only unique bits were clocks and resets. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> CC: ShuFan Lee <shufan_lee@richtek.com> Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Chunfeng Yun <chunfeng.yun@mediatek.com> Cc: Yu Chen <chenyu56@huawei.com> Cc: Felipe Balbi <balbi@kernel.org> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Jun Li <lijun.kernel@gmail.com> Cc: Valentin Schneider <valentin.schneider@arm.com> Cc: Jack Pham <jackp@codeaurora.org> Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Suggested-by: Rob Herring <robh@kernel.org> Signed-off-by: John Stultz <john.stultz@linaro.org> --- v3: Rework dwc3 core rather then adding another dwc-of-simple binding. --- drivers/usb/dwc3/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1