Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1158726yba; Tue, 2 Apr 2019 03:35:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdg9dFKRui7/KP8pP+WMux4pQGSRFE4nthGPKNxg2lWT3nmVekJR2IA/78HwBJqytx76VT X-Received: by 2002:a62:7603:: with SMTP id r3mr68267970pfc.32.1554201352241; Tue, 02 Apr 2019 03:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554201352; cv=none; d=google.com; s=arc-20160816; b=dIFGlsWbqzdnpQf/1mHPKZnVZrwSnl1JaqS5RJJrrYMuFKaxmEWkJba55qQm/hyLem /nLWEsXVlIQ4+Q2hkfN7gISOGNh0mu5WxbUVFGlD8Z9/jmK0yaLrSZ/OGvgYGDdb0PFP 1UvGcTNKyzjK7sBaYB5DjCfAJif0wHeaq0tbw3yR+Lgqi8/XuJWiO3021lYrNr0fT6sn M2/hgr4hPKiKDK8o16XaVPISxXRe6SqcnyuwjgNeWw0fJ6Oo2X7ey2ndK10JSy2omIr0 +XeQKNbdlcClvWw12eafsIqkCh17/9NmkqxuAjty7fNWomaK9p+ZZnx5oaRrUar9d5uY 1z3A== 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=Sol7MOiVWPRcQb7FtGq/wRv/Ds2x4fJQsZHzFkqeZF0=; b=SxpznMeazZNvZVHNJFzYWxtZQeunL0/x4/DmsG+aLEERM1XX/g1gsBkY9l+pB14NAI GFsr89HQvwvejvk1m+5fatY46b0Iw3aIu79E4brFY8mt54yK/Hajs5WJ2tTfn+KssC7h +5lDvSBigzVZG6wZYd6Pz8SOL4klhoktbV59j0AzLx9GyMe7yqq7UB51jYIRF2/P8fJU bKxpHtytrV8nq37I5FcCOu4uoN0dZnT0mA43TCcA89CagLEZ+/JcbFZje+cdbB8bMW1l G49HZnZFzgu/n2ZU5qfOnT4TtpF5YnoNKjIlTFhDAt4KVZsYIWfvHwN6+P6GsxcfYB3t IFMQ== 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 f35si5170693pgl.369.2019.04.02.03.35.37; Tue, 02 Apr 2019 03:35:52 -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 S1728900AbfDBK1h (ORCPT + 99 others); Tue, 2 Apr 2019 06:27:37 -0400 Received: from sauhun.de ([88.99.104.3]:38700 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfDBK1g (ORCPT ); Tue, 2 Apr 2019 06:27:36 -0400 Received: from localhost (p5486CD10.dip0.t-ipconnect.de [84.134.205.16]) by pokefinder.org (Postfix) with ESMTPSA id 741DE2CF606; Tue, 2 Apr 2019 12:27:34 +0200 (CEST) Date: Tue, 2 Apr 2019 12:27:34 +0200 From: Wolfram Sang To: Ray Jui Cc: Rob Herring , Mark Rutland , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Rayagonda Kokatanur Subject: Re: [PATCH v5 7/8] i2c: iproc: add NIC I2C support Message-ID: <20190402102733.GD2960@kunai> References: <20190214175725.60462-1-ray.jui@broadcom.com> <20190214175725.60462-8-ray.jui@broadcom.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6WlEvdN9Dv0WHSBl" Content-Disposition: inline In-Reply-To: <20190214175725.60462-8-ray.jui@broadcom.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 --6WlEvdN9Dv0WHSBl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > +#define IDM_CTRL_DIRECT_OFFSET 0x00 And this IDM thing is also never used outside of the I2C context? In other words, it also doesn't need a seperate DT node? > + /* indicates no slave mode support */ > + bool no_slave; I would suggest to not use a flag, but to nullify the {un}reg_slave callbacks in probe depending on the type. That will also tell the i2c-core that slave functionality is not supported. And you can use if (!algo->reg_slave) as a flag, too. > + iproc_i2c->type = > + (enum bcm_iproc_i2c_type) of_device_get_match_data(&pdev->dev); No need to cast a void*. --6WlEvdN9Dv0WHSBl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlyjORUACgkQFA3kzBSg KbZmdw/9GNjBVJL/3oOGEZFDISLOBXCpa+MekxPn+H439sj9T661k+CV8XQZH12K TcchO9mzMA4w5nMFPKYGw3+aJ6cZXbXuvYwZfXu97u8zrfrN6dLcR4erWZi7/yMR Ckk0e2lcuOzXVp8JAiLtpWnix1dvc6c0vm4F50n+fD8UjGCkIn/Ur+syRCwsQnMB JD3Fb8m/Y+g0OSGOLtbJCg4UFnnz4rDrIecRUfUZgukKpL6alRyiKoE2ldQUecrh 8ftdrE0DA0FGnByRjboeLEWWUxMFAF3a3C4OFmytZ8P9nqihTfhwoRIfFLupmywU bUPHN00gol6EHw1tGPxu2KxuJ0n/yRgGr7ASw+CBbvDgpWhha4hBShT/bCfIufcq 1vIDA5M2wkG12FLn9MbwjjCXAR7WuWZbqI65UgwU4f9OKsbhC28S3siirKUSnRGg KR5Kv5jTgSZVSSdjWNG5xS1xKh1sp8iQUcQQRaOua60FqmHY1HvKc6HLogLJK5gH j/ByoLKqy16KTG1uOSmVEtEdNEQ5xiba84UvncJrIQcrvZnZlSQZml8EQ4njoK9Q vfQmCl7Tyx+S+GKSnMABvsHhvhf1GZf0EFYagwTPUZi4lsoK4Gvu2vu3YvD3D5Zn CqjsZsUHqW1jLPNYv9hDHO5eov/ZpRa7kJwuxcwmGLuvwbneSFU= =vf6X -----END PGP SIGNATURE----- --6WlEvdN9Dv0WHSBl--