Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp701505rwb; Fri, 23 Sep 2022 03:00:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WgujP5iz4ZmoVaMPnJ3MoN7ruwXWdpO/qgdctsAndy4bcAlPXWRFMbhnudDHv/bjc6A2A X-Received: by 2002:a17:902:e405:b0:176:8bc1:b09c with SMTP id m5-20020a170902e40500b001768bc1b09cmr7628888ple.1.1663927204540; Fri, 23 Sep 2022 03:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663927204; cv=none; d=google.com; s=arc-20160816; b=NDLvFQ8GV94FTLrPGVHLCdvTlio6ltUDoGS5FzzV510eYcGn/7mdf5i0fH7TLRSg0a W+jQk/M85AVV9nXQqhsBWIsUpdTTaKmEKyTEiaktOWgmIo71s+GxSqz5rXOhRg6wv2CL 1JDhplkyJHDLFOqzyrE/7FjamN2392UW+JSwkzs+0msb9rmBHqYaXSOnjRhdhwq+MHiS DvtPm+rwuMY25tzSCAFY8EpmEic0KGG09/2xrjZl0FzF0zE27ag5BLX6O7yRpJQffUa0 Yf5RYTiX/c6j6ir4PKCkthUe8O05itta/H8WZWZkUhZYZpR32CxR4ufVSYr+w4h/UMAs wh4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=t50zxbg1je01zo3yx+LqGItWRVx6GNoJo4k1q5aGeVg=; b=07FlnNrf0RA4kUG8SNyY0a10jnOGNNZdqOjx7nc7ErQK6touMEu8ZSCLRZn+X41Snf rkQa/b0JtruHVfG8kwCKpzRWQBpA67iOKfj9jzZQH9WBCP3yfPVh373FO5dRXZOz0eF4 fQwWGdgxDzOAHwIrZOtfpAuRfNapXw0CnsygtdmECqNvScCPzDqIoTibYfqiuHfOLDEg LilfoAyvRLEHruf8QebZ57thVY/YX8sNeB6W7oUkbgeQ7C7jx6ywTiTpN2+K/9JDeCF7 25cmmPhvvQATTWfycNPPeyNewSQ7j/wh23lOuIczMf9jqJ1LfObk9+AopjO/hSnQeIYS ISgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=mnD6w11k; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=AuZv+USL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y193-20020a638aca000000b00434dbbc86f0si8993775pgd.674.2022.09.23.02.59.52; Fri, 23 Sep 2022 03:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=mnD6w11k; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=AuZv+USL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbiIWJZI (ORCPT + 99 others); Fri, 23 Sep 2022 05:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbiIWJZC (ORCPT ); Fri, 23 Sep 2022 05:25:02 -0400 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EE16C74F; Fri, 23 Sep 2022 02:25:00 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 7A1A3580C6D; Fri, 23 Sep 2022 05:24:57 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Fri, 23 Sep 2022 05:24:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1663925097; x=1663928697; bh=t50zxbg1je 01zo3yx+LqGItWRVx6GNoJo4k1q5aGeVg=; b=mnD6w11k5nxhH9/kQW48EZGzp7 5oOwVtxHS6LcB154wnimw3mI+61b/xqSLY+QBAbhAcYTfAhf1Z75Az0+dlaLASIT ZJxsHkU5+BpVsi8bTH2HUIo7V1gKzXNElLI3N1/3JFYPVS8S9+SZYkNXCoFYOe4U E+P3B+9VCSs1Gzq9UcghvFSgtG2I4ygXTbHxUNLIiTuYxIcOYOcWxI8NyvK7sHUZ sZXhBlaAA4PXrz2DdYp5b4nABQ0l6BU2MSTBPIB2l/cRsNLbo4Y2t3itUoWN8gCC 9zvEFKQ5/zvH5MYV1/HQP1BDLvODbjTeYUiWFs9UYI2gAhwPyzYNJkohDNGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663925097; x=1663928697; bh=t50zxbg1je01zo3yx+LqGItWRVx6 GNoJo4k1q5aGeVg=; b=AuZv+USLGde8oMEu1C58bKJrB412oxQvNHao8ZeMUfQA 3toGUYt/r6EojSrXcwB0kK6RKwLEa8e92tPItzAJVadNejYiYoli5mtQtl3GZVjO gcELQKqq6mIy+AK5DS90bqj9AMWCr6HLIIerihmtnrIVkVOaLgbPTgESdKOLhG5S Cz9e8fwsXCsEZF9zc4jiXrjt8wcgokE8d36g+zCmzH3joAX9UJDzVw9tFlmBP52T RRlA2xQYUPVuywC6rmh5ueQJPySYTHdHddIO62mEA2531U1xP2OAR2PIDDMD8Saf tQyKLWOUXqZZtIl62/irkpR1v3qLMWgduT9FHg508Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefiedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DA519B60086; Fri, 23 Sep 2022 05:24:56 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-935-ge4ccd4c47b-fm-20220914.001-ge4ccd4c4 Mime-Version: 1.0 Message-Id: <230d397d-1bf8-422b-8ce0-4a63bb451394@www.fastmail.com> In-Reply-To: References: <20220427162123.110458-1-maukka@ext.kapsi.fi> <20220922202458.7592-1-maukka@ext.kapsi.fi> <20220922202458.7592-4-maukka@ext.kapsi.fi> <89f85393-c767-4c0c-90db-d78a2927d465@www.fastmail.com> Date: Fri, 23 Sep 2022 11:24:35 +0200 From: "Arnd Bergmann" To: "Mauri Sandberg" Cc: "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Olof Johansson" , "Andrew Lunn" , "Sebastian Hesselbarth" , "Gregory Clement" , "Russell King" , =?UTF-8?Q?Pali_Roh=C3=A1r?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 3/3] ARM: orion5x: Add D-Link DNS-323 based on Device Tree Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 23, 2022, at 11:13 AM, maukka@ext.kapsi.fi wrote: > On 23.9.2022 00:39, Arnd Bergmann wrote: >> Can you use simple_strntoull() to parse the address into a u64 instead? >> > Nice idea. Its current replacement seems to be kstrtoull(). Right. > I'll have to do > it byte by byte, right? Or what do you have in mind with 64bit unsigned? I misread your code and assumed it was stored as a 12-digit hexadecimal number, but you are right: with the colons you still need to iterate the bytes. I looked a little further and found the mac_pton() function that I think does exactly what you need. Arnd