From: Daniel Ribeiro <drwyrm@gmail.com>
To: Eric Miao <eric.y.miao@gmail.com>
Cc: Stefan Schmidt <stefan@datenfreihafen.org>,
pHilipp Zabel <philipp.zabel@gmail.com>,
linux-arm-kernel@lists.arm.linux.org.uk, sameo@openedhand.com,
linux-kernel@vger.kernel.org
Subject: Re: [Patch 06/10] mfd: PCAP driver for the Motorola EZX GSM mobile phones
Date: Tue, 08 Jul 2008 11:01:51 -0300 [thread overview]
Message-ID: <4873734F.4030808@gmail.com> (raw)
In-Reply-To: <48730DE2.2050302@gmail.com>
Eric Miao escreveu:
> The irq2pcap[] array looks horrible to me. It's actually a sparse array.
> Isn't there a nice 1:1 mapping using a formular??
>
> Besides, the IRQ numbering scheme has now changed to a more generic way,
> I suggest to pull from Russell's latest git tree and rebase the IRQ
> part.
Will do as you suggested and get rid of the arrays.
> The following block of code:
>
> + if (pcap_data->cs >= 0) {
> + if (machine_is_ezx_a780() || machine_is_ezx_e680())
> + gpio_direction_output(pcap_data->cs, 1);
> + else
> + gpio_direction_output(pcap_data->cs, 0);
> + }
>
> has 3 occurrences in the driver (2 in ezx_ssp_pcap_putget, 1 in ezx_pcap_probe)
> which is good reason to fold this into the platform data.
>
> Well, if the above is done in platform data, I guess you won't mind another bit
> flag (e.g. PCAP_REDIRECT_IRQ or something alike) added in platform data, either
Moved to platform data. What should PCAP_REDIRECT_IRQ flag do?
--
Daniel Ribeiro
next prev parent reply other threads:[~2008-07-08 14:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080707184000.411913919@datenfreihafen.org>
2008-07-07 18:40 ` [Patch 06/10] mfd: PCAP driver for the Motorola EZX GSM mobile phones stefan
2008-07-07 19:21 ` pHilipp Zabel
2008-07-07 20:02 ` Stefan Schmidt
2008-07-08 6:49 ` Eric Miao
2008-07-08 14:01 ` Daniel Ribeiro [this message]
2008-07-08 20:32 ` Stefan Schmidt
2008-07-08 21:19 ` pHilipp Zabel
2008-07-09 2:34 ` Eric Miao
2008-07-09 6:26 ` Stefan Schmidt
2008-07-09 15:29 ` Liam Girdwood
2008-07-10 16:21 ` Russell King - ARM Linux
2008-07-10 16:40 ` Stefan Schmidt
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=4873734F.4030808@gmail.com \
--to=drwyrm@gmail.com \
--cc=eric.y.miao@gmail.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=philipp.zabel@gmail.com \
--cc=sameo@openedhand.com \
--cc=stefan@datenfreihafen.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox