Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441221 > unrolled thread

Re: [PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge

Started byDaniel Vetter <daniel@ffwll.ch>
First post2016-07-12 12:20 +0200
Last post2016-07-12 12:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge Daniel Vetter <daniel@ffwll.ch> - 2016-07-12 12:20 +0200

#1441221 — Re: [PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge

FromDaniel Vetter <daniel@ffwll.ch>
Date2016-07-12 12:20 +0200
SubjectRe: [PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge
Message-ID<rU2Xf-3xz-1@gated-at.bofh.it>
On Wed, Jun 29, 2016 at 6:31 AM, Daniel Kurtz <djkurtz@chromium.org> wrote:
> On Fri, Jun 17, 2016 at 3:14 AM, Emil Velikov <emil.l.velikov@gmail.com> wrote:
>>> +static ssize_t ps8640_update_fw_store(struct device *dev,
>>> +                                     struct device_attribute *attr,
>>> +                                     const char *buf, size_t count)
>>> +{
>>> +       struct i2c_client *client = to_i2c_client(dev);
>>> +       struct ps8640 *ps_bridge = i2c_get_clientdata(client);
>>> +       const struct firmware *fw;
>>> +       int error;
>>> +
>>> +       error = request_firmware(&fw, PS_FW_NAME, dev);
>> Can the device operate without a firmware ? If not, why is the
>> firmware loaded so later/after user interaction (via sysfs) ? I don't
>> recall any other driver in DRM to use such an approach.
>
> The PS8640 has internal flash, so it should always already have a
> working firmware.
> This sysfs interface is useful for user space initiated field firmware updates.

Might be better to just do a request_firmware on driver load, and
simply proceed if it's not there. Adding a sysfs interface (which is
abi) seems way too much overkill for this imo. If you want to upgrade
the firmware you can then just drop it into the right directory, with
no further interaction needed.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web