Re: [RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-03-02 Thread One Thousand Gnomes
> +static int cros_ec_get_host_command_version_mask(struct cros_ec_device > *ec_dev, > + u16 cmd, u32 *mask) > +{ > + struct ec_params_get_cmd_versions *pver; > + struct ec_response_get_cmd_versions *rver; > + struct cros_ec_command *msg; > + int ret; > + > + msg =

Re: [RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-03-02 Thread One Thousand Gnomes
> +static int cros_ec_get_host_command_version_mask(struct cros_ec_device > *ec_dev, > + u16 cmd, u32 *mask) > +{ > + struct ec_params_get_cmd_versions *pver; > + struct ec_response_get_cmd_versions *rver; > + struct cros_ec_command *msg; > + int ret; > + > + msg =

[RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-03-02 Thread Tomeu Vizoso
From: Vic Yang Newer revisions of the ChromeOS EC add more events besides the keyboard ones. So handle interrupts in the MFD driver and let consumers register for notifications for the events they might care. To keep backward compatibility, if the EC doesn't support MKBP

[RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-03-02 Thread Tomeu Vizoso
From: Vic Yang Newer revisions of the ChromeOS EC add more events besides the keyboard ones. So handle interrupts in the MFD driver and let consumers register for notifications for the events they might care. To keep backward compatibility, if the EC doesn't support MKBP event, we fall back to