From: Kalle Valo <kvalo@kernel.org>
To: Rosen Penev <rosenp@gmail.com>
Cc: Jeff Johnson <quic_jjohnson@quicinc.com>,
linux-wireless@vger.kernel.org, toke@toke.dk, nbd@nbd.name
Subject: Re: [PATCH] wireless: ath9k: eeprom: remove platform data
Date: Thu, 05 Sep 2024 08:46:40 +0300 [thread overview]
Message-ID: <87bk12d54v.fsf@kernel.org> (raw)
In-Reply-To: <CAKxU2N_VKU2cMpPS0y7JJkuCzAimUP=h885RA58WqCB1CZj8ag@mail.gmail.com> (Rosen Penev's message of "Wed, 4 Sep 2024 16:53:01 -0700")
Rosen Penev <rosenp@gmail.com> writes:
> On Wed, Sep 4, 2024 at 10:56 AM Rosen Penev <rosenp@gmail.com> wrote:
>
>>
>> On Wed, Sep 4, 2024 at 7:53 AM Jeff Johnson <quic_jjohnson@quicinc.com> wrote:
>> >
>> > On 9/4/2024 1:05 AM, Kalle Valo wrote:
>> > > Rosen Penev <rosenp@gmail.com> writes:
>> > >
>> > >> There are no more board files defining platform data for this driver and
>> > >> eeprom support through NVMEM has already been implemented. No need to
>> > >> keep this old functionality around.
>> > >>
>> > >> Signed-off-by: Rosen Penev <rosenp@gmail.com>
>> > >> ---
>> > >> As an aside, the last user of this functionality downstream in OpenWrt
>> > >> has been removed: https://github.com/openwrt/openwrt/commit/7ac8279bd
>> > >>
>> > >> drivers/net/wireless/ath/ath9k/eeprom.c | 12 ------------
>> > >> 1 file changed, 12 deletions(-)
>> > >>
>> > >> diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c
>> > >> index efb7889142d4..df58dc02e104 100644
>> > >> --- a/drivers/net/wireless/ath/ath9k/eeprom.c
>> > >> +++ b/drivers/net/wireless/ath/ath9k/eeprom.c
>> > >> @@ -15,7 +15,6 @@
>> > >> */
>> > >>
>> > >> #include "hw.h"
>> > >> -#include <linux/ath9k_platform.h>
>> > >
>> > > What about the file include/linux/ath9k_platform.h? That should be also
>> > > removed, right?
>> >
>> > That file is still used by other functionality (see init.c, btcoex.c)
>> > But seems that at a minimum unused eeprom-related stuff should be removed from
>> > struct ath9k_platform_data.
>> That's why I kept my changes to a minimum. I don't yet want to axe the
>> other stuff. OpenWrt has a ton of non upstreamed patches for ath9k,
>> some probably relying on ath9k_platform_data. I need to do real
>> careful analysis to remove the rest.
>> >
>> > Please review that all of the platform-related code in init.c is still needed,
>> > especially code related to eeprom support.
>
> That's handled with nvmem and OF (if applicable).
>
> Anyway, I split up the removal in 4 patches. of_init needs some extra
> functionality to match platform_device.
>
> Does Documentation need to go in its own commit?
I don't know what Documentation changes you are doing but usually it's
good to make changes to Documentation in separate patches.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
prev parent reply other threads:[~2024-09-05 5:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 20:27 [PATCH] wireless: ath9k: eeprom: remove platform data Rosen Penev
2024-09-04 8:05 ` Kalle Valo
2024-09-04 14:53 ` Jeff Johnson
2024-09-04 17:56 ` Rosen Penev
2024-09-04 23:53 ` Rosen Penev
2024-09-05 5:46 ` Kalle Valo [this message]
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=87bk12d54v.fsf@kernel.org \
--to=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@nbd.name \
--cc=quic_jjohnson@quicinc.com \
--cc=rosenp@gmail.com \
--cc=toke@toke.dk \
/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.