Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753695AbdHORgF (ORCPT ); Tue, 15 Aug 2017 13:36:05 -0400 Received: from mail-ve1eur01on0100.outbound.protection.outlook.com ([104.47.1.100]:32640 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752347AbdHORgB (ORCPT ); Tue, 15 Aug 2017 13:36:01 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Subject: Re: [PATCH v5 0/6] drivers/i2c: Add FSI-attached I2C master algorithm To: Christopher Bostic , Joel Stanley Cc: Eddie James , Linux Kernel Mailing List , linux-i2c@vger.kernel.org, devicetree , Wolfram Sang , Rob Herring , Jeremy Kerr , Andrew Jeffery , "Edward A. James" References: <1501089198-10356-1-git-send-email-eajames@linux.vnet.ibm.com> <59175354-07ba-2bbb-962e-ac1de36dfa4a@linux.vnet.ibm.com> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <538605fe-f109-b84c-cc21-f1b9824ad5d0@axentia.se> Date: Tue, 15 Aug 2017 19:35:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <59175354-07ba-2bbb-962e-ac1de36dfa4a@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: DB6PR07CA0018.eurprd07.prod.outlook.com (2603:10a6:6:2d::28) To HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fe9194b9-f988-4f3c-1063-08d4e40414c8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0202MB2556;3:Ryo/yOs3gnsLmeYxX169NlKbvQ5Qe69LtwBiHOoDgrZciuBbHucWpY1IXyxmbf3fGx87PcWJSzhQfJOOmAH6TKpm8D8NLI6OsLtEoSCziv6mPB7cZkrJvLUmFcwASDcbr4U/fvfzCn7hNW0WbJ1lpyBOTBmYCa9hCPgx52cG9rIP0ZyRN1FuM29xHc8jEyzzF6SHV+TIaObPFRDtycLK0iIZmCduFZXnTVkRC58WOszpOKSH4DOSnq4IQBoTmTkp;25:xw9d3U5nKldZ/Uw1kE5KMkNi2+ouKOWKxuS9lxVB6bMCLRmVPjHszHSphHZWprAtJLsfcWviG8vIZjpHI7zBNItwzlaWgfr7ZuxWXr0pM+bJTgXCs+j4/vxuybHCZ4pXjNyUTCVpf5uqazy9Q3urhZ0FAmw4Yi8ZP8PUia3+IYfl3uzLm5V1yUE70G0cZAyZ9IL673iIXsGheam6keGgBRltB7MQDUfcxjawfIsBhr9J9imOjyubeq5IjuNlthFraypUlwZ7wJbZw5PTRilVjIMwk7eE6LLdqGnxwcJyG4pY0mJinYFLbzSCabABMhJih58Ij/NbYgyT1qp4u+mkEw==;31:yXDidQwIAkIZPEDYLAdTFT8Fj32jOJDE4t9FKqNuYHDYwO9jMmlnoDZEWuB/lYzYVEyQB2oTxs7QLjJvF+Ve2g7FObyayRpDm6XsxgRIwWKODx2+CeF4Gp44vtt8s2TLMuEU37SPPiDK/KaSwTU6RWTXsTNv2wge59FzOa/vxfe9OBiNgIzHXcjb98CzcI8np7bV8YfQJBlo0oZ02FxXwR96J59srfaIhNa7Pp3Ss8U= X-MS-TrafficTypeDiagnostic: HE1PR0202MB2556: X-Exchange-Antispam-Report-Test: UriScan:(274839183919467)(104084551191319)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(2016111802025)(20161123558100)(6072148)(6043046)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:HE1PR0202MB2556;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0202MB2556;4:tlHVDxPrEnuPIog9mvHu7mYbIyxNKqmCaENuEPdaScuePi7ok3Fswvz6vkZ9l2vCIRjEVSaziFkCYGKs+PC8yhXzjxddU1H5eqf8oNt9jTyS4GE9IIKZaCf3rOqh/yEyHbVGcHqaDhSLbrJWff0KpB1L9zFe3y4jduy3m5W55Dpz6b8ioNLB74ykstxPGXk15Gmxhxc366jdwZddykdJaQKmvej4dfwCpHVKpPA0mTNE2MdQd35zvw1iGVLbwrFxg+OP8B46+ZzNjBDUzH1od6wyKsZOZRFYLPGyDOlxjPYEqqR5bw7vl7SiNVyEOVYYAd0S1v9Jc/3lE04bltguhCeL2CBiD/4Vp6Gn87RunAvZ55NsK8xN5+LPZXD7nrXG X-Forefront-PRVS: 04004D94E2 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6049001)(6009001)(39830400002)(377424004)(24454002)(377454003)(199003)(189002)(53936002)(4326008)(64126003)(3260700006)(81156014)(81166006)(7416002)(31686004)(68736007)(25786009)(31696002)(65826007)(86362001)(8676002)(5660300001)(189998001)(47776003)(97736004)(54906002)(2906002)(77096006)(6486002)(50466002)(65806001)(65956001)(66066001)(36756003)(230700001)(106356001)(105586002)(7350300001)(54356999)(50986999)(23676002)(6116002)(33646002)(3846002)(229853002)(6246003)(6666003)(2950100002)(101416001)(53546010)(83506001)(76176999)(42186005)(8656003)(478600001)(117156002)(4001350100001)(93886004)(74482002)(305945005)(7736002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0202MB2556;H:[192.168.13.3];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjAyMDJNQjI1NTY7MjM6ekxBMlFXWHBNOFB0WWRVOEtndndkRnlR?= =?utf-8?B?ZzdCZk01RVJQMHFDdGhTaUU5bmUvV1RJVk9kSmZ1eldsNWR6aDJzaUlsdGZS?= =?utf-8?B?amQ3RFlsbW42Y0doS2JKcjJhNFk5aVFBZDNaQUdyNVhZZk1DZ1VFbVVSakFJ?= =?utf-8?B?WHFwQnpXTElZekZLdkx6Z201RGdJTENCMHBWVjNkZmtZK0I0UDR1di9GcWpu?= =?utf-8?B?UkJkeXkzN0lwZlZaWndTRkpiM2V1VXUrcndOd3VoQ1pUdUNWTnNvMlUrMkJI?= =?utf-8?B?UG0yUENJRFE3SGZOSHhGNlFLY3BEUldYOEpOdDhBUiswT3VvZ3llTjdYU1Zs?= =?utf-8?B?Z1h2cXhQNytaUHFnaTlzVWxWSFFHMHVsdG9CckY5Q1YrMEpuNElkL0ZWUFJO?= =?utf-8?B?blhzM2hPMytrUXJGdzYxS2pjYkJ0YS9SaC9ReDB5em00SEdKMUVBeUxYZFJ3?= =?utf-8?B?THk5YVNaZ2FVK0NlOWxiazdkRUhrY3NTdHZhaHBBMDErTUNSRHJwOGhrYXYy?= =?utf-8?B?RTVWSjc4YTNUK1dEUW9zL0dtcyswSnJnT1FlSEQ1NTZ2TUdKb0tsdHpxaVJP?= =?utf-8?B?UkpBQkFHL2lQbGVRd0FVNW1oNVZTdkNpTlFVN2VlampRWmN2Smk4SWxpRkJr?= =?utf-8?B?bXppVDV1TUFqb3c5bml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9RSTObMo+qIdEgN+qvYUoEo7gsFUiOYt2VL95oZvGuVuhnhvvTN5QgkLeFdUROWcHn3/cNzmESuVMFL2CPS2tMNRPBhqFl6g8w3p6zvQ7MdX7bUHSEf8t2XdvXGUNJiO3u8CtzVCh32iCXPAm/Aw==;24:UboO2bMzyUiSQzBqwiR3Rj7cUTUzEgwOsMkRRF8V2p3ZyoBF1NAizxbyKjdoYGn5P/yzJ/jQO+7hyhAWGXrmzBaksfm2pcdi+bI9dCaT754=;7:S1I3rZ3mkhlbOdSu4EmhUZ40ousD5ZiKRkFY04Q4VP0BjBubFjyb1gXX3BMLZo34BWqYEwJbez5t8oj9L4n6aUfolNOT5wx84JHcbGynfZXkeHhp2U5QeX+57oW3XnOm4lBw2kKuvmjwBbrWdDvlEHpyYngtmS2XBnilXKJlHmKXvl6uAW0EMvjkNPnjqkorKrgwrWI3XvMkfs03RkEvOrGJJuoolfxthmBlZc9Py0E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 17:35:52.6677 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2556 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2575 Lines: 49 On 2017-08-15 18:28, Christopher Bostic wrote: > On 8/15/17 3:10 AM, Joel Stanley wrote: >> On Tue, Aug 15, 2017 at 4:06 PM, Peter Rosin wrote: >>> On 2017-07-26 19:13, Eddie James wrote: >>>> From: "Edward A. James" >>>> >>>> This series adds an algorithm for an I2C master physically located on an FSI >>>> slave device. The I2C master has multiple ports, each of which may be connected >>>> to an I2C slave. Access to the I2C master registers is achieved over FSI bus. >>>> >>>> Due to the multi-port nature of the I2C master, the driver instantiates a new >>>> I2C adapter for each port connected to a slave. The connected ports should be >>>> defined in the device tree under the I2C master device. >>> Hmmm, AFAIU fsi is a bus, and on this bus you have some "client" device that >>> happens to be an i2c master, and this is a driver for that "client". Is it >>> totally inconceivable to have some other client device in the future that is >>> implementing an i2c master differently, but still using the fsi bus? >>> >>> With that in mind, is it wise to pick the driver name from the bus that the >>> device is connected to, and nothing else without further qualification? >>> >>> I don't see any "i2c-usb" driver, but I think there are a couple of i2c master >>> drivers that communicate via usb. >> You make a fair point. When I did a prototype of this driver I called >> it i2c-cfam, as it is part of the CFAM hardware unit inside of the >> Power8/Power9 processors. >> >> The documentation does call it FSI_I2CM, so that's an argument for the >> current name. >> >> I'm not sure how accurate that name is. Chris, Eddie, do you have any >> other suggestions? > The I2C engine up to now has been always accessed via the FSI bus so > historically I assume that's why its labelled as FSI_I2CM in the p8/p9 > specs. There isn't any reason this I2C device couldn't be implemented > in some other topology independent of FSI / CFAMs. In other words there > are no FSI details internal to this I2C engine, an argument for removing > the 'FSI' tag. Note that I wasn't primarily concerned with this i2c engine growing some other non-fsi interface (like many devices have both i2c and spi interface versions). I was more concerned with some future and totally different i2c engine that naturally sports a totally different register map but still uses the fsi bus. But you have a point. If this i2c engine evolves and ends up supporting some other interface, then that too would be cause to regret the i2c-fsi name. Cheers, peda