Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-15 Thread Enric Balletbo i Serra
Hi Matthias and Chun-Kuang, On 11/10/20 4:22, Chun-Kuang Hu wrote: > Hi, Matthias: > > Matthias Brugger 於 2020年10月8日 週四 下午6:22寫道: >> >> Hi Enric and CK, >> >> On 06/10/2020 21:33, Enric Balletbo i Serra wrote: >>> From: CK Hu >>> >>> Actually, setting the registers for routing, use multiple 'if

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-10 Thread Chun-Kuang Hu
Hi, Matthias: Matthias Brugger 於 2020年10月8日 週四 下午6:22寫道: > > Hi Enric and CK, > > On 06/10/2020 21:33, Enric Balletbo i Serra wrote: > > From: CK Hu > > > > Actually, setting the registers for routing, use multiple 'if-else' for > > different > > routes, but this code would be more and more com

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-08 Thread Matthias Brugger
On 08/10/2020 09:49, Enric Balletbo i Serra wrote: Hi Chun-Kuang, On 8/10/20 2:01, Chun-Kuang Hu wrote: Hi, Enric: Enric Balletbo i Serra 於 2020年10月7日 週三 上午3:33寫道: From: CK Hu Actually, setting the registers for routing, use multiple 'if-else' for different routes, but this code would

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-08 Thread Matthias Brugger
Hi Enric and CK, On 06/10/2020 21:33, Enric Balletbo i Serra wrote: From: CK Hu Actually, setting the registers for routing, use multiple 'if-else' for different routes, but this code would be more and more complicated while we support more and more SoCs. Change that and use a table per SoC s

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-08 Thread Enric Balletbo i Serra
Hi Chun-Kuang, On 8/10/20 2:01, Chun-Kuang Hu wrote: > Hi, Enric: > > Enric Balletbo i Serra 於 2020年10月7日 週三 > 上午3:33寫道: >> >> From: CK Hu >> >> Actually, setting the registers for routing, use multiple 'if-else' for >> different >> routes, but this code would be more and more complicated whi

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-07 Thread Chun-Kuang Hu
Hi, Enric: Enric Balletbo i Serra 於 2020年10月7日 週三 上午3:33寫道: > > From: CK Hu > > Actually, setting the registers for routing, use multiple 'if-else' for > different > routes, but this code would be more and more complicated while we > support more and more SoCs. Change that and use a table per S

Re: [PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-06 Thread Chun-Kuang Hu
Enric Balletbo i Serra 於 2020年10月7日 週三 上午3:33寫道: > > From: CK Hu > > Actually, setting the registers for routing, use multiple 'if-else' for > different > routes, but this code would be more and more complicated while we > support more and more SoCs. Change that and use a table per SoC so the >

[PATCH 4/4] soc: mediatek: mmsys: Use an array for setting the routing registers

2020-10-06 Thread Enric Balletbo i Serra
From: CK Hu Actually, setting the registers for routing, use multiple 'if-else' for different routes, but this code would be more and more complicated while we support more and more SoCs. Change that and use a table per SoC so the code will be more portable and clear. Signed-off-by: CK Hu Sign