diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2015-10-23 21:32:34 -0700 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@kernel.org> | 2016-02-11 08:42:16 -0800 |
commit | 0d6a896dd1dcf247d1ffe0afbf63413c0dcfe1ed (patch) | |
tree | 20d0152dbb56eb9161936474e2fda546a0a3f074 | |
parent | 913b302df46de245c79801f0910f7f9d809d6e0a (diff) | |
download | linker-tables-0d6a896dd1dcf247d1ffe0afbf63413c0dcfe1ed.tar.gz |
make the driver depend on pci
What does not work is if pci fails we should not move on with
PCI drivers, we can try to fix that next. What this should mean is
that if an init sequence has a "depends" and if its marked as
critical then it cannot allow things that depend on it to
continue. Right now if an init sequence is listed as critical
we'll fail the entire init sequence right then where it failed,
we want to enable a middle ground, in such a way to be express
that one should not let things that depend move forward unless
it continued successfully.
Note that in this case the driver had a higher init priority
though originally:
driver: INIT_EARLY
pci: INIT_NORMAL
#define INIT_EARLY 01
#define INIT_SERIAL 02
#define INIT_CONSOLE 03
#define INIT_NORMAL 04
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
-rw-r--r-- | driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ static int detect_driver(void) { struct init_fn driver_init_fn __init_fn(INIT_EARLY) = { .detect = detect_driver, - //.depend = detect_pci, + .depend = detect_pci, .early_init = early_init_driver, .name = "ACME(TM) Driver", }; |