From: Eugen.Hristev at microchip.com Date: Tue, 19 Nov 2019 14:24:36 +0000 Subject: [U-Boot] [PATCH] gpio: at91_gpio: Add bank names In-Reply-To: <0102016e84061649-e3679d52-0e99-4629-9a6b-c3fa7ca8d3b6-000000@eu-west-1.amazonses.com> References: <0102016e70227f41-fa11b1eb-51df-4af7-a6c5-70ba8cb73c02-000000@eu-west-1.amazonses.com> <0102016e84061649-e3679d52-0e99-4629-9a6b-c3fa7ca8d3b6-000000@eu-west-1.amazonses.com> Message-ID: <3dd61098-41f7-1afc-bfc5-27aa8ca9a506@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 19.11.2019 16:17, James Byrne wrote: > > Hi Eugen, > > On 18/11/2019 08:59, Eugen.Hristev at microchip.com wrote: >>> @@ -582,14 +604,15 @@ static int at91_gpio_probe(struct udevice *dev) >>> >>>           clk_free(&clk); >>> >>> -       uc_priv->bank_name = plat->bank_name; >>> -       uc_priv->gpio_count = GPIO_PER_BANK; >>> - >>>    #if CONFIG_IS_ENABLED(OF_CONTROL) >>>           plat->base_addr = (uint32_t)devfdt_get_addr_ptr(dev); >>>    #endif >>> +       plat->bank_name = at91_get_bank_name(plat->base_addr); >> >> Hello James, >> >> Here you are rewriting the plat->bank_name... What was the old name that >> comes from the platform struct ? > > It was unset (null). Ok. Can you make the default name go to something like 'undefined' instead of an empty string ? Maybe it would be more meaningful, what do you think ? (and easier to spot in the CLI ) Thanks > > Regards, > > James >