From: Wolfgang Denk Date: Sat, 26 Apr 2014 21:36:31 +0200 Subject: [U-Boot] [RFC] RFC: convert MPC8536DS to use generic board In-Reply-To: <535BE09F.80005@freescale.com> References: <1398474623-4709-1-git-send-email-yorksun@freescale.com> <20140426092205.4A4C43801AC@gemini.denx.de> <535BE09F.80005@freescale.com> Message-ID: <20140426193631.AD62D380045@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear York Sun, In message <535BE09F.80005@freescale.com> you wrote: > > >> Add #ifdef CONFIG_OF_CONTROL for reserve_fdt(), setup_fdt(), reloc_fdt(). > > > > This looks wrong to me. This is a global file, and you are affecting > > a ton of unrelated boards. > > Understood it is a global file. These functions deal with FDT. They should not It appears you assume every board using the DT has CONFIG_OF_CONTROL set in its configuration? For example, all PPC boards have been using the DT for years, but count how many of them define CONFIG_OF_CONTROL ... How many other boards have you actually tested with this modification applied? > >> Set initial value for gd. Powerpc SoCs use locked cache as init RAM. > > > > Well, some of them do, not all. > > arch/powerpc/lib/board.c uses this way. I presume it is safe to use for all PPC > parts.nn At least your comment is wrong. And again: how many other boards have actually been testes? And why is this now necessary? Everything has been working perfectly fine without that for all other boards - so why do we now need such a global modification just for this specific board? > >> Change return value for mac_read_from_eeprom() when mismatch happens to > >> prevent calling hang(). > > > > You mean, you just ignore the error? This is a change of the cpolicy > > that has nothing to do with generic board support, right? Why should > > this be done now, i. e. why has it been accepted and considered to be > > working before? > > This function is helpful but not critical. If reading fails, the board should > continue to boot then users will have a chance to fix it. The new generic board > treats this as other functions in board_init_r. Any error will cause hanging. You repeat yourself, but you do not answer my questions. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de What is mind? No matter. What is matter? Never mind. -- Thomas Hewitt Key, 1799-1875