From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 1/1] isimodem: Adding version isimodem and isimodem2.5
Date: Tue, 25 Jan 2011 13:45:50 +0100 [thread overview]
Message-ID: <1295959550.1520.43.camel@aeonflux> (raw)
In-Reply-To: <AANLkTik7d2_wahOGoEb3fSGbgfJw1vLfbyrbKeH7wofR@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]
Hi Aki,
> >> +enum isi_version {
> >> + ISI_20 = 0,
> >> + ISI_25 = 1
> >> +};
> >> +
> >
> > If we follow the same layout as with all other modem drivers, then the
> > *modem.h should only contain the prototypes for the init callbacks.
> >
> >> extern struct ofono_modem *isi_modem_by_interface(char const *ifname);
> >
> > This one already violates this one and might need to be cleaned up.
> >
> > The ISI modem is special since it really only has two users anyway in
> > the end, but maybe drivers/isimodem/version.h analog to vendor.h from
> > atmodem might be a good idea.
> >
> > Aki, what is your preference here?
>
> I don't think there is a need for this, as ISI itself already provides
> both ISI version (which we have available always via the
> g_isi_client_verify() call), and in many cases also the resource ID as
> means to find the correct quirk to use.
>
> Of course, I could be convinced otherwise, but not without seeing
> actual patches. It might become extremely ugly with using ISI version
> and the resource ID, and using something like vendor.h might then make
> sense.
if you don't need external version or vendor quirks, then even better.
We are just damn unlucky in the atmodem case. The less the modem plugins
have to specify the better.
So this clearly then is not suppose to be in isimodem.h and while at it,
someone might wanna cleanup isi_modem_by_interface and move it to a
better location.
Regards
Marcel
next prev parent reply other threads:[~2011-01-25 12:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 12:10 [PATCH 1/1] isimodem: Adding version isimodem and isimodem2.5 Jessica Nilsson
2011-01-25 12:23 ` Marcel Holtmann
2011-01-25 12:39 ` Aki Niemi
2011-01-25 12:45 ` Marcel Holtmann [this message]
2011-01-25 12:52 ` Aki Niemi
2011-01-25 12:53 ` Marcel Holtmann
2011-01-25 13:20 ` Jessica Nilsson
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=1295959550.1520.43.camel@aeonflux \
--to=marcel@holtmann.org \
--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.