From: M Chetan Kumar <m.chetan.kumar@xxxxxxxxx> Date: Tue, 20 Apr 2021 21:42:56 +0530 > 1) Request interrupt vector, frees allocated resource. > 2) Registers IRQ handler. > > Signed-off-by: M Chetan Kumar <m.chetan.kumar@xxxxxxxxx> > --- > v2: Streamline multiple returns using goto. > --- > drivers/net/wwan/iosm/iosm_ipc_irq.c | 91 ++++++++++++++++++++++++++++ > drivers/net/wwan/iosm/iosm_ipc_irq.h | 33 ++++++++++ > 2 files changed, 124 insertions(+) > create mode 100644 drivers/net/wwan/iosm/iosm_ipc_irq.c > create mode 100644 drivers/net/wwan/iosm/iosm_ipc_irq.h > > diff --git a/drivers/net/wwan/iosm/iosm_ipc_irq.c b/drivers/net/wwan/iosm/iosm_ipc_irq.c > new file mode 100644 > index 000000000000..a3e017604fa4 > --- /dev/null > +++ b/drivers/net/wwan/iosm/iosm_ipc_irq.c > @@ -0,0 +1,91 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2020-21 Intel Corporation. > + */ > + > +#include "iosm_ipc_pcie.h" > +#include "iosm_ipc_protocol.h" > + > +static inline void write_dbell_reg(struct iosm_pcie *ipc_pcie, int irq_n, > + u32 data) Please do not use inline in foo.c files, let the compiler decide. Thank you.