Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2347621pxb; Sat, 19 Feb 2022 08:45:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwrp9pfhswpfGC8zzqefKc17+36oVRuqqtk0H+gyOvrmu3nfMy1uMm2GArtQhInk9Cuw+H X-Received: by 2002:aa7:cac8:0:b0:410:cc6c:6512 with SMTP id l8-20020aa7cac8000000b00410cc6c6512mr13348043edt.408.1645289117266; Sat, 19 Feb 2022 08:45:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645289117; cv=none; d=google.com; s=arc-20160816; b=BTksTi8V4bbFlUZJpIeM0loBEYUH+oxOvDTndHxii60p+Dmfdz0TUmIuT7RKCNdid3 f+qrgyksqeLiSQo2/W3HR7qc/jDbrD1Da39pJWQAzU3Q23YSe076uUqvAjgFwkpwIwXu NjiYH6tIJp82EqvvMGoabO0+dyNxOFn5uxq08u6twFNASUq6HDRsEtjTtu1fDiqAJPCS CqEnGeA2hG7LiNlMClNtGaxLZ6WUrITr0dbUyBp+QW1wm/mRQGIVTbazGgZAk8SVDm0z sCvyZPXWYmiuWvNoou9XkHCwgmCvtuknaPjkaiQNC4Ql06QnVjubhfBDd24KdFAoax3c rW8g== 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=yAdt8c3Kx+H+/O3yRynb0JPTBtvJf6iuj3i77jiRv/E=; b=Vc9vASaKzMJ+IJXsBW0Pcub1Hku3gtXphx0joPVkJvPNwUR0YJ+ZMZMR8SVdcYB+9o SLKknXu953MytagfuouLc3gW6sgBUlnriQT8MF0QYIS3dm2e+9ZnIxGmVjVPEgx7mOWZ zbgcgHBWlBWeVVHk8fTIxdqrHhKhWwp5jRug2cCmoFln/s0kEn/M7wCKa13Ki7JwLRWN BzXsGojnVKDlhFAJ/aAEcXYi4OsB59zpPBiZ+gLV6iY4rsoa9xI9E49v/VKwYagVpvni VLhXVb0f6Dh2V1J63YYxVp+N9avLgDm/B/sIYTDltJ1Pndzq8aLXmJj5OlcZ23C8KQpZ fb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="P/qaS6C1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 gq16si3614725ejb.520.2022.02.19.08.44.53; Sat, 19 Feb 2022 08:45:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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="P/qaS6C1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S240925AbiBSA6J (ORCPT + 99 others); Fri, 18 Feb 2022 19:58:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240863AbiBSA5Z (ORCPT ); Fri, 18 Feb 2022 19:57:25 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6BBE027D6A1 for ; Fri, 18 Feb 2022 16:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645232185; 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=yAdt8c3Kx+H+/O3yRynb0JPTBtvJf6iuj3i77jiRv/E=; b=P/qaS6C1UCPjGxsuLPGlp3w8CPZJb6ux2x00cfaLoSrWxuJGssVcmeLxoR+rAReftdZv2f RNdn2h2zmG7Ubty1sGghNubrN+0JRpmSYQ6WZg6QQpJeJComQ1//T/c1sXVJOBF9UL9Lnk HmTGFdw+kpIbSK+kPaIwQSnrDQDfiq0= 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-475-VXpIlbqxMZCUfEdjOGjxyg-1; Fri, 18 Feb 2022 19:56:19 -0500 X-MC-Unique: VXpIlbqxMZCUfEdjOGjxyg-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 64C331091DA1; Sat, 19 Feb 2022 00:56:16 +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 D760D62D4E; Sat, 19 Feb 2022 00:56:04 +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 16/22] usb: udc: lpc32xx: Don't use GFP_DMA when calling dma_pool_alloc() Date: Sat, 19 Feb 2022 08:52:15 +0800 Message-Id: <20220219005221.634-17-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-kernel@vger.kernel.org dma_pool_alloc() uses dma_alloc_coherent() to pre-allocate DMA buffer, so it's redundent to specify GFP_DMA when calling. Signed-off-by: Baoquan He --- drivers/usb/gadget/udc/lpc32xx_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index bcba5f9bc5a3..d234de1c62b3 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -922,7 +922,7 @@ static struct lpc32xx_usbd_dd_gad *udc_dd_alloc(struct lpc32xx_udc *udc) dma_addr_t dma; struct lpc32xx_usbd_dd_gad *dd; - dd = dma_pool_alloc(udc->dd_cache, GFP_ATOMIC | GFP_DMA, &dma); + dd = dma_pool_alloc(udc->dd_cache, GFP_ATOMIC, &dma); if (dd) dd->this_dma = dma; -- 2.17.2