From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from senator.holtmann.net ([87.106.208.187]:48472 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbZJ2N6l (ORCPT ); Thu, 29 Oct 2009 09:58:41 -0400 Subject: Re: [PATCH] firmware_class: make request_firmware_nowait more useful From: Marcel Holtmann To: Johannes Berg Cc: Greg KH , linux-wireless , linux-kernel , Ming Lei , Catalin Marinas , David Woodhouse , Pavel Roskin , Abhay Salunke In-Reply-To: <1256816162.3865.110.camel@johannes.local> References: <1256816162.3865.110.camel@johannes.local> Content-Type: text/plain Date: Thu, 29 Oct 2009 22:58:12 +0900 Message-Id: <1256824692.5768.41.camel@localhost.localdomain> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Johannes, > Unfortunately, one cannot hold on to the struct firmware > that request_firmware_nowait() hands off, which is needed > in some cases. Allow this by requiring the callback to > free it (via release_firmware). > > Additionally, give it a gfp_t parameter -- all the current > users call it from a GFP_KERNEL context so the GFP_ATOMIC > isn't necessary. This also marks an API break which is > useful in a sense, although that is obviously not the > primary purpose of this change. > > Signed-off-by: Johannes Berg I had a look at this one and looks good to me and makes perfect sense. Acked-by: Marcel Holtmann Regards Marcel