From: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Gwendal Grignou <gwendal@chromium.org>
Cc: Dmitry Torokhov <dtor@chromium.org>,
bleung@chromium.org, groeck@chromium.org,
myungjoo.ham@samsung.com, cw00.choi@samsung.com,
benjamin.tissoires@redhat.com, jic23@kernel.org,
hverkuil-cisco@xs4all.nl, lee.jones@linaro.org,
pmalani@chromium.org, sre@kernel.org, thierry.reding@gmail.com,
u.kleine-koenig@pengutronix.de, lgirdwood@gmail.com,
a.zummo@towertech.it, cychiang@chromium.org, perex@perex.cz,
linux-kernel@vger.kernel.org, Jonathan Cameron <jic23@kernel.org>
Subject: Re: [PATCH 00/17] Add export symbol namespace PL_CHROMEOS
Date: Thu, 6 Jan 2022 11:05:58 +0100 [thread overview]
Message-ID: <20220106110558.49dd6f26@coco.lan> (raw)
In-Reply-To: <CAPUE2uu3FPvxHHGYGbckxR=QmWt3=KwFk3DYoqBSmaQd+AO0QA@mail.gmail.com>
Em Wed, 5 Jan 2022 20:26:36 -0800
Gwendal Grignou <gwendal@chromium.org> escreveu:
> On Wed, Jan 5, 2022 at 2:58 PM Dmitry Torokhov <dtor@chromium.org> wrote:
> >
> > Hi Gwendal,
> >
> > On Wed, Jan 5, 2022 at 2:07 PM Gwendal Grignou <gwendal@chromium.org> wrote:
> > >
> > > Add a symbol namespace for functions exported by the plaform chromeos
> > > subsystem.
> >
> > It would be great to explain why this is needed/desirable. What are
> > the benefits of introducing this namespace? What problem are you
> > trying to solve?
> The issue came when reviewing an iio sensor
> (https://www.spinics.net/lists/linux-iio/msg66280.html). I wanted to
> be ahead of the curve (for once).
Patch 01 should clearly document the reason why this is needed.
Yet, see below.
While I see value on using namespaces, we should have extra care when
this is used for kAPIs designed for a product/system. I mean, what
prevents that the affected drivers won't support some day different
non-ChromeOS products? We have a media driver originally written to
work with the One Laptop Per Children hardware, that used some
product-specific kAPIs, that were extended a couple years later to
cover different types of hardware.
What happens if some day, a driver introduced to be used on a ChromeOS
hardware would also be used by a non-ChromeOS hardware? This could
become messy as times goes by.
Instead, IMO, it would make sense to have per-subsystem namespaces.
So, for instance, placing iio under an IIO-specific namespace
(and the same for other subsystems) makes more sense on my
eyes, as the namespace boundary will be clearer, and an IIO driver
will always be IIO, no matter on what hardware such driver would
be used.
Thanks,
Mauro
next prev parent reply other threads:[~2022-01-06 10:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 22:06 [PATCH 00/17] Add export symbol namespace PL_CHROMEOS Gwendal Grignou
2022-01-05 22:06 ` [PATCH 01/17] plaform: chrome: Add PL_CHROMEOS export symbol namespace Gwendal Grignou
2022-01-05 22:06 ` [PATCH 02/17] iio:cros_ec_sensors: Add PL_CHROMEOS dependency Gwendal Grignou
2022-01-05 22:06 ` [PATCH 03/17] platform/chrome: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 04/17] power_supply: chromeos: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 05/17] rtc: wilco: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 06/17] mfd: cros_ec_dev: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 07/17] platform: chrome: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 08/17] rtc: cros_ec: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 09/17] extcon: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 10/17] HID: google: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 11/17] i2c: cros-ec-tunnel: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 12/17] Input: cros_ec_keyb - " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 13/17] media: cros-ec-cec: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 14/17] power: supply: PCHG: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 15/17] pwm: cros-ec: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 16/17] regulator: cros-ec-regulator: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 17/17] ASoC: cros_ec_codec: " Gwendal Grignou
2022-01-05 22:50 ` [PATCH 00/17] Add export symbol namespace PL_CHROMEOS Dmitry Torokhov
2022-01-06 4:26 ` Gwendal Grignou
2022-01-06 10:05 ` Mauro Carvalho Chehab [this message]
2022-01-10 9:31 ` Gwendal Grignou
2022-01-16 17:57 ` Jonathan Cameron
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=20220106110558.49dd6f26@coco.lan \
--to=mchehab@kernel.org \
--cc=a.zummo@towertech.it \
--cc=benjamin.tissoires@redhat.com \
--cc=bleung@chromium.org \
--cc=cw00.choi@samsung.com \
--cc=cychiang@chromium.org \
--cc=dtor@chromium.org \
--cc=groeck@chromium.org \
--cc=gwendal@chromium.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jic23@kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=perex@perex.cz \
--cc=pmalani@chromium.org \
--cc=sre@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).