Message ID | 20181207112939.15791-1-tudor.ambarus@microchip.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C2DC71731 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 7 Dec 2018 11:30:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF85B2D9A0 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 7 Dec 2018 11:30:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD6672DE96; Fri, 7 Dec 2018 11:30:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 41BAA2DE6B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 7 Dec 2018 11:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3NkyMl7DV8C2P9RokmHkaN6FUDqsVC8f6QmXiUV5xAM=; b=hFfzNHyTNMAmzg cwLbXCV9f3ow8BtMTGY76tjAzIZe+i4p23zZFOydFgcwTxu7dEvKxJGXyDAm/GbH/Od9m8M4GeE8J sICZxDplOefL9F2+4G40+PggVNSWbCImbc3LVYwzjk3rqV1SrYjzyfD/UUM+bVm/KAt6MH+5cdSs/ VjXyYhEHOxWswv22bDIBhrXn9EIkmcK2Qo0LqWmQvBVCysiEIjQ8TCMtApP37qAf6Q1D7PrJ+0lGv s5KJ+mlF9UJ4eIWyMw0cB1ltqLNEdYdErtmYmH8Ex78qJVp2P2I5XUQiy5TDOKhWgnddlt73+w2Y2 hMp7lXA24xZ6bajx04iw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVEKm-0006Lt-94; Fri, 07 Dec 2018 11:30:16 +0000 Received: from esa5.microchip.iphmx.com ([216.71.150.166]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVEKi-00053b-9D for linux-arm-kernel@lists.infradead.org; Fri, 07 Dec 2018 11:30:14 +0000 X-IronPort-AV: E=Sophos;i="5.56,326,1539673200"; d="scan'208";a="22004543" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Dec 2018 04:29:55 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.105) with Microsoft SMTP Server (TLS) id 14.3.352.0; Fri, 7 Dec 2018 04:29:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RvWLNm60HLe2wJvVXvEX5F6PQReS+XKnK2TUzinvgtU=; b=R5dBGSl0OhcK9BOa5i3/LvAr6YpCJLxlX9/8BI9kBME/6Hx7edyIEcr8oqZ3X3iaCZ0EZrVUlblpzeHyj12hVQxkr4h60iF9P4txKT3hVl9+oo4xVAKrjlLB0dI5TRSVM9WnpdejtdBTz4BvO4Y3GY+9geXQGpa3FNiTiaTbPRI= Received: from BN6PR11MB1842.namprd11.prod.outlook.com (10.175.99.146) by BN6PR11MB1395.namprd11.prod.outlook.com (10.173.33.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.21; Fri, 7 Dec 2018 11:29:52 +0000 Received: from BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::d88c:1d67:5fb0:12ae]) by BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::d88c:1d67:5fb0:12ae%2]) with mapi id 15.20.1404.021; Fri, 7 Dec 2018 11:29:52 +0000 From: <Tudor.Ambarus@microchip.com> To: <wsa@the-dreams.de> Subject: [2nd RESEND PATCH 0/2] i2c: enable buses to save their clock frequency in adapter Thread-Topic: [2nd RESEND PATCH 0/2] i2c: enable buses to save their clock frequency in adapter Thread-Index: AQHUjiArTqcCvgJ/8UusH/AtOpqJBA== Date: Fri, 7 Dec 2018 11:29:52 +0000 Message-ID: <20181207112939.15791-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0202CA0007.eurprd02.prod.outlook.com (2603:10a6:803:14::20) To BN6PR11MB1842.namprd11.prod.outlook.com (2603:10b6:404:103::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BN6PR11MB1395; 6:3uiEgDtc8qBeko284u9yFdJg+bcJnwY2HoerVAxkf4d7JawWknF+2OYIQaCTaTajhwC9tHXhv9SncPUQ2YWhPMVNCcHJiVEHK1nvHp0SUDdgphSVLCtwn5921C/JK4F+fG0P1T1d1SwUqvsjhS8Emzx+cLWpSgM8HxTWBXnbHqFaCH+nL25UrY5CLzN2JfGbXam97N5asdz3HOpmd49nI8/l0DBgMATe96Ymf8HnfMBh2U7gPjNohtwjDTqpjPpOAtQz7o87a5K9G4uKIbeRg8O0ONQCvy3Yym0buhAGq/qH/tMS2YIf4xDHTRNopCd4m5vlkELL/eSs5JSxJHXPAmozR4P4K8zvgawUzsnG/+z7tTYnQ70UuDHfYXcsJgkG5YClmrvt2pyC6KGk2q57c8jozx/TE5NsIwrfj20H5oas8gSupclVAUxEaEVDLNhBJc3JlPaByyRheXEIPu+8rA==; 5:ucVIMYvpT3yT+xhLc+8qvehUYh//Ess0PDHaurNxVqD1pOWT9JUqatP/MAQ6iPVC8m6eYuMSS/ApPuEJmWUQT4nRO3J5k3CSsOYVOrfJCIsmneh5E+ut9A7PP0vhdrfj0QQg3pgfgp/dtBSykXgfNkKLos/XtDC2bBz2X82AEDs=; 7:nBC9v1hvpp6Zany4KEZn+nzJpY/GCzfg+dGvLORqRw724PXIVa89Z1LRymok/ukBOj8147sdtVN6UdiihI/g4kJ9UCZBcw8rTHClwQR3UsH7e5DyvIMWURfvqLhqtMotOIAjX6MxO2fqWAc4XZZrdw== x-ms-office365-filtering-correlation-id: 725d26c3-78bd-4634-4830-08d65c374dc9 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BN6PR11MB1395; x-ms-traffictypediagnostic: BN6PR11MB1395: x-microsoft-antispam-prvs: <BN6PR11MB1395325E9B2D359A55E9F6B7F0AA0@BN6PR11MB1395.namprd11.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231455)(999002)(944501520)(52105112)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:BN6PR11MB1395; BCL:0; PCL:0; RULEID:; SRVR:BN6PR11MB1395; x-forefront-prvs: 0879599414 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(136003)(376002)(39860400002)(346002)(189003)(199004)(7736002)(6116002)(68736007)(107886003)(186003)(26005)(36756003)(6506007)(71190400001)(305945005)(386003)(316002)(2501003)(53936002)(54906003)(71200400001)(97736004)(2616005)(6916009)(1076002)(99286004)(476003)(66066001)(217873002)(72206003)(52116002)(6486002)(2351001)(86362001)(81166006)(8936002)(105586002)(6512007)(486006)(5640700003)(5660300001)(6436002)(4326008)(3846002)(478600001)(102836004)(14444005)(14454004)(81156014)(8676002)(106356001)(256004)(2906002)(25786009)(1730700003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR11MB1395; H:BN6PR11MB1842.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: clhl0oGuJIokY0Lbe334ZDdF3f0jKujOu4zsboX+8Ahk1MZuf657wc6BHGNFq3+9zpbZa6vRw+8UNLR1W7zXDqbL0pDpt9QoUzrbb8pKvbxJFLm1N+im63+aYIVXDeDAry8zVV4CXEN4zVrUvN7sAzI1LWF22+S3hugxFkm1RGA9LO9O05sXclYqsaC9sjP1SSpHUBmOt8YrQ+8dViponlvrXHcz4lL/g9L70qVW3ZS+h/vG/d/5gCaVspT/FB5JwZUKpKLbwMjJUtV0Evs9R8LRIf10wLBAXgFYpM9NLsOpShHhY+JI32cw2VpBftX3HfnRu0mXQQV9aGT3GPV/9JU6Cfjr2OcCc7nVJh7TdIg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 725d26c3-78bd-4634-4830-08d65c374dc9 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2018 11:29:52.1730 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1395 X-OriginatorOrg: microchip.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181207_033012_333540_134F2C7E X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: alexandre.belloni@bootlin.com, Tudor.Ambarus@microchip.com, linux-kernel@vger.kernel.org, Ludovic.Desroches@microchip.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
i2c: enable buses to save their clock frequency in adapter
|
expand
|
From: Tudor Ambarus <tudor.ambarus@microchip.com> The clock-frequency property is not mandatory for the i2c buses. If it's not present in the device tree, the buses __usually__ assume it's 100kHZ (see altera, at91, axxia, etc.). Broadcom uses a 375kHZ default clock-frequency, so the default clock frequency varies from bus to bus. There are i2c clients that need to know the bus clock frequency in order to compute their wake token (see atecc508a i2c client). The clock-frequency value has to be propagated to the i2c clients, otherwise, if they will not find the i2c bus clock frequency in the device tree, they will have to make their own assumption of the clock frequency. Spare the i2c clients of making wrong assumptions of the i2c bus clock frequency and enable the buses to save their clock frequency in adapter. since rfc: - reword commit messages Tudor.Ambarus@microchip.com (2): i2c: enable buses to save their clock frequency in adapter i2c: at91: Save the bus clock frequency in adapter drivers/i2c/busses/i2c-at91.c | 1 + include/linux/i2c.h | 1 + 2 files changed, 2 insertions(+)