diff for duplicates of <20170113132238.GB6864@dell> diff --git a/a/1.txt b/N1/1.txt index 0e55b67..14956e1 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,10 +1,10 @@ On Wed, 11 Jan 2017, Enric Balletbo i Serra wrote: > From: Gwendal Grignou <gwendal@chromium.org> ->=20 +> > Add cros_ec_get_event() entry point to retrieve event within functions > called by the notifier. ->=20 +> > Signed-off-by: Gwendal Grignou <gwendal@chromium.org> > Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> > --- @@ -15,14 +15,12 @@ On Wed, 11 Jan 2017, Enric Balletbo i Serra wrote: Acked-by: Lee Jones <lee.jones@linaro.org> > 2 files changed, 30 insertions(+) ->=20 -> diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/c= -hrome/cros_ec_proto.c +> +> diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c > index ed5dee7..7428c2b 100644 > --- a/drivers/platform/chrome/cros_ec_proto.c > +++ b/drivers/platform/chrome/cros_ec_proto.c -> @@ -494,3 +494,23 @@ int cros_ec_get_next_event(struct cros_ec_device *ec= -_dev) +> @@ -494,3 +494,23 @@ int cros_ec_get_next_event(struct cros_ec_device *ec_dev) > return get_keyboard_state_event(ec_dev); > } > EXPORT_SYMBOL(cros_ec_get_next_event); @@ -33,15 +31,15 @@ _dev) > + > + BUG_ON(!ec_dev->mkbp_event_supported); > + -> + if (ec_dev->event_data.event_type !=3D EC_MKBP_EVENT_HOST_EVENT) +> + if (ec_dev->event_data.event_type != EC_MKBP_EVENT_HOST_EVENT) > + return 0; > + -> + if (ec_dev->event_size !=3D sizeof(host_event)) { +> + if (ec_dev->event_size != sizeof(host_event)) { > + dev_warn(ec_dev->dev, "Invalid host event size\n"); > + return 0; > + } > + -> + host_event =3D get_unaligned_le32(&ec_dev->event_data.data.host_event); +> + host_event = get_unaligned_le32(&ec_dev->event_data.data.host_event); > + > + return host_event; > +} @@ -50,17 +48,15 @@ _dev) > index b3d04de..be2c4eb 100644 > --- a/include/linux/mfd/cros_ec.h > +++ b/include/linux/mfd/cros_ec.h -> @@ -299,6 +299,16 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev)= -; +> @@ -299,6 +299,16 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev); > */ > int cros_ec_get_next_event(struct cros_ec_device *ec_dev); -> =20 +> > +/** > + * cros_ec_get_host_event - Return a mask of event set by the EC. > + * > + * When MKBP is supported, when the EC raises an interrupt, -> + * We collect the events raised and call the functions in the ec notifie= -r. +> + * We collect the events raised and call the functions in the ec notifier. > + * > + * This function is a helper to know which events are raised. > + */ @@ -70,20 +66,8 @@ r. > extern struct attribute_group cros_ec_attr_group; > extern struct attribute_group cros_ec_lightbar_attr_group; ---=20 +-- Lee Jones Linaro STMicroelectronics Landing Team Lead -Linaro.org =E2=94=82 Open source software for ARM SoCs +Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog - ---=20 -You received this message because you are subscribed to "rtc-linux". -Membership options at http://groups.google.com/group/rtc-linux . -Please read http://groups.google.com/group/rtc-linux/web/checklist -before submitting a driver. ----=20 -You received this message because you are subscribed to the Google Groups "= -rtc-linux" group. -To unsubscribe from this group and stop receiving emails from it, send an e= -mail to rtc-linux+unsubscribe@googlegroups.com. -For more options, visit https://groups.google.com/d/optout. diff --git a/a/content_digest b/N1/content_digest index de0191c..0cfc1d8 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "ref\020170111165221.17337-1-enric.balletbo@collabora.com\0" "From\0Lee Jones <lee.jones@linaro.org>\0" - "Subject\0[rtc-linux] Re: [PATCH 1/4] mfd: cros_ec: Add helper for event notifier.\0" + "Subject\0Re: [PATCH 1/4] mfd: cros_ec: Add helper for event notifier.\0" "Date\0Fri, 13 Jan 2017 13:22:38 +0000\0" "To\0Enric Balletbo i Serra <enric.balletbo@collabora.com>\0" "Cc\0linux-kernel@vger.kernel.org" @@ -15,10 +15,10 @@ "On Wed, 11 Jan 2017, Enric Balletbo i Serra wrote:\n" "\n" "> From: Gwendal Grignou <gwendal@chromium.org>\n" - ">=20\n" + "> \n" "> Add cros_ec_get_event() entry point to retrieve event within functions\n" "> called by the notifier.\n" - ">=20\n" + "> \n" "> Signed-off-by: Gwendal Grignou <gwendal@chromium.org>\n" "> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>\n" "> ---\n" @@ -29,14 +29,12 @@ "Acked-by: Lee Jones <lee.jones@linaro.org>\n" "\n" "> 2 files changed, 30 insertions(+)\n" - ">=20\n" - "> diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/c=\n" - "hrome/cros_ec_proto.c\n" + "> \n" + "> diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c\n" "> index ed5dee7..7428c2b 100644\n" "> --- a/drivers/platform/chrome/cros_ec_proto.c\n" "> +++ b/drivers/platform/chrome/cros_ec_proto.c\n" - "> @@ -494,3 +494,23 @@ int cros_ec_get_next_event(struct cros_ec_device *ec=\n" - "_dev)\n" + "> @@ -494,3 +494,23 @@ int cros_ec_get_next_event(struct cros_ec_device *ec_dev)\n" "> \t\treturn get_keyboard_state_event(ec_dev);\n" "> }\n" "> EXPORT_SYMBOL(cros_ec_get_next_event);\n" @@ -47,15 +45,15 @@ "> +\n" "> +\tBUG_ON(!ec_dev->mkbp_event_supported);\n" "> +\n" - "> +\tif (ec_dev->event_data.event_type !=3D EC_MKBP_EVENT_HOST_EVENT)\n" + "> +\tif (ec_dev->event_data.event_type != EC_MKBP_EVENT_HOST_EVENT)\n" "> +\t\treturn 0;\n" "> +\n" - "> +\tif (ec_dev->event_size !=3D sizeof(host_event)) {\n" + "> +\tif (ec_dev->event_size != sizeof(host_event)) {\n" "> +\t\tdev_warn(ec_dev->dev, \"Invalid host event size\\n\");\n" "> +\t\treturn 0;\n" "> +\t}\n" "> +\n" - "> +\thost_event =3D get_unaligned_le32(&ec_dev->event_data.data.host_event);\n" + "> +\thost_event = get_unaligned_le32(&ec_dev->event_data.data.host_event);\n" "> +\n" "> +\treturn host_event;\n" "> +}\n" @@ -64,17 +62,15 @@ "> index b3d04de..be2c4eb 100644\n" "> --- a/include/linux/mfd/cros_ec.h\n" "> +++ b/include/linux/mfd/cros_ec.h\n" - "> @@ -299,6 +299,16 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev)=\n" - ";\n" + "> @@ -299,6 +299,16 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev);\n" "> */\n" "> int cros_ec_get_next_event(struct cros_ec_device *ec_dev);\n" - "> =20\n" + "> \n" "> +/**\n" "> + * cros_ec_get_host_event - Return a mask of event set by the EC.\n" "> + *\n" "> + * When MKBP is supported, when the EC raises an interrupt,\n" - "> + * We collect the events raised and call the functions in the ec notifie=\n" - "r.\n" + "> + * We collect the events raised and call the functions in the ec notifier.\n" "> + *\n" "> + * This function is a helper to know which events are raised.\n" "> + */\n" @@ -84,22 +80,10 @@ "> extern struct attribute_group cros_ec_attr_group;\n" "> extern struct attribute_group cros_ec_lightbar_attr_group;\n" "\n" - "--=20\n" + "-- \n" "Lee Jones\n" "Linaro STMicroelectronics Landing Team Lead\n" - "Linaro.org =E2=94=82 Open source software for ARM SoCs\n" - "Follow Linaro: Facebook | Twitter | Blog\n" - "\n" - "--=20\n" - "You received this message because you are subscribed to \"rtc-linux\".\n" - "Membership options at http://groups.google.com/group/rtc-linux .\n" - "Please read http://groups.google.com/group/rtc-linux/web/checklist\n" - "before submitting a driver.\n" - "---=20\n" - "You received this message because you are subscribed to the Google Groups \"=\n" - "rtc-linux\" group.\n" - "To unsubscribe from this group and stop receiving emails from it, send an e=\n" - "mail to rtc-linux+unsubscribe@googlegroups.com.\n" - For more options, visit https://groups.google.com/d/optout. + "Linaro.org \342\224\202 Open source software for ARM SoCs\n" + Follow Linaro: Facebook | Twitter | Blog -b7cb6fbf79aeaa71d03c594153c508cdd53b34a292c846d4a24aeba7dd88f136 +f66a403a033c3d63c9e1a06c0c6a13468c03813698ee375a79815f5a9d9f8826
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.