All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Michael Schmitz <schmitzmic@gmail.com>
Cc: "Linux/m68k" <linux-m68k@vger.kernel.org>, ALeX Kazik <alex@kazik.de>
Subject: Re: [PATCH v7 1/4] m68k: Kconfig - select core PCMCIA support module for Amiga PCMCIA
Date: Fri, 3 Sep 2021 16:14:15 +0200	[thread overview]
Message-ID: <CAMuHMdUwSMDgQ8Vk9JV4kngJ52Vz1X8fXiTPLow_9sE9OX2tLg@mail.gmail.com> (raw)
In-Reply-To: <6843c140-7f58-8510-30f2-201d824601df@gmail.com>

Hi Michael,

On Fri, Sep 3, 2021 at 4:52 AM Michael Schmitz <schmitzmic@gmail.com> wrote:
> On 03/09/21 00:42, Geert Uytterhoeven wrote:
> > On Sun, Aug 29, 2021 at 5:12 AM Michael Schmitz<schmitzmic@gmail.com>  wrote:
> >> The 16 bit card support test for the apne.c driver needs a whole
> >> lot of hairy parser code which is already present in the core
> >> PCMCIA code - make use of that instead of duplicating it.
> >>
> >> Signed-off-by: Michael Schmitz<schmitzmic@gmail.com>
> > Thanks for your patch!
> >
> >> --- a/arch/m68k/Kconfig.bus
> >> +++ b/arch/m68k/Kconfig.bus
> >> @@ -31,6 +31,8 @@ config ZORRO
> >>   config AMIGA_PCMCIA
> >>          bool "Amiga 1200/600 PCMCIA support"
> > Can this become tristate?
> I suspect it can - though I wonder why it hasn't been made tristate
> before. Ah - pcmcia.c needs a little patch to add a MODULE_LICENSE clause.
> >>          depends on AMIGA
> >> +       select PCCARD
> >> +       select PCMCIA
> > This is now forcing PCCARD and PCMCIA builtin instead of modular
> > in an allmodconfig kernel.
> Thanks, that's what I'd been worried about.
>
> How do I make sure CONFIG_PCMCIA gets selected as module as well? I can
> select this when CONFIG_APNE is set, from
> drivers/net/ethernet/8390/Kconfig, but I'd then have to protect the
> cftable parse hook in amiga/pcmcia.c against the case where CONFIG_APNE
> is not selected.

That will be fixed automatically by making AMIGA_PCMCIA tristate.
Select from a modular symbol will make the target modular, too.

> Not to mention we need to rename amiga/pcmcia.c to avoid a module naming
> conflict.
>
> Just including cistpl.o as a module is not an option unfortunately - too
> many dependencies.
>
> And I don't think we need CONFIG_PCMCIA_PROBE=Y?

No idea if we need that...

-default y if ISA && !ARCH_SA1100 && !PARISC
+default y if ISA && !ARCH_SA1100 && !PARISC && !AMIGA_PCMCIA

(wondering how many platforms that can use PCMCIA are left, and if
 this can be converted into positive logic?)

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  reply	other threads:[~2021-09-03 14:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29  3:11 [PATCH v7 0/4] Add APNE PCMCIA 100 Mbit support Michael Schmitz
2021-08-29  3:11 ` [PATCH v7 1/4] m68k: Kconfig - select core PCMCIA support module for Amiga PCMCIA Michael Schmitz
2021-09-02 12:42   ` Geert Uytterhoeven
2021-09-03  2:51     ` Michael Schmitz
2021-09-03 14:14       ` Geert Uytterhoeven [this message]
2021-09-03 21:51         ` Michael Schmitz
2021-09-05  8:15       ` Michael Schmitz
2021-08-29  3:11 ` [PATCH v7 2/4] m68k: amiga/pcmcia - implement 16 bit detection support for apne.c Michael Schmitz
2021-08-29  3:11 ` [PATCH v7 3/4] m68k: io_mm.h - add APNE 100 MBit support Michael Schmitz
2021-08-29  3:11 ` [PATCH net v7 4/4] net/8390: apne.c - add 100 Mbit support to apne.c driver Michael Schmitz
2021-11-02  6:24 ` [PATCH v7 0/4] Add APNE PCMCIA 100 Mbit support Michael Schmitz

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=CAMuHMdUwSMDgQ8Vk9JV4kngJ52Vz1X8fXiTPLow_9sE9OX2tLg@mail.gmail.com \
    --to=geert@linux-m68k.org \
    --cc=alex@kazik.de \
    --cc=linux-m68k@vger.kernel.org \
    --cc=schmitzmic@gmail.com \
    /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.