From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00A6BC63793 for ; Thu, 22 Jul 2021 09:48:44 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F87661241 for ; Thu, 22 Jul 2021 09:48:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F87661241 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41C7782999; Thu, 22 Jul 2021 11:48:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626947320; bh=gZBqPrqz/KXSwm6lVuocxIv/xRSpYLi8d0aOWt5Iego=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=eJox0UGCn/BV2gT3OuE6yDGCU2YWdi3Ix1+na5UFuBkhkwN6KFLIKVU8ApAyGcYTw WFdC0ib6ZQoJSu9+uZc1ZKxUUyLcBQrAGloEhckGbRz8EhI2J1JNReJFLbxzzFrzpQ t/YTGlsv+ftpJFKGGlfxVfBz2iSkPBlM3QZfZQWBKvBSjfFoOf4Y8Fk7IiFjH7oaWl gPdNG+/UZlqD4KTKeTml8rXUiaO/KcZpFiS6kelqjgYzPz0J2KS0e6ptEUPjd99kf9 GnY5a8eJEMFe+svekpdojeB/ZEDycGndwzv89ZtMB9GO1crM3ruaNYrBQBmWrb/YlT Ucbo2My7GilHw== Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 515AD82999 for ; Thu, 22 Jul 2021 11:48:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626947318; bh=gZBqPrqz/KXSwm6lVuocxIv/xRSpYLi8d0aOWt5Iego=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=XzAbOL3g5hycXHqPs0h0ymO1xej+bRCngJmZvCqRgwaI8bWyQqGOnRq0hY6wC5x7C EvCPhk5n5OWYlkmzEbCfIOkYNwGgWt3QhzrP8lXPtqiFp2A2FRj5oX9gLKVhkN1JWy eqXjb8wb9WApac45HDsk73I3NiUSRiuCWxljPMmK8ku7gR3xzVg4esT2w1jW2R3Dq2 L4lN8yml74YCzR9uwOiPbSHERN7zzANQCEmxfBrLuRTBRjtjIOkYiZEx0vmqYo/sHF sbcfadEqP+oaZJQsM9h+qgXk5ZxfoztJgJhXc+yZFHMerLoA69+92J+c0Rtj3WRPAu KJ9rEaLNhhfhQ== Received: by janitor.denx.de (Postfix, from userid 108) id 0642CA014E; Thu, 22 Jul 2021 11:48:38 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id 97607A0057; Thu, 22 Jul 2021 11:48:30 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 5AE271E14C3; Thu, 22 Jul 2021 11:48:30 +0200 (CEST) To: Simon Glass cc: U-Boot Mailing List , Eugeniu Rosca , Roland Gaudig , Heinrich Schuchardt , Stefan Herbrechtsmeier , Sean Anderson , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Tom Rini , Marek Vasut From: Wolfgang Denk Subject: Re: [PATCH 13/15] RFC: lib: Support a binary prefix 0y MIME-Version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8bit In-reply-to: References: <20210720132940.1171011-1-sjg@chromium.org> <20210720132940.1171011-14-sjg@chromium.org> <913691.1626856052@gemini.denx.de> Comments: In-reply-to Simon Glass message dated "Wed, 21 Jul 2021 08:23:27 -0600." Date: Thu, 22 Jul 2021 11:48:30 +0200 Message-ID: <1080272.1626947310@gemini.denx.de> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Dear Simon, In message you wrote: > > > But ... do we really *need* all this stuff? > > No... > > I added binary as an RFC because I have found a few cases where it is > nice to be able to specify the bits (e.g. programming GPIOs). We could > update 'md' to support it too. Yes, we could, but U-Boot size is continuously growing, even for constant configurations, i. e. when no nmew features are wanted/needed. > I added octal as an RFC since the current impl is almost never > available (only when 0 is parted to simple_strtoul()) which seems odd. I can't see how this should work... > Well, yes. Perhaps we should just drop octal? Drop? AFAICT we never supported octal. Something like "md 040" will start dumping at 0x00000040, right? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de There are three things I always forget. Names, faces - the third I can't remember. - Italo Svevo