From patchwork Tue Apr 13 21:58:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 420244 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp2996461jaj; Tue, 13 Apr 2021 14:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxRqcNfJkjkJ8kBbem6AE/uLjKr3mNv+QDAMr2y2mUlF2OpOyd6mCuQ602xI6lmTOhZc6R X-Received: by 2002:a17:906:f759:: with SMTP id jp25mr9879007ejb.228.1618351122372; Tue, 13 Apr 2021 14:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618351122; cv=none; d=google.com; s=arc-20160816; b=zgrm75lQ1YPwIMfSdlQYWuOHt0FfcOhD7ciYRyhhyJqMOffRNucRoLu5jzvnNqzMhZ VbAYyYFIlueQaEUCsZg+KvjkWWjgLLLO3Dc4IqOTqXYAbhNKsn2k2dXvaglA2ymunEpC rAZiv6kAHhd9Qr2swRAZUZVbYIgt0kEA5PLXYcxiAxgzlRmBwfBur1wQ2zSkYLRYxUY8 3zQNdNDNzSL7CgDmbwWGlzbfJeDN3bmEJKDyFlQofD/CHWL/TY8DFGbk88f4o3/IuxwD L5/x50+QPTWYrUeFdpx4UZCiWT0o7ZhjL40SKZTBkYanBldS83VbhFT3jRnk8g7hJNpT pgoA== 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 :message-id:date:subject:cc:to:from; bh=QhITyZQng10r0aI7E/t7ZC39NkGeZ1Z8XrTSuKeF9Ww=; b=HcUoPbuX0lbB+hjKsusRhmLHVWv5mrbuLq10OFcE6QnqQQCXN35FtVGFvJxetNouM0 kIL2rrgvhdComRKbkqL/7bsPksPwM+QMplqwXw8/Bsl+axQIP/IMqlWDvdVzP0VJgmEY E+HYbbRwXaw0VVgwEOnZ7sUnIkWsrUeF22aDHkOQgLbDb8cdImMsu6krehXkgha4sRu3 VH6+JM5Kgu6tMZfqtwFjxfSfLUYHmGSPBodF3rcdfcQTCBNdC2GrYEldR538J0+kCRJH HEdM4WGLDdcU+c4A4tIhRTpog51zmzmyx4u2k1t636Vt8+bc9wPrpncvXfeLZlkpxD/t Hg5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si10811846edw.607.2021.04.13.14.58.42; Tue, 13 Apr 2021 14:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346831AbhDMV7B (ORCPT + 3 others); Tue, 13 Apr 2021 17:59:01 -0400 Received: from foss.arm.com ([217.140.110.172]:47136 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbhDMV7A (ORCPT ); Tue, 13 Apr 2021 17:59:00 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F339311B3; Tue, 13 Apr 2021 14:58:39 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DD85C3F694; Tue, 13 Apr 2021 14:58:39 -0700 (PDT) From: Jeremy Linton To: linux-usb@vger.kernel.org Cc: hminas@synopsys.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Jeremy Linton Subject: [PATCH v3 0/1] dwc2: Enable USB when booted in ACPI mode Date: Tue, 13 Apr 2021 16:58:33 -0500 Message-Id: <20210413215834.3126447-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The BCM2711 has a designware USB controller that is commonly used on the CM4 and RPi400. There is a desire to use thes machines with a standard UEFI+ACPI stack as is being done with the normal RPi4. This patch enables this by adding ACPI module boilerplate to the existing dwc2 controller. It should also be noted, that there is an ACPI table update in the firmware which marks the ACPI _DMA() entries as ResourceProducers. That change is required for this to work with the 1G DMA translation present on the platform. Changes: v2->v3: Add this cover letter to describe the patch changes v1->v2: Fix the kernel_ulong_t/set_parms() function typecasting warning by explicitly doing the type cast. Jeremy Linton (1): usb: dwc2: Enable RPi in ACPI mode drivers/usb/dwc2/core.h | 2 ++ drivers/usb/dwc2/params.c | 18 +++++++++++++++++- drivers/usb/dwc2/platform.c | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) -- 2.29.2