Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1945963ybl; Sat, 31 Aug 2019 05:15:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9GcQcKUDuX9r0TvGLu11WVRXrWkAk56bb5bnTy5Vv51MS4YVtwUMrETFwClgb75QprpXB X-Received: by 2002:aa7:8c42:: with SMTP id e2mr8393295pfd.158.1567253715904; Sat, 31 Aug 2019 05:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567253715; cv=none; d=google.com; s=arc-20160816; b=ffNy5YmvHFNuwKxd1whsLFI/tpG+xbcqDZcBJUAhczxLacTOTqDjknogDQaPKqWcNX y7wCmdTYWjU7yCac1dVq/eNAyuNomNauf9LdCp4ys0uUBTrbQHuYcUe7fVk/9LzM1QL+ KG6ksSSUNfP8qvf87xeKtTlCe5GZ8y1csParJpjtqCgLgxjfmnxYUjXCp0sLH30q737n 2p+xl76ImqTJLD31iRLqZn0RK2S4GBbiYRPYw3SnTqdFNa6pHiMVdaKun5I2QGUmlaLn dOCJNWNNDvGD3lNSL9disG24igF6gRt/OrFrymU1k9yzKZeuo1L2v2to9eRBu/cOavnJ fZAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uhMOcrU94eboyJh1HOK7cLfy3H39I83kOBLnA1+CuU8=; b=WpHM2tdevm/Kbb25lQ4aGHSdG4JkRGYK/W/vLy+QBvo8+Qn53CWkAy9iC1PRMqje5d R9qw7S517+aG9plqehwd/5zaIEUOUO67WK3XR4OvQBkSe1S6+csKhw9qho7+9wFBJUyC RqQlNKmxNH0veX/o2Gr7YjI2GwmC9Nzt/BFDtobl/7RrwM4K9yaBm7Btkkkypo25K5T6 joJhSEjDaEN2jEevEwp0VkBMIzlXndgWkt2z7TQuirmuzfbD31RRPrI/kzhu2Mqksfev VFLaCsQ/u4EgR0PZZSIXAy3Uq6j0yQD7+Qv4wvvUVZ3oNTQB536yvYJ/xrrwjsyEVKNz xHig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si2342701pgj.442.2019.08.31.05.14.37; Sat, 31 Aug 2019 05:15:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727672AbfHaMNL (ORCPT + 99 others); Sat, 31 Aug 2019 08:13:11 -0400 Received: from sauhun.de ([88.99.104.3]:37720 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbfHaMNK (ORCPT ); Sat, 31 Aug 2019 08:13:10 -0400 Received: from localhost (p5486C98B.dip0.t-ipconnect.de [84.134.201.139]) by pokefinder.org (Postfix) with ESMTPSA id B88592C0093; Sat, 31 Aug 2019 14:13:08 +0200 (CEST) Date: Sat, 31 Aug 2019 14:13:08 +0200 From: Wolfram Sang To: Eugen.Hristev@microchip.com Cc: peda@axentia.se, mark.rutland@arm.com, Ludovic.Desroches@microchip.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pierre-yves.mordret@st.com, alexandre.belloni@bootlin.com, robh+dt@kernel.org, Nicolas.Ferre@microchip.com Subject: Re: [PATCH v3 5/9] i2c: at91: add support for digital filtering Message-ID: <20190831121308.GB1032@ninjato> References: <1562678049-17581-1-git-send-email-eugen.hristev@microchip.com> <1562678049-17581-6-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline In-Reply-To: <1562678049-17581-6-git-send-email-eugen.hristev@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > diff --git a/drivers/i2c/busses/i2c-at91-core.c b/drivers/i2c/busses/i2c-at91-core.c > index a663a7a..62610af 100644 > --- a/drivers/i2c/busses/i2c-at91-core.c > +++ b/drivers/i2c/busses/i2c-at91-core.c > @@ -68,6 +68,7 @@ static struct at91_twi_pdata at91rm9200_config = { > .has_unre_flag = true, > .has_alt_cmd = false, > .has_hold_field = false, > + .has_dig_filtr = false, Hmm, 'false' is the default. Maybe not for this series, but it might make sense to clean up the driver afterwards removing the superfluous 'false'. The precedence will make adding new properties much simpler. > + dev->enable_dig_filt = of_property_read_bool(pdev->dev.of_node, > + "i2c-dig-filter"); > + What do you think of the idea to introduce 'flags' to struct i2c_timings and parse the bindings in the core, too? Then you'd have sth like: if (t->flags & I2C_TIMINGS_ANALOG_FILTER) Would that be useful for you? --V0207lvV8h4k8FAm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl1qZFAACgkQFA3kzBSg KbZy9Q/+INNWAz3JzNTnt9Wz4LY+CvF0A91qTijGhOFME8qnJRK/bGoupXNI66Nm mhn3iko1RoOsrBzEI1U4bc86Y6O2dZZMscDU8Kn5GanaK9OzMf9WLnRlapIrKg35 HwC+M+XzDLTkwfFSGBAzA2m+Ud5bS9rzJ8svbrLBLov3x4dka8S+ZwLXH7mpW1b4 80vHk8nqtJ3CUI9wzfUSBqkPxoszergUiqXW39VI12UBmY0BWY7swIcVoehErLvh o7hWyfuoKyhR+NQHkbcHfa4YAyzwILIzE+7OsYlyQXZvh4Wb2KgbMlyi3OldAvkw 8JFJRHEMAjH9HiLpUr1uV+yabhhi7AxWtx3WEFMc0+/QB4Ed4lSgWKNM9LJmUV4t nJffamNfsMT6A9oNULQV3VaSYwM7G/f79h/SQLHIgmTjc9v4XXh9EOs5YhYEhfYE 8tWeTOG4Lzg1BCn2FcDBUIChJcp1YKD+e0nsskqt1Sk9GUE6MU64h075JqZ1iDYM 4wloxXGU09C6IahnAhx1HEFDi6Ym+oaWDGGhloqSh4cctuEOO75EaD0A01hEVgtk o3Qf4dWCC72yeKC5zn7GwTkUTZc66G703dKCXUUnQJ1bljY/8Z4Js2YrDpizfbai JmBYGOZw5ztqQt0x2N9QW78hvYoK3eotQ0bvwhHqPu59bbHVxbI= =z8HE -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--