Message ID | f9fdcba76cd692ae436b1d7883b490e3dc207231.1645626962.git.michal.simek@xilinx.com |
---|---|
State | Accepted |
Commit | 3adc17f60bf804fd8fe25e7c20399243f26d7f49 |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=yw5nDcq4; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K3ds02YQWz9sGf for <incoming@patchwork.ozlabs.org>; Thu, 24 Feb 2022 01:36:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DD35E83A8A; Wed, 23 Feb 2022 15:36:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="yw5nDcq4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CB4E483BF4; Wed, 23 Feb 2022 15:36:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5E5D0838C9 for <u-boot@lists.denx.de>; Wed, 23 Feb 2022 15:36:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x62f.google.com with SMTP id p9so52849094ejd.6 for <u-boot@lists.denx.de>; Wed, 23 Feb 2022 06:36:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HprSj4RrDqHvJv4A88acSuYZ28PlHuFxA/fmizozlWs=; b=yw5nDcq4LNo6MeOxZkFBqCScq4Xlgfv1PvxccRUsBAfPfYzc9T1+jYGz54nU/bLbVK cr+10p7Icq/2pIfqwXlhulBR8yuVRT/jcGQI2+ijdmUWRlhzZ62iOt8Xdo0aFk1vwjgW Olf8QdWxfpPLW4vLasTIKGK3lPBmDymgQEGwqKL1DZI+yElmwcLRPyZTFqQmEqsp3Xwk 6KTkHJEAv7fmwiN4tFzm396vhdx1lywhJ1dYBGvIM9svcZVIRfiyf1aPVUkaDQ+V9o0M fuGvyJp6bYqUx0syNzOllCLCO/y6BsEU2LctTkkpasFL+VFfz6kBmdO5Y5L/1QcmacLa drsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=HprSj4RrDqHvJv4A88acSuYZ28PlHuFxA/fmizozlWs=; b=8C2shuLbxtvjwey71G9eHuK9F63lqmZcLh02A7Wy6kSyELukDqD1E/paskcP8tjY+6 t1BHcY4znR2/2eMZcdjsVl9RRgQiZ5dMFmxGijXx6jEsiEEjmCdxU4rFSKkKqMav/RoN saEaNc6gdaZEHfUsIbOTrvRsxUFvVokXLiyGKNpprKsgJEaqUcgJxdev7FwzfOoRMbuZ +x6iPaMWV4U40WLAOJrbzyFN5fFnhmteyq0S9m3n2muU95leUAmd3s9JfAhZuSOT2L00 YvAedwjlzn3OUw4XKTL6PSgkZBWOw2gpUN0o6KpoC26u5AuTKMqbXBsn10/jcVImMP/G 6Pxg== X-Gm-Message-State: AOAM530cPUJ1yh3jD6rXLYjW/x/V6+Xg29lCvWWF87R+309p5BW/eQiw iNbmXVlFX448g/iB+dhBVfi4tTvIVW7ODQ== X-Google-Smtp-Source: ABdhPJwO8sJwJMGsU+m4k0oD5m3VNrw7f1mTcNjXSadVvClP+0gBd6rnFtn2CfjD7rQKzCfiPA2Fxw== X-Received: by 2002:a17:906:7fc9:b0:6cf:d288:c9ef with SMTP id r9-20020a1709067fc900b006cfd288c9efmr586ejs.751.1645626972087; Wed, 23 Feb 2022 06:36:12 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id h27sm7778660ejb.13.2022.02.23.06.36.11 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Feb 2022 06:36:11 -0800 (PST) From: Michal Simek <michal.simek@xilinx.com> To: u-boot@lists.denx.de, git@xilinx.com Cc: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Subject: [PATCH 3/4] lib: div64: Add support for round up of div64_u64 Date: Wed, 23 Feb 2022 15:36:04 +0100 Message-Id: <f9fdcba76cd692ae436b1d7883b490e3dc207231.1645626962.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <cover.1645626962.git.michal.simek@xilinx.com> References: <cover.1645626962.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
mmc: zynq_sdhci: Add support for dynamic IP configuration
|
expand
|
diff --git a/include/linux/math64.h b/include/linux/math64.h index 08584c8f237f..eaa9fd5b9685 100644 --- a/include/linux/math64.h +++ b/include/linux/math64.h @@ -48,6 +48,9 @@ static inline u64 div64_u64(u64 dividend, u64 divisor) return dividend / divisor; } +#define DIV64_U64_ROUND_UP(ll, d) \ + ({ u64 _tmp = (d); div64_u64((ll) + _tmp - 1, _tmp); }) + /** * div64_s64 - signed 64bit divide with 64bit divisor */