* [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C
@ 2022-10-23 0:54 Jeff LaBundy
2022-10-28 7:56 ` Mattijs Korpershoek
0 siblings, 1 reply; 5+ messages in thread
From: Jeff LaBundy @ 2022-10-23 0:54 UTC (permalink / raw)
To: dmitry.torokhov, robh+dt; +Cc: linux-input, devicetree, jeff
This series comprises a second round of fixes that result from
continued testing and updated guidance from the vendor.
Jeff LaBundy (7):
Input: iqs7222 - drop unused device node references
dt-bindings: input: iqs7222: Reduce 'linux,code' to optional
Input: iqs7222 - report malformed properties
dt-bindings: input: iqs7222: Correct minimum slider size
Input: iqs7222 - protect against undefined slider size
dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+
Input: iqs7222 - add support for IQS7222A v1.13+
.../bindings/input/azoteq,iqs7222.yaml | 25 +-
drivers/input/misc/iqs7222.c | 504 +++++++++++-------
2 files changed, 311 insertions(+), 218 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C
2022-10-23 0:54 [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C Jeff LaBundy
@ 2022-10-28 7:56 ` Mattijs Korpershoek
2022-10-28 13:25 ` Jeff LaBundy
0 siblings, 1 reply; 5+ messages in thread
From: Mattijs Korpershoek @ 2022-10-28 7:56 UTC (permalink / raw)
To: Jeff LaBundy, dmitry.torokhov, robh+dt; +Cc: linux-input, devicetree, jeff
On sam., oct. 22, 2022 at 19:54, Jeff LaBundy <jeff@labundy.com> wrote:
> This series comprises a second round of fixes that result from
> continued testing and updated guidance from the vendor.
>
> Jeff LaBundy (7):
> Input: iqs7222 - drop unused device node references
> dt-bindings: input: iqs7222: Reduce 'linux,code' to optional
> Input: iqs7222 - report malformed properties
> dt-bindings: input: iqs7222: Correct minimum slider size
> Input: iqs7222 - protect against undefined slider size
> dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+
> Input: iqs7222 - add support for IQS7222A v1.13+
>
> .../bindings/input/azoteq,iqs7222.yaml | 25 +-
> drivers/input/misc/iqs7222.c | 504 +++++++++++-------
> 2 files changed, 311 insertions(+), 218 deletions(-)
Not sure this requires a re-send, but the series seems ill-formatted.
all patches are posted separately to the list instead of replying to the
cover letter. Is that expected?
>
> --
> 2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C
2022-10-28 7:56 ` Mattijs Korpershoek
@ 2022-10-28 13:25 ` Jeff LaBundy
2022-10-28 16:14 ` Dmitry Torokhov
0 siblings, 1 reply; 5+ messages in thread
From: Jeff LaBundy @ 2022-10-28 13:25 UTC (permalink / raw)
To: Mattijs Korpershoek; +Cc: dmitry.torokhov, robh+dt, linux-input, devicetree
Hi Mattijs,
Thank you for reaching out and helping to review this series.
On Fri, Oct 28, 2022 at 09:56:37AM +0200, Mattijs Korpershoek wrote:
> On sam., oct. 22, 2022 at 19:54, Jeff LaBundy <jeff@labundy.com> wrote:
>
> > This series comprises a second round of fixes that result from
> > continued testing and updated guidance from the vendor.
> >
> > Jeff LaBundy (7):
> > Input: iqs7222 - drop unused device node references
> > dt-bindings: input: iqs7222: Reduce 'linux,code' to optional
> > Input: iqs7222 - report malformed properties
> > dt-bindings: input: iqs7222: Correct minimum slider size
> > Input: iqs7222 - protect against undefined slider size
> > dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+
> > Input: iqs7222 - add support for IQS7222A v1.13+
> >
> > .../bindings/input/azoteq,iqs7222.yaml | 25 +-
> > drivers/input/misc/iqs7222.c | 504 +++++++++++-------
> > 2 files changed, 311 insertions(+), 218 deletions(-)
>
> Not sure this requires a re-send, but the series seems ill-formatted.
> all patches are posted separately to the list instead of replying to the
> cover letter. Is that expected?
Yes, this was a goof on my part. I see that the series is threaded
properly on Patchwork but not on lore.kernel.org.
Much to my dismay, my mail service recently began enforcing OAuth2
but declined to enable app-specific passwords as Gmail and others
do. I can therefore no longer use git send-email directly and I am
instead emulating it with a script that tunnels patches through mutt.
In this last series, my script inadvertenly dropped the '< >' from
the cover letter's message ID, so some mailers may see this series
as seven separate threads. This is fixed now.
That being said, I see this series was already applied earlier this
week; I think a mail simply did not go out. So no further action is
needed.
>
> >
> > --
> > 2.34.1
Kind regards,
Jeff LaBundy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C
2022-10-28 13:25 ` Jeff LaBundy
@ 2022-10-28 16:14 ` Dmitry Torokhov
2022-11-02 4:58 ` Jeff LaBundy
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2022-10-28 16:14 UTC (permalink / raw)
To: Jeff LaBundy; +Cc: Mattijs Korpershoek, robh+dt, linux-input, devicetree
[-- Attachment #1: Type: text/plain, Size: 2732 bytes --]
On Fri, Oct 28, 2022 at 08:25:07AM -0500, Jeff LaBundy wrote:
> Hi Mattijs,
>
> Thank you for reaching out and helping to review this series.
>
> On Fri, Oct 28, 2022 at 09:56:37AM +0200, Mattijs Korpershoek wrote:
> > On sam., oct. 22, 2022 at 19:54, Jeff LaBundy <jeff@labundy.com> wrote:
> >
> > > This series comprises a second round of fixes that result from
> > > continued testing and updated guidance from the vendor.
> > >
> > > Jeff LaBundy (7):
> > > Input: iqs7222 - drop unused device node references
> > > dt-bindings: input: iqs7222: Reduce 'linux,code' to optional
> > > Input: iqs7222 - report malformed properties
> > > dt-bindings: input: iqs7222: Correct minimum slider size
> > > Input: iqs7222 - protect against undefined slider size
> > > dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+
> > > Input: iqs7222 - add support for IQS7222A v1.13+
> > >
> > > .../bindings/input/azoteq,iqs7222.yaml | 25 +-
> > > drivers/input/misc/iqs7222.c | 504 +++++++++++-------
> > > 2 files changed, 311 insertions(+), 218 deletions(-)
> >
> > Not sure this requires a re-send, but the series seems ill-formatted.
> > all patches are posted separately to the list instead of replying to the
> > cover letter. Is that expected?
>
> Yes, this was a goof on my part. I see that the series is threaded
> properly on Patchwork but not on lore.kernel.org.
>
> Much to my dismay, my mail service recently began enforcing OAuth2
> but declined to enable app-specific passwords as Gmail and others
> do. I can therefore no longer use git send-email directly and I am
You can teach git to work with OAuth - I am using Gmail without
application specific passwords. You simply need to use the credential
helper that would give the token instead of a password.
I have the following in my .gitconfig:
[credential]
helper = cache --timeout=3000
helper = local-helper
and I am using the attached script that gets client ID and refresh token
from the disk and generates authentication token. The script is using
Google OAUTH library and endpoint, but since you taught mutt how to work
with your provider you should be able to adjust it as needed.
And please do not judge me for this script ;)
> instead emulating it with a script that tunnels patches through mutt.
>
> In this last series, my script inadvertenly dropped the '< >' from
> the cover letter's message ID, so some mailers may see this series
> as seven separate threads. This is fixed now.
>
> That being said, I see this series was already applied earlier this
> week; I think a mail simply did not go out. So no further action is
> needed.
Sorry, my bad, I forgot to send the notice.
Thanks.
--
Dmitry
[-- Attachment #2: git-credential-local-helper --]
[-- Type: text/plain, Size: 3360 bytes --]
#!/usr/bin/env python3
import argparse
import gnupg
import os
import sys
from google.oauth2.credentials import Credentials as Oauth2Creds
from google.auth.transport.requests import Request as AuthRequest
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
class SMTPCredential(object):
CONFIG_DICT = {
'dtor@chromium.org' : ('Chromium', False),
'dtor@google.com' : ('Google', False),
'dmitry.torokhov@gmail.com' : ('Gmail', True),
'dtor@kernel.org' : ('Kernel.org', False),
}
def __init__(self):
self.gpg = gnupg.GPG(gpgbinary="gpg2", use_agent=True)
self.data_path = os.path.expanduser('~/.mutt/passwords/')
def get_unencrypted_data(self, config_name):
file_name = os.path.join(self.data_path, config_name)
with open(file_name, 'r') as fp:
lines = fp.read().splitlines()
return next(iter(lines), None)
def get_encrypted_data(self, config_name):
file_name = os.path.join(self.data_path, config_name)
with open(file_name, 'rb') as fp:
crypt = self.gpg.decrypt_file(fp)
if crypt.ok:
lines = crypt.data.splitlines()
return next(iter(lines), None)
def get_password(self, config_name):
return self.get_encrypted_data(config_name)
def get_oauth2_creds(self, config_name):
client_id = self.get_unencrypted_data(config_name + ".oauth.client")
client_secret = self.get_encrypted_data(config_name + ".oauth.secret")
refresh_token = self.get_encrypted_data(config_name + ".oauth.refresh")
if client_id and client_secret and refresh_token:
return Oauth2Creds(None,
refresh_token=refresh_token,
token_uri='https://oauth2.googleapis.com/token',
client_id=client_id,
client_secret=client_secret)
def get_oauth2_token(self, config_name):
creds = self.get_oauth2_creds(config_name)
if creds:
creds.refresh(AuthRequest())
return creds.token
def get(self, username, **kwargs):
(name, oauth2) = self.CONFIG_DICT[username]
secret = self.get_oauth2_token(name) if oauth2 \
else self.get_password(name)
if secret:
print("password={0}".format(secret))
def main():
parser = argparse.ArgumentParser()
parser.add_argument('operation', action="store", type=str,
help="Git action to be performed (get|store|erase)")
# parse all arguments
arguments = parser.parse_args()
myvars = {}
for line in sys.stdin:
name, val = line.partition("=")[::2]
myvars[name.strip()] = val.strip()
if arguments.operation == "get":
try:
protocol = myvars.pop('protocol')
username = myvars.pop('username')
cred_class = globals()[protocol.upper() + "Credential"]
cred = cred_class()
cred.get(username, **myvars)
except:
eprint("Failed to get credential")
raise
elif arguments.operation == "store":
pass
elif arguments.operation == "erase":
pass
else:
eprint("Invalid git operation")
if __name__ == "__main__":
main()
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C
2022-10-28 16:14 ` Dmitry Torokhov
@ 2022-11-02 4:58 ` Jeff LaBundy
0 siblings, 0 replies; 5+ messages in thread
From: Jeff LaBundy @ 2022-11-02 4:58 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Mattijs Korpershoek, robh+dt, linux-input, devicetree
Hi Dmitry,
On Fri, Oct 28, 2022 at 09:14:54AM -0700, Dmitry Torokhov wrote:
> On Fri, Oct 28, 2022 at 08:25:07AM -0500, Jeff LaBundy wrote:
> > Hi Mattijs,
> >
> > Thank you for reaching out and helping to review this series.
> >
> > On Fri, Oct 28, 2022 at 09:56:37AM +0200, Mattijs Korpershoek wrote:
> > > On sam., oct. 22, 2022 at 19:54, Jeff LaBundy <jeff@labundy.com> wrote:
> > >
> > > > This series comprises a second round of fixes that result from
> > > > continued testing and updated guidance from the vendor.
> > > >
> > > > Jeff LaBundy (7):
> > > > Input: iqs7222 - drop unused device node references
> > > > dt-bindings: input: iqs7222: Reduce 'linux,code' to optional
> > > > Input: iqs7222 - report malformed properties
> > > > dt-bindings: input: iqs7222: Correct minimum slider size
> > > > Input: iqs7222 - protect against undefined slider size
> > > > dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+
> > > > Input: iqs7222 - add support for IQS7222A v1.13+
> > > >
> > > > .../bindings/input/azoteq,iqs7222.yaml | 25 +-
> > > > drivers/input/misc/iqs7222.c | 504 +++++++++++-------
> > > > 2 files changed, 311 insertions(+), 218 deletions(-)
> > >
> > > Not sure this requires a re-send, but the series seems ill-formatted.
> > > all patches are posted separately to the list instead of replying to the
> > > cover letter. Is that expected?
> >
> > Yes, this was a goof on my part. I see that the series is threaded
> > properly on Patchwork but not on lore.kernel.org.
> >
> > Much to my dismay, my mail service recently began enforcing OAuth2
> > but declined to enable app-specific passwords as Gmail and others
> > do. I can therefore no longer use git send-email directly and I am
>
> You can teach git to work with OAuth - I am using Gmail without
> application specific passwords. You simply need to use the credential
> helper that would give the token instead of a password.
>
> I have the following in my .gitconfig:
>
> [credential]
> helper = cache --timeout=3000
> helper = local-helper
>
> and I am using the attached script that gets client ID and refresh token
> from the disk and generates authentication token. The script is using
> Google OAUTH library and endpoint, but since you taught mutt how to work
> with your provider you should be able to adjust it as needed.
>
> And please do not judge me for this script ;)
Thank you for these clues; I will give this method a shot.
>
> > instead emulating it with a script that tunnels patches through mutt.
> >
> > In this last series, my script inadvertenly dropped the '< >' from
> > the cover letter's message ID, so some mailers may see this series
> > as seven separate threads. This is fixed now.
> >
> > That being said, I see this series was already applied earlier this
> > week; I think a mail simply did not go out. So no further action is
> > needed.
>
> Sorry, my bad, I forgot to send the notice.
>
> Thanks.
>
> --
> Dmitry
Kind regards,
Jeff LaBundy
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-02 4:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-23 0:54 [PATCH v3 0/7] Additional fixes for Azoteq IQS7222A/B/C Jeff LaBundy
2022-10-28 7:56 ` Mattijs Korpershoek
2022-10-28 13:25 ` Jeff LaBundy
2022-10-28 16:14 ` Dmitry Torokhov
2022-11-02 4:58 ` Jeff LaBundy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).