Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1316798pxk; Fri, 25 Sep 2020 11:27:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqqMYyKe3vukQpQGoVboU8XSLD4lEjlMO2poj9HMgA29uaabHwJ2L9aFreFx65H6kUxGUc X-Received: by 2002:a17:906:6884:: with SMTP id n4mr4174309ejr.50.1601058459037; Fri, 25 Sep 2020 11:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601058459; cv=none; d=google.com; s=arc-20160816; b=ITVz91ZVK7ic1hH8xtSTQnXmRiRIGtRfPBRVCn2w740lUA3KPbYXlwocVOu8da413r Ho7mC6JGHu+3LhVFIoVZlUH2cmTlmbGGfr/+xNd+m+94J/ReSAveVr26oRynhJstL8Po VO6zyxhhfNnOsYqmVbv3hNU8UyFR+ZWHB+/8o4bLavyx5BRnd1rNmyFX0shhZdREIbbS 7/cLZ4A82nhs1t2hx8E6Sfcq7unpif2wByNG9yUyh2I7hRNj5Nt8SHSxWlJctUQ1aVJL dXauKZAHdekOgAcFlrp16t44N5KdNLkD8pFNDYilseTM1GhWcQX3ME+HgHsAzCVvRQyE JKjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3+UjR32phag7o0qtGDIn18Bhp3Te2gJhkXo8qfae49I=; b=EIaYxmfrTi633lBnnirF6EIbBTagCOSMeASJHkE3QrApBK/j0IK1DwMRHfR1ILhnff 8kU9akzJHt0kEcLWYKsAAYRI4hMa87vfim3AkQ5sL6Va6Q8+AtvhSFUVfidCjKcr2ykN fG2ke9HeFH62V6O2apBK0D5FMG0nN2Zd6pC2ZQM9kZdiGCiptu1ejATlJFomSvyZjWjZ XlsailP58beQKcowfre61wTyi1qUWcfbSwF7RCVw5VKblMBFCwitcIYhNSscvz5BTD0s LtfZW6bPliPHjHxU1lgg/oYCZGcqT0/Mi/6axR4STIaO+J4cwiaw3F+/oEgI6lf1tX9x U5ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gYZyZw6q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si2582554edm.355.2020.09.25.11.27.13; Fri, 25 Sep 2020 11:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gYZyZw6q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729691AbgIYSYZ (ORCPT + 99 others); Fri, 25 Sep 2020 14:24:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:35174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729593AbgIYSYZ (ORCPT ); Fri, 25 Sep 2020 14:24:25 -0400 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 73FEC2344C; Fri, 25 Sep 2020 18:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601058264; bh=3+UjR32phag7o0qtGDIn18Bhp3Te2gJhkXo8qfae49I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gYZyZw6q1BO+3QxLi6Yhxa52YdvWOGP6Bwynz1IgdeP4AoQ8O9LACjSjJq9kUdPAQ 2A9gwH2FC9gAFJD9v+rsBafSLadQqFs4m/Wfn1Ng9uYeWn8xQWdC+TallzF6jFqiCs Engcd77zB1U31bxCR0JWjkmiWHv0KP9rxXqaifVg= Received: by mail-ot1-f48.google.com with SMTP id g96so3163099otb.12; Fri, 25 Sep 2020 11:24:24 -0700 (PDT) X-Gm-Message-State: AOAM532wevVVVtVHP55vKKTUjCeACz7kwAnMOk4H8MCS/NVQQEjuB6TD NnA+hQfddiZvFZknBAajlSaMBlVRXJZH3+GP+A== X-Received: by 2002:a9d:6b0d:: with SMTP id g13mr1190401otp.129.1601058263764; Fri, 25 Sep 2020 11:24:23 -0700 (PDT) MIME-Version: 1.0 References: <20200920095724.8251-1-ansuelsmth@gmail.com> <20200920095724.8251-4-ansuelsmth@gmail.com> In-Reply-To: <20200920095724.8251-4-ansuelsmth@gmail.com> From: Rob Herring Date: Fri, 25 Sep 2020 12:24:12 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/4] of_net: add mac-address-increment support To: Ansuel Smith Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , "David S. Miller" , Jakub Kicinski , Andrew Lunn , Heiner Kallweit , Russell King , Frank Rowand , Boris Brezillon , MTD Maling List , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , netdev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 20, 2020 at 3:57 AM Ansuel Smith wrote: > > Lots of embedded devices use the mac-address of other interface > extracted from nvmem cells and increments it by one or two. Add two > bindings to integrate this and directly use the right mac-address for > the interface. Some example are some routers that use the gmac > mac-address stored in the art partition and increments it by one for the > wifi. mac-address-increment-byte bindings is used to tell what byte of > the mac-address has to be increased (if not defined the last byte is > increased) and mac-address-increment tells how much the byte decided > early has to be increased. I'm inclined to say if there's a platform specific way to transform MAC addresses, then there should be platform specific code to do that which then stuffs the DT using standard properties. Otherwise, we have a never ending stream of 'generic' properties to try to handle different platforms' cases. Rob