max8997 cleanup bug?
Hi Lee,
I noticed that:
drivers/mfd/max8997-irq.c max8997_irq_exit
isn't called anywhere and was about to send a deadcode patch, but I'm thinking it's actually a bug and it should be called.
Looking at the max8998, it has basically the same function,
and it calls it from an error path in it's max8998_i2c_probe. There's no equivalent call in max8997's probe.
To me it looks like it probably goes after the 'err_i2c_haptic:'
label, but I don't know the code and as far as I know I don't have one of the devices.
Any thoughts?
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 10 lines · Dr. David Alan Gilbert
Hi Lee,
I noticed that:drivers/mfd/max8997-irq.c max8997_irq_exitisn't called anywhere and was about to send a deadcode patch, but I'm thinking it's actually a bug and it should be called.
Looking at the max8998, it has basically the same function,
and it calls it from an error path in it'smax8998_i2c_probe. There's no equivalent call in max8997's probe.
Quoted 5 lines
To me it looks like it probably goes after the '
err_i2c_haptic:'
label, but I don't know the code and as far as I know I don't have one of the devices.Any thoughts?
I would convert to devm_request_threaded_irq() and remove it.
Signature · 1 line
Lee Jones [李琼斯]
Quoted 12 lines · * Lee Jones ([email protected]) wrote:
Quoted 10 lines · Dr. David Alan Gilbert
Hi Lee,
I noticed that:drivers/mfd/max8997-irq.c max8997_irq_exitisn't called anywhere and was about to send a deadcode patch, but I'm thinking it's actually a bug and it should be called.
Looking at the max8998, it has basically the same function,
and it calls it from an error path in it'smax8998_i2c_probe. There's no equivalent call in max8997's probe.
Quoted 7 lines
Quoted 5 lines
To me it looks like it probably goes after the '
err_i2c_haptic:'
label, but I don't know the code and as far as I know I don't have one of the devices.Any thoughts?
I would convert to
devm_request_threaded_irq()and remove it.
OK, however I don't have one of the devices, so couldn't test it if I tried a big rework like that.
So I'd probably leave it personally.
Dave
Quoted 3 lines
Signature · 1 line
Lee Jones [李琼斯]
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/