Re: [PATCH v2 2/3] common: board: make initcalls static

2025-02-17 Thread Jerome Forissier
Gentle ping. Can we keep the macro? Thanks, -- Jerome On 1/27/25 11:32, Jerome Forissier wrote: > > > On 1/25/25 00:58, Marek Vasut wrote: >> On 1/24/25 6:23 PM, Jerome Forissier wrote: >>> >>> >>> On 1/24/25 17:23, Marek Vasut wrote: On 1/24/25 4:57 PM, Jerome Forissier wrote: >

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-27 Thread Jerome Forissier
On 1/25/25 00:58, Marek Vasut wrote: > On 1/24/25 6:23 PM, Jerome Forissier wrote: >> >> >> On 1/24/25 17:23, Marek Vasut wrote: >>> On 1/24/25 4:57 PM, Jerome Forissier wrote: On 1/24/25 11:35, Marek Vasut wrote: > On 1/24/25 10:10 AM, Jerome Forissier wrote: >> +#define

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Marek Vasut
On 1/24/25 6:23 PM, Jerome Forissier wrote: On 1/24/25 17:23, Marek Vasut wrote: On 1/24/25 4:57 PM, Jerome Forissier wrote: On 1/24/25 11:35, Marek Vasut wrote: On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ +    do { \ +    if (_call()) { \ +    prin

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Jerome Forissier
On 1/24/25 17:23, Marek Vasut wrote: > On 1/24/25 4:57 PM, Jerome Forissier wrote: >> >> >> On 1/24/25 11:35, Marek Vasut wrote: >>> On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ +    do { \ +    if (_call()) { \ +    printf("%s(): initca

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Marek Vasut
On 1/24/25 4:57 PM, Jerome Forissier wrote: On 1/24/25 11:35, Marek Vasut wrote: On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ +    do { \ +    if (_call()) { \ +    printf("%s(): initcall %s() failed\n", __func__, \ +   #_call); \ +  

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Jerome Forissier
On 1/24/25 11:35, Marek Vasut wrote: > On 1/24/25 10:10 AM, Jerome Forissier wrote: >> +#define INITCALL(_call) \ >> +    do { \ >> +    if (_call()) { \ >> +    printf("%s(): initcall %s() failed\n", __func__, \ >> +   #_call); \ >> +    hang(); \ >> +   

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Marek Vasut
On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ + do { \ + if (_call()) { \ + printf("%s(): initcall %s() failed\n", __func__, \ + #_call); \ + hang(); \ + } \ +

[PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Jerome Forissier
Change board_init_f(), board_init_f_r() and board_init_r() to make static calls instead of iterating over the init_sequence_f, init_sequence_f_r and init_sequence_r arrays, respectively. This makes the code a simpler (and even more so when initcall_run_list() is later removed) and it reduces the bi