From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5B6C3A3E95 for ; Wed, 29 Apr 2026 07:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777448399; cv=none; b=NUr+Dy2aoO4DsUGOh4jpT7bgKNTvDgyEOFR+D663NgbUIA+bu9xtginfmHzwjAwt0kI0hzW5bmrqTcq/TV1uPxUk1RWNCEmIuSfqnd66HINcX7gS6SiXOcJgclOHFhVFFMi/h5u09id/cBKpjcLj3kZC20YOjKDtgWgRDdyVxOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777448399; c=relaxed/simple; bh=+eZ80jaRJ+u9WdVzdCOK6HodLxFkeeXZWiLLfdYilK0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=lQ5uJ20O5vXFsqm9la25v955AsFx8AErw1jBAqTzMKf167o7KyThoKaBF2MJyjrjBjGxPpujr/PpK1FSdgF5h/7ZBp/1PCcYD9vvbtzFHCERmTPoqqlbDNvZQRr0+KK71ldilpvLdLgdRTl5ZtMLfYt7KvjXs18KDwpOQsztBCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=VmIxwUpI; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VmIxwUpI" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 78E8EC5CD50; Wed, 29 Apr 2026 07:40:36 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4B8DB601DF; Wed, 29 Apr 2026 07:39:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 141F81072826C; Wed, 29 Apr 2026 09:39:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1777448391; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=idJtzzVdaxvICWx9IICJvVoPzxZK4UFplO8frONZ+/U=; b=VmIxwUpIODr4RxEDURU/7J2pb6CIg11RoV4Y+Yq1sjl4wZ89586YTf2onsoPn2a9fQNoez ps/Oo7qeBHkhPBc15ijTuR2TIoiWOQlx9X/Kqjqt5OtZpm1XHjYP8uY8Kl0NoSKStTZpRw DQ9w45dja8N0YvAguC+JMKPzkNavl49+KuLZzczrXd3OTBMgaKF91gk+jv7Q2RsT7LaQkN FWkYRbuEZP0K5R3bzKMCtx7OSNF6HRRKvRX/YgtrquywZ8SPcoXbIjptGT0Wy1q/iik2bd aY4BJKYx6KKI/vVTHDz9A6jKvrU0UruNQVpIE4bGlxzchYMUfYkVyS45B35CLw== From: Miquel Raynal To: Rosen Penev Cc: linux-kernel@vger.kernel.org, =?utf-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , Srinivas Kandagatla Subject: Re: [PATCH] nvmem: layouts: u-boot-env: remove ethaddr check In-Reply-To: <20260428212621.60759-1-rosenp@gmail.com> (Rosen Penev's message of "Tue, 28 Apr 2026 14:26:21 -0700") References: <20260428212621.60759-1-rosenp@gmail.com> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Wed, 29 Apr 2026 09:39:53 +0200 Message-ID: <87wlxqcj06.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hi Rosen, > --- a/drivers/nvmem/layouts/u-boot-env.c > +++ b/drivers/nvmem/layouts/u-boot-env.c > @@ -75,11 +75,9 @@ static int u_boot_env_parse_cells(struct device *dev, = struct nvmem_device *nvmem > info.offset =3D data_offset + value - data; > info.bytes =3D strlen(value); > info.np =3D of_get_child_by_name(dev->of_node, info.name); > - if (!strcmp(var, "ethaddr")) { > - info.raw_len =3D strlen(value); > - info.bytes =3D ETH_ALEN; > - info.read_post_process =3D u_boot_env_read_post_process_ethaddr; > - } > + info.raw_len =3D strlen(value); > + info.bytes =3D ETH_ALEN; How do you know this is a MAC address? Thanks, Miqu=C3=A8l