From: Arnd Bergmann <arnd@arndb.de>
To: Lee Jones <lee.jones@linaro.org>
Cc: 冯锐 <rui_feng@realsil.com.cn>, gregkh <gregkh@linuxfoundation.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
ricky_wu@realtek.com
Subject: Re: [PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc
Date: Tue, 24 Oct 2017 11:52:05 +0200 [thread overview]
Message-ID: <CAK8P3a3Bg0tKoKBOLhK8PFmJHUt4bT1dZrmXMabczBotH=LfSA@mail.gmail.com> (raw)
In-Reply-To: <20171023093518.cnqultuil4srzxjk@dell>
On Mon, Oct 23, 2017 at 11:35 AM, Lee Jones <lee.jones@linaro.org> wrote:
> On Thu, 19 Oct 2017, Arnd Bergmann wrote:
>
>> On Thu, Oct 19, 2017 at 5:22 AM, <rui_feng@realsil.com.cn> wrote:
>> > From: Rui Feng <rui_feng@realsil.com.cn>
>> >
>> > Because Realtek PCIE card reader driver is a pcie driver,
>> > and it bridges mmc subsystem and memstick subsystem, it's
>> > not a mfd driver. Greg and Lee Jones had a discussion about
>> > where to put the driver, the result is that misc is a good
>> > place for it, so I move all files to misc. If I don't move
>> > it to a right place, I can't add any patch for this driver.
>> >
>> > Signed-off-by: Rui Feng <rui_feng@realsil.com.cn>
>> > ---
>> > drivers/memstick/host/rtsx_pci_ms.c | 2 +-
>> > drivers/mfd/Kconfig | 11 -----------
>> > drivers/mfd/Makefile | 2 --
>> > drivers/misc/Kconfig | 1 +
>> > drivers/misc/Makefile | 1 +
>> > drivers/misc/realtek/Kconfig | 10 ++++++++++
>> > drivers/misc/realtek/Makefile | 3 +++
>> > drivers/{mfd => misc/realtek}/rtl8411.c | 1 -
>> > drivers/{mfd => misc/realtek}/rts5209.c | 1 -
>> > drivers/{mfd => misc/realtek}/rts5227.c | 1 -
>>
>> Thanks for redoing the patch. If Lee and Greg want to see it moved
>> here, I won't object, but I'd still like to understand the distinction better,
>> since there are likely going to be other drivers in the same situation
>> (either adding into misc or mfd) and it would be good if we can all
>> give consistent advice.
>>
>> Greg, Lee: can you come up with a simple definition of what an
>> MFD is that this driver does not fit into? What about other
>> PCI drivers like intel-lpss-pci and lpc_ich? Are they different
>> from this one or should they also be moved out of MFD?
>
> MFDs drivers don't *do* anything. They handle shared resources,
> register featureful devices residing in other subsystems and provide
> simple shared functionality pertaining to the chip as a whole.
>
> These card reader devices *are* the featureful drivers and brim with
> useful functionality.
>
> intel-lpss-pci and lpc_ich conform to the aforementioned definition.
Ok. I think we have some other drivers in MFD that fall into similar
categories as rtsx, maybe the db8500 prcmu for instance, but it
does sound like a reasonable definition. If we ever get too many
drivers like rtsx in drivers/misc, we may have to come up with a
new place for them.
For now
Acked-by: Arnd Bergmann <arnd@arndb.de>
to the current patch series.
Arnd
next prev parent reply other threads:[~2017-10-24 9:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-19 3:22 rui_feng
2017-10-19 7:10 ` Arnd Bergmann
2017-10-23 9:35 ` Lee Jones
2017-10-24 9:52 ` Arnd Bergmann [this message]
2017-10-24 10:43 ` Lee Jones
2017-10-25 1:09 ` 答复: " 冯锐
2017-10-25 7:45 ` Lee Jones
2017-10-25 8:01 rui_feng
2017-10-25 8:20 ` Lee Jones
2017-10-25 8:16 rui_feng
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='CAK8P3a3Bg0tKoKBOLhK8PFmJHUt4bT1dZrmXMabczBotH=LfSA@mail.gmail.com' \
--to=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ricky_wu@realtek.com \
--cc=rui_feng@realsil.com.cn \
/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
all inboxes | Powered by JetHome®