Skip to contentSkip to conversation

Driver for Solos PCI ADSL2+ card.

DISCUSSION David Miller 2 participants 2 messages Dec 26, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer Applied
#0 lore raw

Applied, but I don't need to tell you that this driver needs some work :)

#1 lore raw
Quoted 2 lines · David Miller

Applied, but I don't need to tell you that this driver needs some work :)

Thanks. We'll be continuing to clean the driver up -- I have a card of my own now, and should soon have a spare line to play with it without having to disrupt my connectivity. One the way home from LCA I'll be dropping in to Melbourne to see Traverse for a few days, and we should get DMA working then.

One thing I'm not sure how to handle is the attributes. Currently we expose a 'console' attribute file in sysfs. Reading parameters is done by sending text to that:

	echo -en $$\\nParameterName\\n > /sys/.../console
	cat /sys/.../console

...and parameters are written by sending three lines of test:

	echo -en $$\\nParameterName\\nValue\\n > /sys/.../console
	cat /sys/.../console # to check for error

Currently, the kernel doesn't look at the request ID at all, and a userspace program reading back from the file will receive _any_ responses and discard the ones it doesn't want.

We'll have to handle that properly, and we want to make the driver deal with certain parameters for itself too -- like line speed and sync status, which should be represented to the ATM layer.

I'm a little dubious about just exposing _all_ the parameters as separate attribute files in sysfs though, because there are over 300 of them. Maybe we could expose the _common_ ones like that, and have some other interface which lets the user access others as required... but I don't have strong opinions about how that latter interface should look.

One option is a character device which looks similar to the existing interface. Or an ioctl, perhaps.

Another option is to let the user create attribute files in sysfs dynamically, perhaps by echoing the desired parameter name to another sysfs file.

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation