[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y+LVkVvqknr/z3D5@smile.fi.intel.com>
Date: Wed, 8 Feb 2023 00:49:53 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Mathias Nyman <mathias.nyman@...ux.intel.com>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Mathias Nyman <mathias.nyman@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH v1 2/7] xhci: mem: Use __GFP_ZERO instead of explicit
memset() call
On Tue, Feb 07, 2023 at 05:11:23PM +0200, Mathias Nyman wrote:
> On 6.2.2023 18.10, Andy Shevchenko wrote:
> > Use __GFP_ZERO instead of explicit memset() call in
> > xhci_alloc_stream_ctx().
...
> > + mem_flags |= __GFP_ZERO;
>
> How about calling dma_pool_zalloc() instead of setting __GFP_ZERO flag?
> Memory returned by dma_alloc_coherent() should already be zeroed if I remember correctly
That will work too.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists