public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Michael Schmitz <schmitzmic@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux/m68k <linux-m68k@vger.kernel.org>,
	ALeX Kazik <alex@kazik.de>, Denis Kirjanov <dkirjanov@suse.de>
Subject: Re: [PATCH v11 1/3] m68k: amiga/pcmcia - add 16 bit detection interface to amipcmcia.h
Date: Fri, 19 Nov 2021 08:42:57 +1300	[thread overview]
Message-ID: <fd0f59e5-753f-5a38-66b9-5edda6a03247@gmail.com> (raw)
In-Reply-To: <CAMuHMdXpqDWLdFeEaEpS06fK_jKLOU8LMv5v7d=ey1oR=7jo9A@mail.gmail.com>

Hi Geert,

On 18/11/21 21:09, Geert Uytterhoeven wrote:
>>>> I suggest to move that parameter to arch/m68k/amiga/pcmcia.c to ensure
>>>> it's always visible, and rename it to better reflect its actual function
>>>> (pcmcia_16bit comes to mind). apne.c would then use that parameter to
>>>> autoprobe 16 bit IO support, or set isa_type according to the parameter.
>>>>
>>>> Would that satisfy your concerns, Denis?
>>>
>>> What's the point of the sysfs parameter, given the driver cannot be
>>> unbound and rebound, as it does not use the driver model yet?
>>
>> Pre-setting the desired IO type before loading the module - though
>> actual setting of isa_type still has to wait until module load (or
>> driver probe). I'd have to write a callback that validates user input if
>> we want to set isa_type directly in pcmcia.c ...
>
> IMHO the sysfs parameter would only make sense if all of the 8/16-bit
> handling (and the special reset) is done in arch/m68k/amiga/pcmcia.c,
> so it can be shared for multiple cards.

Do we even have any other cards/drivers that work with the Amiga PCMCIA 
port?

>>> The only thing you can (try to) do is unload and reload the module,
>>> at which point you can pass the module parameter again?
>>
>> I take that as 'don't do that', then ... ?
>
> I meant you can do the above without the sysfs parameter.

I wasn't overly clear there - what I meant is, I take your comment to 
mean 'don't bother adding a sysfs parameter that does not add any extra 
functionality'.

The module parameter will appear in sysfs and can be used to read out 
the 16 bit IO state anyway.

Cheers,

	Michael

> 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-11-18 19:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14 23:40 [PATCH v11 0/3] Add APNE PCMCIA 100 Mbit support Michael Schmitz
2021-11-14 23:40 ` [PATCH v11 1/3] m68k: amiga/pcmcia - add 16 bit detection interface to amipcmcia.h Michael Schmitz
2021-11-15  9:59   ` Geert Uytterhoeven
2021-11-17  7:15     ` Michael Schmitz
2021-11-17 14:35       ` Geert Uytterhoeven
2021-11-18  4:58         ` Michael Schmitz
2021-11-18  8:09           ` Geert Uytterhoeven
2021-11-18 19:42             ` Michael Schmitz [this message]
2021-11-14 23:40 ` [PATCH v11 2/3] m68k: io_mm.h - add APNE 100 MBit support Michael Schmitz
2021-11-14 23:40 ` [PATCH net v11 3/3] net/8390: apne.c - add 100 Mbit support to apne.c driver Michael Schmitz
2021-11-17 14:42   ` Geert Uytterhoeven
2021-11-18  4:58     ` Michael Schmitz
2021-11-18  8:01       ` Geert Uytterhoeven
2021-11-18 19:09         ` Michael Schmitz
2021-11-18 19:18   ` Joe Perches
2021-11-18 19:35     ` 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=fd0f59e5-753f-5a38-66b9-5edda6a03247@gmail.com \
    --to=schmitzmic@gmail.com \
    --cc=alex@kazik.de \
    --cc=dkirjanov@suse.de \
    --cc=geert@linux-m68k.org \
    --cc=linux-m68k@vger.kernel.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