riscv: Add do_irqinfo() for CONFIG_CMD_IRQ
PATCH 1/1 riscv: Add do_irqinfo() for CONFIG_CMD_IRQ
Right now, do_irqinfo() done nothing and return 0 for CONFIG_CMD_IRQ
--- arch/riscv/lib/interrupts.c | 7 +++++++ 1 file changed, 7 insertions(+)
arch/riscv/lib/interrupts.c +7 -0
@@ -145,3 +145,10 @@ __attribute__((weak)) void external_interrupt(struct pt_regs *regs) __attribute__((weak))void timer_interrupt (struct pt_regs *regs) { } + +#if defined(CONFIG_CMD_IRQ ) +int do_irqinfo (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]) +{ +return 0 ; +} +#endif
Signature · 1 line
2.17.1
PATCH 1/1 riscv: Add do_irqinfo() for CONFIG_CMD_IRQ
Quoted 1 line · Pragnesh Patel
Right now,
do_irqinfo()done nothing and return 0 for
Nits:
%s/done/does/
Quoted 12 lines
CONFIG_CMD_IRQSigned-off-by Pragnesh Patel <[email protected]>--- arch/riscv/lib/interrupts.c | 7 +++++++ 1 file changed, 7 insertions(+)arch/riscv/lib/interrupts.c +0
-0
arch/riscv/lib/interrupts.c __attribute__((weak)) void external_interrupt(struct pt_regs *regs) · line 154
Quoted 10 lines
arch/riscv/lib/interrupts.c +7
-0@@ -145,3 +145,10 @@ __attribute__((weak)) void external_interrupt(struct pt_regs *regs) __attribute__((weak))void timer_interrupt (struct pt_regs *regs) { } + +#if defined(CONFIG_CMD_IRQ ) +int do_irqinfo (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]) +{ +return 0 ; +} +#endif
Why do we allow CONFIG_CMD_IRQ for RISC-V if the command is not supported?
How about:
cmd/Kconfig:2224
config CMD_IRQ
??? bool "irq - Show information about interrupts"
- depends on !ARM && !MIPS && !SH
+ depends on !ARM && !MIPS && !RISCV && !SH
Best regards
Heinrich
Quoted 1 line
PATCH 1/1 riscv: Add do_irqinfo() for CONFIG_CMD_IRQ
Hi Heinrich,
Quoted 53 lines
-----Original Message-----
From: Heinrich Schuchardt <[email protected]>
Sent: 24 August 2020 19:01
To: Pragnesh Patel <[email protected]>; u-boot at lists.denx.de; atish.patra at wdc.com; bmeng.cn at gmail.com; anup.patel at wdc.com; Sagar Kadam <[email protected]>; rick at andestech.com
Cc: Paul Walmsley ( Sifive) <[email protected]>; Simon Glass <[email protected]>; Sean Anderson <[email protected]>; Bin Meng <[email protected]>
Subject: Re: [PATCH] riscv: Adddo_irqinfo()forCONFIG_CMD_IRQ[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe
Quoted 1 line · Pragnesh Patel
Right now,
do_irqinfo()done nothing and return 0 forNits:
%s/done/does/
Quoted 12 lines
CONFIG_CMD_IRQSigned-off-by Pragnesh Patel <[email protected]>--- arch/riscv/lib/interrupts.c | 7 +++++++ 1 file changed, 7 insertions(+)arch/riscv/lib/interrupts.c +0
-0arch/riscv/lib/interrupts.c __attribute__((weak)) void · line 154
Quoted 10 lines
arch/riscv/lib/interrupts.c +7
-0@@ -145,3 +145,10 @@ __attribute__((weak)) void external_interrupt(struct pt_regs *regs) __attribute__((weak)) void timer_interrupt(struct pt_regs *regs) { } + +#if defined(CONFIG_CMD_IRQ ) +int do_irqinfo (struct cmd_tbl *cmdtp,int flag,int argc,char *const +argv[]) { +return 0 ; +} +#endif Why do we allow
CONFIG_CMD_IRQfor RISC-V if the command is not supported?How about:
cmd/Kconfig:2224
config
CMD_IRQ
bool "irq - Show information about interrupts"
Review
Quoted 2 lines
(quoted diff) +1
-1- depends on !ARM && !MIPS && !SH + depends on !ARM && !MIPS && !RISCV && !SH
Agreed, will send a new patch.
Quoted 6 lines
Best regards
Heinrich
Quoted 1 line