Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp162496rdd; Mon, 8 Jan 2024 23:13:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUIlq2Yx27N49UUkjOgk2DVyYDjWgn6r0Z5JdpOxWIYTa0HST6vnsTRD3aKV7cROaoF8LQ X-Received: by 2002:a05:622a:52:b0:429:9a0f:613 with SMTP id y18-20020a05622a005200b004299a0f0613mr1868752qtw.36.1704784394625; Mon, 08 Jan 2024 23:13:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704784394; cv=none; d=google.com; s=arc-20160816; b=As2ylUC7l25FcPOIBq5ySA9+L20cZDNOS+I1bQtvuELKU6mZ9TdauVGkLFnktoUDjt oKTVhLY33hS9w+Cc8iEa9BmPVBwLbQqGYX2FhXY7gRXUZ2T89UgxlqdoJ/VQ+ad8jPNM kSoqAhnNWM9zoHek9kSI4C1QD0Qvd17jPYyjsvm0IfdEICESwPgU0iHSn5pSF13QLFi+ uwAwznUbMKPvm20l9wG27IhtIaqZbRuA7IwGKOaJVOUmYdflBrLZgtEu/xLvN9YYQh05 PO457o575DWugtxmLvWF3yUpF4Fc6LdugylBc82rjs/TYQ02AhtnGEVf5orFD2UtDTkV RicA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZrPiOfGPfL/yGDkOoA9X0IcX5p0MU3ioRQaHlMb83xI=; fh=8WQfOYmE5Jxp4/J415kELRKWWY++bBG5ugUd0OOgIL8=; b=d2l1Wh8uPKBP7/FfaJ8basidiwG/ZVas4TmzvvAVZ9iQLJWGYmRoXZ0vEQVd0fHz0Y +hVpaidSfzOhFuL2l4Ui5xFc7k1Lxb1bKiOaQ0U2QT/kYGRtyU67aV9yoqz+uXxbMskS OGCzgnvzKdUeyLmyG7G61iHjjYo5Gj5twrLFazZ61jc7WXpl9k6ifZNjz/aP9d1NMTXt D/pAi8PFTGSSmz2gSiG9VU6KkObAjGVD8tDzrnrHgV65R2k/tjp/A2jMJT6Fze9tGova yCJ+TXq/47k7VjUaWM4vfosdBOR9oItEL42d0DRSJCFVFzrjvvWWDyqa6Co/gROzmTEd Pw9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kxd7L47X; spf=pass (google.com: domain of linux-kernel+bounces-20445-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20445-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g5-20020ac85805000000b0042998688316si1468490qtg.297.2024.01.08.23.13.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 23:13:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20445-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kxd7L47X; spf=pass (google.com: domain of linux-kernel+bounces-20445-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20445-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5DD331C23607 for ; Tue, 9 Jan 2024 07:13:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 830159468; Tue, 9 Jan 2024 07:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kxd7L47X" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ED6A79C4; Tue, 9 Jan 2024 07:13:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76F35C433C7; Tue, 9 Jan 2024 07:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1704784381; bh=KW+h+R/WBAgOJEnE4m6clFnLxv6Xr732ZUMriIV0kXQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kxd7L47X0QpJB6vNmFmMeG8Ml9h67ISPM5fncSn9iX0I6pyMJksIukgSkx9A5iEPz qHNbTKzZ5vhtTcJcbqrPZKnhL54J2VhEaRGVxrl825lzPF1CuKKPfJ7AQ3ORT5nbnM qTpM9K/NdVGqbOptQZsEJOFU3lcr3Yxh6i9oaPE4= Date: Tue, 9 Jan 2024 08:12:58 +0100 From: Greg KH To: Elad Nachman Cc: stern@rowland.harvard.edu, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] usb: host: Add ac5 to EHCI Orion Message-ID: <2024010943-deluxe-snitch-febc@gregkh> References: <20240108175457.4113480-1-enachman@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240108175457.4113480-1-enachman@marvell.com> On Mon, Jan 08, 2024 at 07:54:57PM +0200, Elad Nachman wrote: > From: Elad Nachman > > Add support for ac5 to the EHCI Orion platform driver. > The ac5 SOC has DDR starting at offset 0x2_0000_0000, > Hence it requires a larger than 32-bit DMA mask to operate. > Move the dma mask to be pointed by the OF match data, and > use that match data when initializng the DMA mask. > > Signed-off-by: Elad Nachman > --- > drivers/usb/host/ehci-orion.c | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c > index 6c47ab0a491d..58883664c884 100644 > --- a/drivers/usb/host/ehci-orion.c > +++ b/drivers/usb/host/ehci-orion.c > @@ -65,6 +65,15 @@ struct orion_ehci_hcd { > > static struct hc_driver __read_mostly ehci_orion_hc_driver; > > +/* > + * Legacy DMA mask is 32 bit. > + * AC5 has the DDR starting at 8GB, hence it requires > + * a larger (34-bit) DMA mask, in order for DMA allocations > + * to succeed: > + */ > +static const u64 dma_mask_orion = DMA_BIT_MASK(32); > +static const u64 dma_mask_ac5 = DMA_BIT_MASK(34); > + > /* > * Implement Orion USB controller specification guidelines > */ > @@ -211,6 +220,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev) > int irq, err; > enum orion_ehci_phy_ver phy_version; > struct orion_ehci_hcd *priv; > + u64 *dma_mask_ptr; > > if (usb_disabled()) > return -ENODEV; > @@ -228,7 +238,8 @@ static int ehci_orion_drv_probe(struct platform_device *pdev) > * set. Since shared usb code relies on it, set it here for > * now. Once we have dma capability bindings this can go away. > */ > - err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); > + dma_mask_ptr = (u64 *)of_device_get_match_data(&pdev->dev); > + err = dma_coerce_mask_and_coherent(&pdev->dev, *dma_mask_ptr); > if (err) > goto err; > > @@ -332,9 +343,9 @@ static void ehci_orion_drv_remove(struct platform_device *pdev) > } > > static const struct of_device_id ehci_orion_dt_ids[] = { > - { .compatible = "marvell,orion-ehci", }, > - { .compatible = "marvell,armada-3700-ehci", }, > - {}, > + { .compatible = "marvell,orion-ehci", .data = &dma_mask_orion}, > + { .compatible = "marvell,armada-3700-ehci", .data = &dma_mask_orion}, > + { .compatible = "marvell,ac5-ehci", .data = &dma_mask_ac5}, > }; > MODULE_DEVICE_TABLE(of, ehci_orion_dt_ids); > > -- > 2.25.1 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot