Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp74286imm; Tue, 10 Jul 2018 21:30:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMPnsNJA2mk0NFLXJfUjdSGkQymQmSu2uZsdfeXDxCYJWYKUFoxp4cHrHrbqZUDVbFX2RS X-Received: by 2002:a62:9dcc:: with SMTP id a73-v6mr27725576pfk.249.1531283418301; Tue, 10 Jul 2018 21:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531283418; cv=none; d=google.com; s=arc-20160816; b=czEhXr0/dRcEZnJ5QRIpMQ/1YFh4/oC95rIpf2s1nxB/bxT5gtvsGoC5IysbIektbi wICwH+LcwUvdo2cU36x0NwhtO+hqsk9ngJtjYCLRovObp2E2or1VDt1i2ven0Nlr58WC JGUs/+8UmeuF99BSxjEYLpOfIEd/EmphnkU+pRAtWEXoIrTj6B7rbkjED1YGtv1ytztm L5Vo+vh485iQzbpMn2j9Can5NhlyCVkAi2xRZvgXjyJNcRe/5cLqCnF469lfU1+w0U9b VIuGPTsqVQNKprTdLpSthLhbplDIDt1Y9zv0myKxgrSEgN4WZurzkiBgQ7kC3y7fet/E 8m4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=tU5FGVgVHOsfWqz+QA6/CQq6zpaqrvqeY88rwfI89Sw=; b=IMLIDEONJ4zihAPkth3fMRuslILG33ZLPBd7mH3Wwu3GLZhv4ZhwlatQfc/yhaQCVJ 9Ru/4VFNBsAPXzFWSnG3z3/hOVk0hg2iEPp+bVIuxenn9vX18Bg+ImiePPP2/tEmy54q UA+FOP5/GEECS+6CufS4oM9lgAbWyLikaNHu271eLkqJH297TPsDJr17pCNnRrwn/IS8 6nMMpjJt8XS8NbviHfrzxpCwtUvVDDLbAqUlYlloIB71z12ANRufw1MwTW0uW2EoBDgS qv2AT6wndhsjXmQnleGbi+actdjZUe8JpPJXGem0IwmrYggE/crX5o7omCcZV00w+Q5V 6H2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=U5FFbMd7; dkim=fail header.i=@jms.id.au header.s=google header.b=dszUf3Bs; 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 70-v6si13546089pfz.72.2018.07.10.21.30.00; Tue, 10 Jul 2018 21:30:18 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=U5FFbMd7; dkim=fail header.i=@jms.id.au header.s=google header.b=dszUf3Bs; 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 S1726280AbeGKEbp (ORCPT + 99 others); Wed, 11 Jul 2018 00:31:45 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:40367 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbeGKEbp (ORCPT ); Wed, 11 Jul 2018 00:31:45 -0400 Received: by mail-qk0-f193.google.com with SMTP id c126-v6so4063291qkd.7; Tue, 10 Jul 2018 21:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=tU5FGVgVHOsfWqz+QA6/CQq6zpaqrvqeY88rwfI89Sw=; b=U5FFbMd7eiUP7SzFoxAdS7D/79z50YEDE2lpLHG3BYHOEJlNKNPRF7mCWHCnNUNt3w COEAsTmK5ORArUeerXHFmgQkspr9qdEPPqvJaTfHVcSVYVAk8Tk0Ip8Ne2Zqlbc9yUo8 OedePoh0vDGR7cP/pfYmQJ7jfn80bjZ15Pg0kkJAzv73QZk7cM4wzJqf2YpETpkcXgfE GECjfStVlTYeCSsNeEuqXzpS2utbq62n2vX6iCHDMAnr9MpPGoULnHosR7+TMIab5DQm FplV2LTeKp9hllrpHzKXa8Q5C+jNedstuSgeNYON8j9jqkVKhA9pB9qjjHGkZBHNbN4o M2XQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=tU5FGVgVHOsfWqz+QA6/CQq6zpaqrvqeY88rwfI89Sw=; b=dszUf3Bs8lie7HyZW0PlA7/7I6W5ZqPCNMzeKDEqtJAcfNARi0xin6R4/fb7q0b/uW o+3IQW13sFkguTKsgaXZLacRfTNm8u2aOdg8qybrI4Ywq/dCm8FMa51uGAf2gk68nZ2i +JFTrBCumzIdBqWJmerhROSuhmWk6/SwPmQDM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=tU5FGVgVHOsfWqz+QA6/CQq6zpaqrvqeY88rwfI89Sw=; b=aM4SGWJ6NS3QXas6786pV/gM0EUKnWD5fgGN1nT/OjFnIFXp+bMvvqdSK5KrtvX/v4 mxxbtthKn2fZl3UqYBbKh8QQrJVVEM5rymgwYlPEvAoIfGNJOJjxa1xH1DbdYtLbjP4b /gw0VaSZITwTF4WiYvebMrPIhVZFV/wyJ0LCfzA0FdxbrsGOmS5PTBIhmcsIO1edGxGD xfwvrZ9NP29Jmd7xjihQiImfVbbB/p9lDNcMrQgTCLlcpSPJRQMl4+4qA3/JAyGZCJB8 DRWuJmM+PLaDrBLAoPzyDPw6gU+4rEYXDBqIaA3BTeu1jPTPeEe+gU34S8IqsGihxLIn NpHw== X-Gm-Message-State: AOUpUlELGQQgWItV888zx8NMHr6q1qGciGawFD5Qxyqlt7nnGETvKQIi umkknZ/lgdkLSQ/qNKq0Q39msrk8amydp23FwjY= X-Received: by 2002:a37:3a8a:: with SMTP id h132-v6mr9893420qka.352.1531283363743; Tue, 10 Jul 2018 21:29:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:169d:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 21:29:03 -0700 (PDT) In-Reply-To: <479b3c82-ffe7-9e6a-569c-64fcb1b43d32@linux.vnet.ibm.com> References: <1530816030-13010-1-git-send-email-eajames@linux.vnet.ibm.com> <1530816030-13010-6-git-send-email-eajames@linux.vnet.ibm.com> <20180709224114.4h47enyt4tucqcou@ninjato> <20180710185042.x3slnms5wzocobqu@ninjato> <20180710193944.34phe4zafzvwjm5v@ninjato> <479b3c82-ffe7-9e6a-569c-64fcb1b43d32@linux.vnet.ibm.com> From: Joel Stanley Date: Wed, 11 Jul 2018 14:29:03 +1000 X-Google-Sender-Auth: lD4BodnTOKr35wsBDlI0ll4CipM Message-ID: Subject: Re: [PATCH v11 5/8] i2c: fsi: Add transfer implementation To: Eddie James Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Linux Kernel Mailing List , devicetree , Rob Herring , Benjamin Herrenschmidt , Mark Rutland , Greg KH , Randy Dunlap , Andy Shevchenko , Peter Rosin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11 July 2018 at 06:59, Eddie James wrote: > > > On 07/10/2018 02:39 PM, Wolfram Sang wrote: >>> >>> Sorry, what do you mean "show up as"? Yes, we could first shift all our >>> addresses in user-space before passing them to the driver, so that the >>> msg->addr field is exactly what the hardware expects already... This >>> would >>> be non-trivial for our users considering all our documentation represents >>> the addresses as the top 7 bits of a byte :( >> >> Ah, now I understand the whole situation! Good that I asked. But I have >> bad news for you: >> >> msg->addr is 7 bit and LSB aligned. No way around that. This is how >> Linux I2C worked since the beginning. You have to adapt to it. >> >> I know what you mean. Most doumentation I get has the addresses in 8 >> bit, i.e. 7 bit address shifted + RW bit. But sorry again, the Linux >> representation is different and all drivers have to adhere to that. >> >> An EEPROM ist at 0x50 in Linux. There is no write addr 0xa0 and read >> addr 0xa1. > > > OK, I understand! Will test and resend with conforming addressing. Thanks > for all the feedback! Nice one Wolfram. I wondered why the standard tools didn't work, but hadn't gotten around to working out what was going on. Thanks for taking a close look. Cheers, Joel