mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[S390] cio: Introduce modalias for css bus.
Add modalias and subchannel type attributes for all subchannels. I/O subchannel specific attributes are now created in io_subchannel_probe(). modalias and subchannel type are also added to the uevent for the css bus. Also make the css modalias known. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
parent
0ae7a7b250
commit
7e9db9eaef
7 changed files with 151 additions and 24 deletions
|
@ -304,6 +304,14 @@ static int do_ap_entry(const char *filename,
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* looks like: "css:tN" */
|
||||
static int do_css_entry(const char *filename,
|
||||
struct css_device_id *id, char *alias)
|
||||
{
|
||||
sprintf(alias, "css:t%01X", id->type);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Looks like: "serio:tyNprNidNexN" */
|
||||
static int do_serio_entry(const char *filename,
|
||||
struct serio_device_id *id, char *alias)
|
||||
|
@ -680,6 +688,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
|
|||
do_table(symval, sym->st_size,
|
||||
sizeof(struct ap_device_id), "ap",
|
||||
do_ap_entry, mod);
|
||||
else if (sym_is(symname, "__mod_css_device_table"))
|
||||
do_table(symval, sym->st_size,
|
||||
sizeof(struct css_device_id), "css",
|
||||
do_css_entry, mod);
|
||||
else if (sym_is(symname, "__mod_serio_device_table"))
|
||||
do_table(symval, sym->st_size,
|
||||
sizeof(struct serio_device_id), "serio",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue