From: Guenter Roeck <linux@roeck-us.net>
To: Johannes Thumshirn <johannes.thumshirn@men.de>,
Lee Jones <lee.jones@linaro.org>
Cc: Andreas Werner <andreas.werner@men.de>,
linux-kernel@vger.kernel.org, sameo@linux.intel.com,
wim@iguana.be, linux-watchdog@vger.kernel.org,
cooloney@gmail.com, rpurdie@rpsys.net,
linux-leds@vger.kernel.org
Subject: Re: [PATCH v2 1/3] drivers/mfd/menf21bmc: introduce MEN 14F021P00 BMC MFD Core driver
Date: Wed, 28 May 2014 06:27:52 -0700 [thread overview]
Message-ID: <5385E458.3040601@roeck-us.net> (raw)
In-Reply-To: <20140528070222.GA24101@jtlinux>
On 05/28/2014 12:02 AM, Johannes Thumshirn wrote:
[ ... ]
>>> +
>>> +static int menf21bmc_write_byte(struct i2c_client *client, u8 val)
>>> +{
>>> + int ret;
>>> + struct menf21bmc *data = i2c_get_clientdata(client);
>>> +
>>> + mutex_lock(&data->lock);
>>> + ret = i2c_smbus_write_byte(client, val);
>>> + mutex_unlock(&data->lock);
>>> +
>>> + return ret;
>>> +}
>>
>> Didn't we ask you to remove these? Just make the i2c_smbus_* calls
>> from within the driver. The I2C subsystem conducts its own locking.
>> I'm really starting to frown on aggregation for the sake of
>> aggregation. It's just overhead.
>>
>
> Correct me if I'm wrong but as far as I remember Guenther asked to retain the
> original API, not the remove the "abstraction layer". Once we build a board with
> one of these BMCs attached via e.g. SPI we would have to reintroduce it anyways,
> in order to re-use these drivers.
>
If you introduce boards with SPI support, you'll likely have to change those APIs,
since some of the functions don't make sense in the SPI world. So I tend to agree
with Lee. If you need those APIs later on you can introduce them at that time,
and introduce them such that they truly work for all hardware variants.
Guenter
next prev parent reply other threads:[~2014-05-28 13:28 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 9:05 [PATCH v2 0/3] Introduce MEN 14F02100 BMC driver series Andreas Werner
2014-05-27 9:05 ` Andreas Werner
2014-05-27 9:06 ` [PATCH v2 1/3] drivers/mfd/menf21bmc: introduce MEN 14F021P00 BMC MFD Core driver Andreas Werner
2014-05-27 9:06 ` Andreas Werner
2014-05-27 15:05 ` Lee Jones
2014-05-28 7:02 ` Johannes Thumshirn
2014-05-28 7:02 ` Johannes Thumshirn
2014-05-28 8:24 ` Lee Jones
2014-05-28 11:51 ` Andreas Werner
2014-05-28 11:51 ` Andreas Werner
2014-05-28 13:29 ` Guenter Roeck
2014-05-28 13:52 ` Guenter Roeck
2014-06-02 8:06 ` Andreas Werner
2014-06-02 8:06 ` Andreas Werner
2014-05-28 13:27 ` Guenter Roeck [this message]
2014-06-04 13:50 ` Andreas Werner
2014-06-04 13:50 ` Andreas Werner
2014-06-04 13:50 ` Andreas Werner
2014-05-27 9:07 ` [PATCH v2 2/3] drivers/watchdog/menf21bmc_wd: introduce MEN 14F021P00 BMC Watchdog driver Andreas Werner
2014-05-27 9:07 ` Andreas Werner
2014-05-27 9:08 ` [PATCH v2 3/3] drivers/leds/leds-menf21bmc: introduce MEN 14F021P00 BMC LED driver Andreas Werner
2014-05-27 9:08 ` Andreas Werner
2014-06-25 23:10 ` Bryan Wu
2014-06-26 7:34 ` AW: " Thumshirn, Johannes Tobias
2014-06-26 7:34 ` Thumshirn, Johannes Tobias
2014-06-26 7:34 ` Thumshirn, Johannes Tobias
2014-07-18 10:48 ` Andreas Werner
2014-07-18 10:48 ` Andreas Werner
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=5385E458.3040601@roeck-us.net \
--to=linux@roeck-us.net \
--cc=andreas.werner@men.de \
--cc=cooloney@gmail.com \
--cc=johannes.thumshirn@men.de \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=rpurdie@rpsys.net \
--cc=sameo@linux.intel.com \
--cc=wim@iguana.be \
/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.