aboutsummaryrefslogtreecommitdiff
path: root/include/linux/ptp_clock_kernel.h
diff options
context:
space:
mode:
authorYadi.hu <yadi.hu@windriver.com>2016-09-18 18:52:31 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:58:26 +0200
commit5b233b0a1d1a758e5043a4c357fd35d7cf2ab60f (patch)
tree572ea7466ef44b9d329d7ba67be2c1f65b7b758c /include/linux/ptp_clock_kernel.h
parent15a9d4b6e1471bb48c1106da0bd8184dfb0c44d4 (diff)
i2c-eg20t: fix race between i2c init and interrupt enable
commit 371a015344b6e270e7e3632107d9554ec6d27a6b upstream. the eg20t driver call request_irq() function before the pch_base_address, base address of i2c controller's register, is assigned an effective value. there is one possible scenario that an interrupt which isn't inside eg20t arrives immediately after request_irq() is executed when i2c controller shares an interrupt number with others. since the interrupt handler pch_i2c_handler() has already active as shared action, it will be called and read its own register to determine if this interrupt is from itself. At that moment, since base address of i2c registers is not remapped in kernel space yet,so the INT handler will access an illegal address and then a error occurs. Signed-off-by: Yadi.hu <yadi.hu@windriver.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/ptp_clock_kernel.h')
0 files changed, 0 insertions, 0 deletions