Skip to contentSkip to conversation

rsi: Adding RS9113 driver files

PATCH Johannes Berg 1 participant 1 message Mar 5, 2014 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Fariya Fathima

The num_debugfs entries corresponds to the number of debugfs entries to be created by the core layer. Our driver has support for 2 interfaces - SDIO & USB. The SDIO driver intends to create 4 debugfs entries and the USB driver intends to create 3. This information is indicated to the core layer by initializing the num_debufs entries, depending on the interface.

Yeah I got confused with this. I guess it's OK, although likely to break in the future? Maybe the SDIO layer should provide that one debugfs handler itself, rather than having it in the core, so that this distinction isn't needed?

Quoted 7 lines

These seem odd ... maybe they should at least come with comments about
how generic kernel functionality can't be used and why it needs another
abstraction layer?
We did put in various fields inside the rsi_event and rsi_thread structs to create a slight abstraction. I hope that is fine.

I have no issues with that really, it just seems odd, but maybe it just means the kernel functionality isn't precisely what you need.

johannes