Message ID | 20200722110317.4744-4-kishon@ti.com |
---|---|
State | Accepted |
Commit | 229f5879facf96e5640c0385f62b8cb5f27b8a43 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp427219ilg; Wed, 22 Jul 2020 04:04:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5z81OEGDugASWzvfcu49IXqDwQudtRVfhpgIIm1nVWWd4lSTWemhTgNGJZVS5lPL3sDDy X-Received: by 2002:a17:906:6959:: with SMTP id c25mr28818713ejs.375.1595415846285; Wed, 22 Jul 2020 04:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595415846; cv=none; d=google.com; s=arc-20160816; b=aKOjnlT1EefRnZOOOZTllR95wYMQZI7lCp6U2OnYK++7LKjQXK8a7P5yLIVtXPMYfD sx0jiHi2hSsC+0jxeao/FcIy2/jwd11Fi2ZSm8RnKiwM0I7eba379Z12hclIdFkRnMjs PUI2CBDahFeaX9wvRo93CASkHOfhq7DNm70bwCFH3Kabs+Y9Y3h5T/xe6t442yoIO24b SAHfWbjKXhQjHMmFD9iYmvMAZgoxnKHHSuXHgDme9RdOBpjUZdkp8WVcpwaqIsXSdL0c ZATzOEtOdj0mKhJRdmw8ntGHEQu5kF9VyXFvOPm73OosVZH/ueGaCbXfDLAgUN3SaTpS Fihw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=w0kKvgPWtxpR8/SJqvDyB4niiNZZhzWW1VwYSFg/2R8=; b=CDf+fCkFPBccLRYqOPSRyAjfCfo9X9Y8NNu+VUA1q1fQvTgWrlLmz+U9MdYcVS9R3v vKXDJurhJmb1G9smfj1y38Dm5v6B13OvgaZaPoCTm2+WN96Oa2bqwqQirQEcjpLnTPxv LNo5Kdzh8yEsxGnIflqzvGF2GsECls3OM5+GBJHapnE2QELtdn9g+kzeCa0D+cIg/Xjm DsqFPLMkLAhd5xZ+e8wc7t8401NTSAQUosW4hoKJI/49l8RDje9b4vAFFp3uiuv8bcGg eOtgQa7BW5oprx4YwYZhQFl54eaEAA+fBnHtErJUVadB+WjtMlgHGzbdT/YrkEXsbi+A VJDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jjalxO1u; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <devicetree-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bv17si13446278ejb.263.2020.07.22.04.04.06; Wed, 22 Jul 2020 04:04:06 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=jjalxO1u; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731814AbgGVLDs (ORCPT <rfc822;patch@linaro.org> + 6 others); Wed, 22 Jul 2020 07:03:48 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:56238 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726153AbgGVLDp (ORCPT <rfc822; devicetree@vger.kernel.org>); Wed, 22 Jul 2020 07:03:45 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06MB3Y4v072362; Wed, 22 Jul 2020 06:03:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1595415814; bh=w0kKvgPWtxpR8/SJqvDyB4niiNZZhzWW1VwYSFg/2R8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jjalxO1usBxIfW8F6Bho+AhYHdORJ2k6jsn5x4xrN5p+SWR/vrKhOscARd0U5x8aX VqzySlD8CYe/6xPHi5/uGjR7tmX/zNoWRC1qSKgHIxuQcAkQRRIvlaaNF0GyJq211f lPNJxrhKRu1A2BhwdvMhoCAzlm8jAYcL6YScurIU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06MB3Ywm051615; Wed, 22 Jul 2020 06:03:34 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 22 Jul 2020 06:03:34 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 22 Jul 2020 06:03:34 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06MB3IFb078616; Wed, 22 Jul 2020 06:03:30 -0500 From: Kishon Vijay Abraham I <kishon@ti.com> To: Tom Joseph <tjoseph@cadence.com>, Bjorn Helgaas <bhelgaas@google.com>, Rob Herring <robh+dt@kernel.org>, Kishon Vijay Abraham I <kishon@ti.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Arnd Bergmann <arnd@arndb.de> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <linux-pci@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-omap@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> Subject: [PATCH v8 03/15] linux/kernel.h: Add PTR_ALIGN_DOWN macro Date: Wed, 22 Jul 2020 16:33:05 +0530 Message-ID: <20200722110317.4744-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200722110317.4744-1-kishon@ti.com> References: <20200722110317.4744-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
Add PCIe support to TI's J721E SoC
|
expand
|
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 82d91547d122..7339a00c895e 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -34,6 +34,7 @@ #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) +#define PTR_ALIGN_DOWN(p, a) ((typeof(p))ALIGN_DOWN((unsigned long)(p), (a))) #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) /* generic data direction definitions */