Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2049214pxb; Sat, 19 Feb 2022 00:32:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOQHcI8g2eWPhiivAx3IYqcSIRL9w51koGcKpNxQxMwVtypR17ZLaOb7W735qX3f1aCe4k X-Received: by 2002:a17:906:eb4a:b0:6cf:bb0e:69fb with SMTP id mc10-20020a170906eb4a00b006cfbb0e69fbmr9457528ejb.149.1645259573402; Sat, 19 Feb 2022 00:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645259573; cv=none; d=google.com; s=arc-20160816; b=UUJcZK1FAOoGen5xsTHtn0lyvoMBBCEiZkPZz+4FqmxE2M3g8fsoVM2egQ2qmCda6S WYHi7F153wOlwvzvaw5g7tM2Q+VuAMqF2Lvz8IcztD2M4HAisdr70Sqj6eyALePVqoQj IrKzeBCkgl5MHoGLe1kerrsmbZ+pe1+TmrKSJb9pC7Wa3604sOyreUGSNlg3i25vQe3i ScpEWSWvm8HJK51p67l9CyDCJZN2wvM3hUPXSd/hVJetaCBtiWtXpFiig//6TaMF7Kw7 lwEI2+gSaKfNXq/VaQardO7GojGHUDKXbZx5ZoNZ4Zcg7FwFbesACaI0MFDb2Ah0OzaV 2lyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=zPMhp9x1c0LUaXTNjQzx3Ki328/reRSQPGCipmskGY4=; b=aKfYa4k6E/M1w8xa8UDBW424+vh9hSiyb8cAEo5tKF+h3z2kOyyIItigquIMcz5FRF E46odll7BRXqZTV/EZuLnZR9NsczwaNj/i4f5SCO26nvUqNF4I6L8NrkbYqWjj+ehilG /dsyTuuBxzrSGUTmRBjVgdiHu1rgjwaHUKislmx9GcKk4SQdiKeom5Spdv81G7HWHXlH ncMSWfrfcQFv9NUg49p/lyifxCd5zEe7sTGFFiKdtkV+MR03FufQTx7NthneJtS6rInL iq1IufQQB+tt0vwpBjYCGRVD2/JmenN0fjzIdBDWML9P6gZu32qankvvyE3DAkavpCgX YRKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R/gHAFJV"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3si5351473ejj.22.2022.02.19.00.32.12; Sat, 19 Feb 2022 00:32:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R/gHAFJV"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240901AbiBSA50 (ORCPT + 99 others); Fri, 18 Feb 2022 19:57:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239523AbiBSA4y (ORCPT ); Fri, 18 Feb 2022 19:56:54 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B674327B9A4 for ; Fri, 18 Feb 2022 16:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645232170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=zPMhp9x1c0LUaXTNjQzx3Ki328/reRSQPGCipmskGY4=; b=R/gHAFJVHQi413rtS+avQkPYQCFa7/Me5Vs159/jPZLTK84abCCoFiBZwqe7d6d/PjhenX mFA0QYnBs/bBrMmqPZghZ3fQ5C4rwNmyeDexZs/3l2nsM+NAJhwMb2PdqUT4p6FWA5j/I1 2DyqKSg70paT8FBosclBkeLlpI7Ru0k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-392-yQBzCFbFOsyrrFCvPcd0NQ-1; Fri, 18 Feb 2022 19:56:07 -0500 X-MC-Unique: yQBzCFbFOsyrrFCvPcd0NQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4506E801AA6; Sat, 19 Feb 2022 00:56:04 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id A731F62D57; Sat, 19 Feb 2022 00:55:52 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, hch@lst.de, cl@linux.com, 42.hyeyoo@gmail.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, vbabka@suse.cz, David.Laight@ACULAB.COM, david@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, steffen.klassert@secunet.com, netdev@vger.kernel.org, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, linux-s390@vger.kernel.org, michael@walle.cc, linux-i2c@vger.kernel.org, wsa@kernel.org Subject: [PATCH 15/22] usb: cdns3: Don't use GFP_DMA32 when calling dma_pool_alloc() Date: Sat, 19 Feb 2022 08:52:14 +0800 Message-Id: <20220219005221.634-16-bhe@redhat.com> In-Reply-To: <20220219005221.634-1-bhe@redhat.com> References: <20220219005221.634-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org dma_pool_alloc() uses dma_alloc_coherent() to pre-allocate DMA buffer, so it's redundent to specify GFP_DMA32 when calling. Signed-off-by: Baoquan He --- drivers/usb/cdns3/cdns3-gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gadget.c index c0937d3d663f..6afac25ff2c7 100644 --- a/drivers/usb/cdns3/cdns3-gadget.c +++ b/drivers/usb/cdns3/cdns3-gadget.c @@ -220,7 +220,7 @@ int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep) if (!priv_ep->trb_pool) { priv_ep->trb_pool = dma_pool_alloc(priv_dev->eps_dma_pool, - GFP_DMA32 | GFP_ATOMIC, + GFP_ATOMIC, &priv_ep->trb_pool_dma); if (!priv_ep->trb_pool) -- 2.17.2