Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752859AbdDDI1G (ORCPT ); Tue, 4 Apr 2017 04:27:06 -0400 Received: from mail-by2nam03on0068.outbound.protection.outlook.com ([104.47.42.68]:36825 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751073AbdDDI1A (ORCPT ); Tue, 4 Apr 2017 04:27:00 -0400 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; the-dreams.de; dkim=none (message not signed) header.d=none;the-dreams.de; dmarc=bestguesspass action=none header.from=analog.com; Reply-To: To: , <", linus.walleij"@linaro.org>, CC: , , From: Michael Hennerich Subject: question about concurrent regmap i2c usage Organization: Analog Devices Inc. Message-ID: <76471664-425b-c386-3ad8-efeabc2eaf7e@analog.com> Date: Tue, 4 Apr 2017 10:28:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(2980300002)(438002)(199003)(189002)(54356999)(54906002)(6306002)(50986999)(4326008)(83506001)(77096006)(23676002)(47776003)(65956001)(65806001)(38730400002)(2906002)(43066003)(36756003)(106466001)(33646002)(2870700001)(31696002)(6666003)(3450700001)(8676002)(4001350100001)(356003)(8936002)(7636002)(86362001)(189998001)(31686004)(50466002)(305945005)(65826007)(5660300001)(2621003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR0301MB1973;H:nwd2mta1.analog.com;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD014;1:oqzSstTu+CFjw1bzXLcYG7+fSTR5m3gG2486o4xDmGD1RPpnroW9xLMzs86EUVntrnr3G7TEPewPNfYn6WT76TMli2w28qER0cwkNnScW4FFwlwubHm6IA4xrwJu4DQJwo+V8g2TR14U7HQx8nUp6l/g9htnn3m7AZthdD9qgrQwdnYY+tdJeXh8FzzLyd2u6t9gppKhu2eSqTdfL1gkEcONvd5Xa+P+iGhA++0sIN7GryMt8S25IsWcD95w4u3mPUiTdJ9oAQzx8LzQdD6nvgQQxk4w5MUO/vaAwfAEMcZd7P00PJ5CgH397FIZOLpzWsDPSKvBF1G21JhRVdefbCQuc2Ez7fIpi02nIBbZvU8P5ZcPUPA93z+VD+uW0d1edPzY5b7MtOsRW5FhBEp16tLmB7IPnjgbuKZHbg1lBwulEVjiHm8MuV8MBZC2GxdzeGSG3ft1fP3FNGBKUcGbRk3rH/iz6ajtRy46aeNzjJce84MdsnxrBhwBCz11vF9y4mo19XPxZR59+7Dqmr5sbZ4kHrZB6xt+OHSCTNiTHb6OYJNg03ChH25xL5SE0tQt39Q+t9qvIO2BeoNdKcy5HMVbQUcSDUeOJArQQ+moCR8= X-MS-Office365-Filtering-Correlation-Id: 4bc99625-36e5-4091-054f-08d47b345c29 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075);SRVR:BY2PR0301MB1973; X-Microsoft-Exchange-Diagnostics: 1;BY2PR0301MB1973;3:36fWhwmIAlVqhfwpsBfMwpjyBxSgA3E0dS8DDk90AW1GSL2NpkpfwPzzoEg0JYdMHs9+kKPZUrHBlQBLclH+YEXjmwG1iU0a8qbQHvXx2HC4XupiwIYUSki9sShb3RKDD2b59IXwj6bx90xdFEqiA63eLz7rDaIVvTesqpe6xrukWwxUI+qJAto8QB/ghB1lRDvQPXu0QUqIUnMp9WzFQSdjZbWHTs0EPCgIrwcGv9oBGYpd9aoJ1OAm0vZZr0dN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w8J1tLo1SvRms= X-Microsoft-Exchange-Diagnostics: 1;BY2PR0301MB1973;20:35Ecg4mMpcCaN1nWY2P8K2BsW655pEiyE4ZGhk+/GLoQtUzi1Bg7JERXvgtXD4glTSnMzWviSsNoZ2clGpKBcxWUJ/qBZcUcA/t668g/Ys+5X+lXI+AUHQWhWGxcpPrGHlJIffGkz3mh9UkZeojvCq+SMrO3WinmBtUYj02PZ5Ymx2199waEhmKMsLoPE9rwuaHlxHCFqEd9E5iYHC35ggQ62qfiTtPS6tgtcXDgcvRVuGZyOtqhucX9/8BTa9YiC7diSjUXBpyAn6GQqvKWmubnP2TTXb3l4jy0D2Fta3Nwd8r9i0NTGA9YBWS3088ffBxqnKKP9gvOYTIntDbRhbpEmXnMfaJ8mWbUqvBmHVYu7oJlrtQYxPqVQyh2VFcUHgrj1CrMrFVMFPnASbloTAyfv/czpCe/UvHqPVRexqtp1+sgHTyYL2DmqRJiRe0txrSiyPHM0qEVuA/rt8fJp8YY7emYCvBAAUzzd37XTQcdPIqeMkbFw8kgfHMrW0c1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13017025)(13015025)(13018025)(13024025)(13023025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(6072148);SRVR:BY2PR0301MB1973;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1973; X-Microsoft-Exchange-Diagnostics: 1;BY2PR0301MB1973;4:5LRxSPKEC/QjvPakVdfIROg0bFHeA9vW/zbd9wrtx5CbewDfv4qDQnEkXUW7o/zg/csyIpRZQUpJr5fEgmk+77qyHvVGdBQGl/yex6AQcm+BWjyl4J5kHYOQ2VowhCkVU0YL1quWUZRczpnk1CK06a1xSXOr1DfhWG8IF6jqGoJ9sSt5I1XvblT0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fgSZd1CtcwBnsWtwfz6A0KD78Tb0kNimI2cF9h5yJ9Kyg3hwG1wdc7vzhls= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR0301MB1973;7:fTTu3WLFshOp73+vmYV/lsS+1kdGAfTpvJy1Ublc9Ms4rxD/f/JO+SBbB1XiuNtU6Ak44SOcaR/wTantyKb1RXLd0maLt+NxEikqB4PK177bmJtr2UlmT5GoQ9U6YFyoPHlu5lMaakJohx8g9Y2Adb8QESsjFzcDKEN+wuwiPnjc2TNI23LhCJbIBl7uTBZXyCnU25FJ4EWT55TdxmxnMoCtBXcmORnNDaavjOTRqynuYwRfUPpqN3BfXhvM7QgYCubJGvK/sD9kgcJQEVRQ8Kuf7UTuZUhRBlWg6FdkcPWVDFs9m5q7sHUBO/p3y7Js8/kYUcS9hcY45NBxOoFDug== X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 08:26:57.7358 (UTC) X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1973 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 733 Lines: 25 Hi Mark, During the discussion here: https://lkml.org/lkml/2017/4/4/76 A question came up, regarding whether it's recommended to mix regmap_i2c and plain i2c_smbus or direct adapter transfers. In this specific case for the i2c MUX portion we need to avoid double locks, and therefore use un-locked direct adapter transfers. The same time we also implement a small gpiochip, where we would like to use regmap to avoid some boilerplate code for the register cache. What is your thought on this? -- Greetings, Michael -- Analog Devices GmbH Otl-Aicher Strasse 60-64 80807 München Sitz der Gesellschaft München, Registergericht München HRB 40368, Geschäftsführer: Peter Kolberg, Ali Raza Husain, Eileen Wynne