From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933377AbcHDMcu (ORCPT ); Thu, 4 Aug 2016 08:32:50 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:53110 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758386AbcHDMcg (ORCPT ); Thu, 4 Aug 2016 08:32:36 -0400 Date: Thu, 4 Aug 2016 13:23:29 +0100 From: Russell King - ARM Linux To: Daniel Vetter Cc: Daniel Kurtz , Emil Velikov , Mark Rutland , stonea168@163.com, ML dri-devel , Ajay Kumar , Vincent Palatin , cawa cheng , Yingjoe Chen , Thierry Reding , devicetree , Jitao Shi , Pawel Moll , Ian Campbell , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Eddie Huang =?utf-8?B?KOm7g+aZuuWCkSk=?= , LAKML , Rahul Sharma , srv_heupstream , "Linux-Kernel@Vger. Kernel. Org" , Sascha Hauer , Kumar Gala , Andy Yan Subject: Re: [PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge Message-ID: <20160804122329.GT1041@n2100.armlinux.org.uk> References: <1464861445-11086-1-git-send-email-jitao.shi@mediatek.com> <1464861445-11086-2-git-send-email-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2016 at 12:13:52PM +0200, Daniel Vetter wrote: > Might be better to just do a request_firmware on driver load, and > simply proceed if it's not there. That is almost never a good idea - if the driver is built-in, then the request_firmware call happens before the real rootfs is mounted, which makes it complicated to get the firmware delivered to the driver. Sure, it works nicely if the drivers are built as modules, but not everyone wants to deal with modules and initramfs images. If we're wanting to just update the firmware, that should be an explicit administrative decision requiring an explicit action by the system administrator, and not done by placing a file in some magic location so that request_firmware() can find it, which then gets picked up at boot time/driver load time. Consider what could happen if linux-firmware picks up the file and places it in the appropriate location by default. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.