From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: fix for +CMER parser of AT driver (fixes registration)
Date: Fri, 18 Jan 2013 18:05:08 -0600 [thread overview]
Message-ID: <50F9E334.4090901@gmail.com> (raw)
In-Reply-To: <20130118224452.GS3604@emdete.de>
[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]
Hi,
> so if only the output of an option list just does not follow the spec
> but most other stuff of the modem works fine why not be more tolerant
> parsing the option list?
>
Actually we do not want to be tolerant. If something is broken, we want
to make sure that any work-around code-path is explicitly called out.
There are many reasons for this, one of the main ones being code
efficiency. The other code readability. Over time such 'workarounds'
pollute the code base and make it ugly; and the reasons for why it is
that way are either lost or become murky. Case in point your patch,
which doesn't even contain a code comment block on what it is trying to
accomplish. (And by the way your coding style is still wrong in several
places...)
> if you instead have a quirk for this and only this modem you fixed only
> a single one. i assume that also other modems are broken in this way and
> fixing it in the parser would enable more modems to work.
>
I do not accept your assumption. We have been using almost the exact
same structure for parsing parameter lists in the SMS driver for over 3
years. So far you are the first to report a modem that behaves in this
manner when it comes to parameter lists.
Regards,
-Denis
next prev parent reply other threads:[~2013-01-19 0:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 20:58 fix for +CMER parser of AT driver (fixes registration) M. Dietrich
2013-01-17 3:28 ` Denis Kenzior
2013-01-18 22:44 ` M. Dietrich
2013-01-19 0:05 ` Denis Kenzior [this message]
2013-01-19 18:28 ` M. Dietrich
2013-01-19 19:05 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50F9E334.4090901@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.