Received: by 10.192.245.15 with SMTP id i15csp1221898imn; Sun, 11 Mar 2018 09:07:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELvlUcm7ppkS39RHdsqx4i2Ku9cLOxJQIeyOIZp8cbEa5jjASNrdcdqQer3rAzJVWY9bN9+q X-Received: by 10.99.120.142 with SMTP id t136mr4102881pgc.300.1520784430107; Sun, 11 Mar 2018 09:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520784430; cv=none; d=google.com; s=arc-20160816; b=g5lUoDMuXI/zEO5ASDm3YwILEb2CFONIl7YZDZ26foG+oDdclN6czmuXenytYvBCuS my8G89l3C0zjDhUSl5eCTS1Tg8GnawGOtpWj9KYirZR4+eRpXKfdhwXDE1waX/aGRIPe RttXtacdXGVmF4Ng77DkC8xewg1dYoiNrPC8hM2jVeoz77M2gdoTJRlA6IhrEvuArtwF 0hMFVZcG7ah3ZacF331gAD6BAbIg8W2HyRcpsN8/vS4peniDw3LOXtq2UkXFB9TvYVHg WZgZZlH6EFXQBk1QZjqZtZpYW8uhzC36OlMPCCZETPjcBKUHtaAzbbWAMU5HujFrcF02 Fn4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature :arc-authentication-results; bh=w0ftyF4iTzeVUVx+vEc0WAJ6Xb81lECVm5NSGac/HBE=; b=m0nlkesy1E7jGmdSZy8Y/LW6YS/D+pTE87DtoLotLq+Z3/HUtn99oKbG15Dm3KUNSU zSLTMPtVB/m6ZbPtXdkMuDutyyzoKIlJpO8+6vKBBw7jN+qwuLNWC+3iiqjUocceBszN 5e5M2iirfsz9MJErrkSTYWtv0AzA5X2TBH2dVfBRVX7j2ZA4ajdrItw0jmSo7oC+y6O3 yfYpQmK8iOhfRmi0/6tdvCiML2xw3Ye49YCKM+s+yx04yKaQBbq66ODyNeSdPm+vJNLs xpmWi+nEu6jVFHVml4oXsqYFdNz+/Tz4sy0QSxR+Q7mYtpXQWDnNy3bT9hFalvuTQISO oyLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SiJLdq93; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190si3679206pgb.460.2018.03.11.09.06.53; Sun, 11 Mar 2018 09:07:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SiJLdq93; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932166AbeCKQF7 (ORCPT + 99 others); Sun, 11 Mar 2018 12:05:59 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:38796 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932123AbeCKQF5 (ORCPT ); Sun, 11 Mar 2018 12:05:57 -0400 Received: by mail-it0-f46.google.com with SMTP id j7-v6so8393797ita.3; Sun, 11 Mar 2018 09:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w0ftyF4iTzeVUVx+vEc0WAJ6Xb81lECVm5NSGac/HBE=; b=SiJLdq93Rf+RU8CPCLIkxYDBj2pmFA9f2MllbeVcXjHWD5JQ0tU8witN3wIRUcS2B0 UHgZCasTKSaK9oJZdATwp12nCtNOD6noS8wsXdv+Tny1U5apxWbf42HyKpOOomIV0bsy QCdY9IHb/ZPlXV+zLYTAR1X/++DFqxfWMrKIloSbnwUijAMIgDnjweQfC+bq0rnC7HVQ Y6opXOxPJ0dtyxIF6u4SXWVCMAxkHpIQkS55UG6zhnksVSt9VfbSviF9VR9H6MINVTQ4 y7k5UyN/vcUQfNM01Wjm64HB+RV6w/T3UltVnoIMlEFIgR7QkcPXkFjEkZ3DpyadG83f wC6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w0ftyF4iTzeVUVx+vEc0WAJ6Xb81lECVm5NSGac/HBE=; b=gKMLHfNF4slT9Sh81hMvr3277E6p2yRz2zJDoueA+Py5M+rNxKmc5YsCSNzrh0rmHF yldWTFip4E5QOCu0TdXzTdO925dopMFj265kIsy8oMCWkeT85KMsMjVoFHVsj1dLYPzl YibRFtUz/gOr5eHM1P/DrrUx0qU2SMspjmDWoUkYi6OWILGnyaTI7JIrtijT8UJUmB/w +5MHCnDoWZFyMKYgp2BsGT6s499q4iwPM9P9pEqxIFpJ9l7Un+vks1q2ZtwXzokZVx9/ 3myjSjy77JZrYYg68mCDe+xXjnJHIl7EazyoGMqPWGtbdsgoTLbdh63YTGQfF0UStvfn 3YsA== X-Gm-Message-State: AElRT7G9LSDI1+UmlzGgejlv7Da3R6/aCyh1+MiC6jL2xPOXZBT0eA+6 K3WHT8g7k3hElkWQvKgE/Ew= X-Received: by 10.36.125.134 with SMTP id b128mr5409833itc.80.1520784356569; Sun, 11 Mar 2018 09:05:56 -0700 (PDT) Received: from [192.168.0.26] (184-175-36-239.dsl.teksavvy.com. [184.175.36.239]) by smtp.gmail.com with ESMTPSA id j2sm3506831iob.43.2018.03.11.09.05.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Mar 2018 09:05:55 -0700 (PDT) Cc: andresx7@gmail.com, "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , linux-wireless , Arend Van Spriel , Kalle Valo , Ilia Mirkin Subject: Re: [PATCH] firmware: add a function to load optional firmware v2 To: "Luis R. Rodriguez" References: <20180309221243.15489-2-andresx7@gmail.com> <20180309230925.3573-1-andresx7@gmail.com> From: Andres Rodriguez Message-ID: Date: Sun, 11 Mar 2018 12:05:54 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luis, Thanks for all your feedback, greatly appreciated. On 2018-03-10 09:40 AM, Luis R. Rodriguez wrote: > On Sat, Mar 10, 2018 at 6:35 AM, Luis R. Rodriguez wrote: >> You also I take it have users in >> mind? I'd like to see at least one user of the API or this fixing a >> reported issue. Ie, if users have reported this as issues incorrectly, >> referring to those incorrect posts as issues and how this created >> confusion would help. The current user I have in mind is amdgpu. I've got some local patches for changing it to use request_firmware_optional() for the optional firmware files. I will include them in the v3 of this series. I've also queried some devs from the other DRM drivers in case this might be useful to them. So far I've gotten a reply from the nouveau devs who are also interested. > > Your patch series then should also have the driver callers who you > want to modify to use this new API. Collect from the 802.11 folks the > other drivers which I think they wanted changed as well. Arend, Kalle, would love to hear your feedback. > The old up on > that front was that the firmware API was in a huge state of flux and > debate about *how* we'd evolve the API, either through a data driven > API or functional driven API, ie whether or not we'd add a flexible > one API call with a set of options, or keep extending functionality > with new exported symbols per use case. The later is how we'd keep > evolving the API as such the way you are doing it is fine. Ie, if > there is a use case for an optional firmware also for the async case a > new API call will have to be made. As stupid as this sounds. > Seems like I got lucky with my timing for this request :) > Also please take a look at lib/test_firmware.c -- I don't think it > makes sense to add a new test case for this API call, so at least > worth documenting why somewhere if you find a suitable place for that. > > Also - I forgot to ask you to extend the > Documentation/driver-api/firmware/ documentation accordingly. Please > do that. > Will do, for these and the feedback in the previous Email. -Andres > Luis >