Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752982AbdCPTyG (ORCPT ); Thu, 16 Mar 2017 15:54:06 -0400 Received: from mail-ve1eur01on0120.outbound.protection.outlook.com ([104.47.1.120]:54424 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752476AbdCPTyE (ORCPT ); Thu, 16 Mar 2017 15:54:04 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=axentia.se; Subject: Re: [PATCH 12/19] i2c: mux: pca954x: make use of raw_spinlock variants To: Julia Cartwright , Wolfram Sang References: CC: , Thomas Gleixner , From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <910fae4d-e5a7-f149-1daf-44e5487bf643@axentia.se> Date: Thu, 16 Mar 2017 20:38:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: DB5PR08CA0075.eurprd08.prod.outlook.com (10.166.166.171) To AM5PR0202MB2547.eurprd02.prod.outlook.com (10.173.89.8) X-MS-Office365-Filtering-Correlation-Id: 5e699c8f-bba9-4e98-e1c7-08d46ca3fcee X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;3:h+DGcIOglFtU2lpI3lbcrOE4qCyomQojnG2RD241NlALFj5DKXFQA7QpPLGgeaLdBM5t1/khMdZch8HbRrtBpnCOSNrIMr9swZ3BPxIhdnUTWFoWAT8MsZmDWZ8csM9dnoM57b1I5caghnfiz8xYcIWvvGrxZsLQMpobFPL35hT6YSbRoGo0nBAnKXL//HkE41FTW4c+TZg9XspEEZ00BKU9ldA94Cg0acWPCR19PCfp888dwctN7mKO3jbtA2UmBPJmg0twG22e5IJFKbxcHg==;25:Utp7NUElI0D8r9ICkLsRDNSl6JjG53WaTpTWHfCnDLNHtK7q+sa9Ei5bX2txfqPoH3W8IJp8IlXcykBH81rH7TsBEr3lkPueKKAb2Xn5VYAwYE84hYX6y6nAEC3K8yqooJAXC7DsRZVUE8PrWvuCFlqHwNtCisG/6vK2JIMunXaJTeNKoVTQq5VURM2ZG+jQu8zKGGBmk9Pa7qaR8YpR8Wf7cyBQrC9uBIWfl3k5SejAccNSvhu6IzydNNceYVqBGR0kcnyhiV8mz4esgv0A36c0eAGj/bYM6SvTHlZiJcVVA5nmc2AWkbcvtyGSU86qHcZ6bvMSuM6uywDLOVQjiJ4Sac3HydGfItaIPqHT+wzT3VXo2NQRQlcV0DOHbz0cmgzCHjySHQpRI1P/WFHcghKqACeL15fBXRsh3qXxLNsYCyjM7lem6U+8j6bY+A2r9zSShHFFjt21uLTLHtnrlQ== X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;31:gn8p2dQH7iuh0OpBUf+QkKh/ZZr7d6MnR0EjAduEYSVsKnLDv4aetOmH6bA64wnwG0vlZE01ipcBwERgqmpu7ClPScJctW8yuAUVEcDabjgGREs5I5Lmg6xx004BjplDuNkJHgMguGsgebGP23DmCacRFegm4/CjaWyP3e7bABnImL633DYs9Mxm1bEyozr0pOxnw7YMVYnTdXKl0Ng31GRMkzlqy/wWTdfYcvbxnPTqRIQ4fkaUJo1BE5eNCEgoxvtYWC7S6EVf4/7VGuo9kQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(145744241990776); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(2016111802025)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(20161123558025)(6072148)(6043046);SRVR:AM5PR0202MB2547;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;4:8IF5VhJmysVt4iE+9ZXsw/yDUhW4uVBbloyPzMhTMXZyUlV2B+yYYYVR8BXIvkZdQdn/JFyio0Egd6VFsGNfM/msht+rlXS53di3cFKwLHTOgcPTWzSWvKO7jzRI6n0276X6WYIN8vw9TFCcl+7Pj3q6eSVXMK7mICQEbBbppPIBJG4Up8lu4Q2yMvUUgt5aiq2GYyMeZq++9xk9+o/cSNM+QV+CcDS3Kt0B/HaH2p5LCneyvT/+0A3vtnfT10onOruoLsacr4AkuiLl4IdEouaL1lpXmbWIQ/Aatq7VgyG01mBzvkHzDqVyhxszmof7vBePbXHqbOHjz8hFqpmXTS21DCE7e/8HK9jgEU6WkGJRoSXC1nDuPBVFMb3oxHynVKKmQzNwGjojjFz637fVcYBA1HXf5akODLEPLCmChL+XVV7YnnsZqSgLHp3x4zgn6OnmYKauFwlZQtbv9Wi+sT47mABXkeX3OPGexNSFdGkMzBPYzNAJhiLicQz/46lVJqMlsTz2aoDgBHuFlrGOxjQTeZkLf7yLuAuRrdgfCBJFxQrn+Ffx4sdrYrFzGoRFYVUdFO53DSw8WDMow9yQLJfRfP9bKOfHVrENi8L0WbHfYOcqGLeiEtnvmdIJuQ/BqZSzA1/2wQDsZbJ5XAwJs7NMP8DcomJjLPstjL6flA3tahEFc7N/M41jhX8Ilo5FCbLQ1RVIDsoBzFUivjTqzg== X-Forefront-PRVS: 024847EE92 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(39830400002)(39450400003)(377424004)(24454002)(6116002)(25786008)(5660300001)(230700001)(6486002)(31686004)(6246003)(83506001)(81166006)(2950100002)(189998001)(74482002)(38730400002)(23746002)(8676002)(4001350100001)(7736002)(4326008)(65956001)(47776003)(66066001)(53546007)(65826007)(90366009)(54906002)(77096006)(42186005)(53936002)(2906002)(305945005)(33646002)(36756003)(229853002)(76176999)(117156001)(50986999)(50466002)(31696002)(54356999)(86362001)(6666003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0202MB2547;H:[192.168.0.125];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;AM5PR0202MB2547;23:BBVLO5s/mNBcMGfuM0P6qPActY+CDvAIp6M?= =?Windows-1252?Q?TlwgzDKt67kCRWcOHQShgcx3TuS9VkT2daaF+G+hWD+9+rplDvjMsuRA?= =?Windows-1252?Q?R01ugJcOqm8xpVUfFVdIVJ6mF791Hi4yjeqPINPqlT2tqHRvMQvoFsLc?= =?Windows-1252?Q?lp55ePg+grveLlYJzGCc6wSyw9l/m4aMwOzRRI/hMQe+D48ezeJEt5jT?= =?Windows-1252?Q?SlDx/g8EDmqCNEzCYkcnp11w7Dkq6Ogs/fIEHlde7A7s+OKuWSnFnRGS?= =?Windows-1252?Q?5JAdaDHQBoWeb/RD1I/b5pHlQhjGdsCJSY/z2iF8Vr25H+rfXdw3CJta?= =?Windows-1252?Q?rdl+6XBugraBTlb06tm7uUeQ+u5FFmY3eY2TUG0fHkHowtyDxVjyjpwE?= =?Windows-1252?Q?hGl1MJ48KhGpiPMMY9eq6jZDXAEupL0TeAQF7H+AfLjscMc/YleZp5Hm?= =?Windows-1252?Q?6X7c22Dez+GXeNRtfjuHaOrSBP5Zi0eXhExh1sCREU7N8j6sMIkGkBCe?= =?Windows-1252?Q?av2/q18OPk1WqzOlYvwr/2rDXFVM1SMfmjPCBwUkwgNJkcAq5s7oAblC?= =?Windows-1252?Q?7KUlNvl3WYaSzGay+1kSDdQw0XdGtOEr0lPkHK/jEY02k1ntpH/i2qNw?= =?Windows-1252?Q?RJmef5a7Pp8rtOn0pxMRRHXfNerO8PLtzs7h4oharsNkD8/T2v2FMhpb?= =?Windows-1252?Q?g6ECYl1kPjUPAVnuuOwasoFUYNi4IdtlitIEQypNEFAG59ILy3mWDKtS?= =?Windows-1252?Q?v8fx2vvlHecxsEfX/y+kX0TLZO71kPksrgNh+l8sCP3r3oOTi05fXJiC?= =?Windows-1252?Q?fAhtT+hlamZ3x3HYnK0zhWdwJemMKSkrgDMSN0sYzXV20EV9kQvGjTA+?= =?Windows-1252?Q?Ck3ylAhnRif9pzMzaoEyhjikVv7yiWChUQ3kipASSJqnEd+1cbL3G9Wv?= =?Windows-1252?Q?FqPK3Bp1d+ltOv9i1nlb3GYpcWnjmOF6Sqk2YCcPOrG0otvThw0QsuDr?= =?Windows-1252?Q?dJ11ibuGlueBu64WV+IhqlS+PPt3WsSAhchOY8MH0FtT06ArRYQ9fRAT?= =?Windows-1252?Q?R7XZ/+6dNlFjfxCG7OQL4jgPU8QK5CvX0+YBt/WIyyb8bkiMz5N3nHd9?= =?Windows-1252?Q?9iZohELHEx/6AtEXBvxeG1ca3pCyTdusFGIDxMtK9WV9gpUNQnb1Nskv?= =?Windows-1252?Q?Y/KCmoAQMbYOltAx9R7TxQO2ig7OeKTZAfmvpjumewCZkV8Lv/zWz7QW?= =?Windows-1252?Q?LNoSGzzekGNLywdf2PlvFGmTwNfqDg7kSuTYlExnPjkD20f9OOnvs+Hg?= =?Windows-1252?Q?tOQOa?= X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;6:S+j6aruR9bx9GXjJVDCvrw49AbHN+iagUZKJkFE6GOF/V2steL7g0i2R0GPn53tW6ILrsPDDCs6vLrvEYyO3tOEdo67CCE4uWwe97URNjihYkMFAItXEdDNV83Kb+CdiKCf0Za/pVWCOgGAQt0FKP6tV8/YyNRIyO08haNGZIzj6Jn/JGhI8J3k25Wg+HyFYw2Ut/bDPE0lbq3TrrtKvjZfzk4zEh/41BB+1r9ib8cQAkO0BR4w6nZM4EVozl9xBBuRN/m2fvG4lvtTEZIrteg9dd+HHEbsz0FhPt3yz9ccyMogBdSo/s4+QqG4xxXOiWX12Yt9qESw5rr+bL74/ZJDWbiQ/yXBH25c0ZIjV1pilUnlhq4cynUHx29qyjdWwJ2HYicI6sQ6Bm6HF1LZfTw==;5:PZYVdVpLdkXvoEZhEUgUJqZYFZHa64T7peAPTll74g1Q2XJe0HKLCsYOl3Sc5bMjSqM5U2zGzJZTcd0m8qSCdJFBprGbJhI/lvPxf4Gpg1bncF+TqsDoE3dZ4dCPtjwHuMd5WKrZ2twou7xBc4n7KQ==;24:44yEogxi3mL3yqlvBXIAvwxa2I1O53IRd2ClRpGy29oqk1QVTWF9eOh6/P1Vqd7KkHBmWAMhfg2KUw0Tmd6arZ/MwDfmvYgw6POwUG6t2+w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;7:kr2xl9ZMHJrS3X1Ki7jeErkmyHLo3b1Eaam5+La1yuvaboOSAdQA5sgwkFgKaKLI1RnXof4XmuFViZEf6e2xY0joNtoyhJ/WCb3OrN/0lIxXxRd/OE1+CHbWAJE+iZfTAoylCj2Wv3nuC9X+jHOI9RphZejr5TkzPhZnN8h5cHl/5oO2+0f5am9fJiF7l8+AZ4A+jr3QEHIZTM621pbvQbb9bmAuN3UX8amei6i+6K1emMDpvticNNRQrtXD9HYIGVrrsJieiQ95hz1afCfP0f6ySJEaJdGoGsop0aLoBBkOBUtd+7RJCgp4ZzpFyVr6BR5gIq8Rht2nSE87ivWwGg== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Mar 2017 19:38:12.4284 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2547 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 16 On 2017-03-09 17:21, Julia Cartwright wrote: > The pca954x i2c mux driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because the spinlock_t type becomes a "sleeping" > spinlock w/ RT kernels, it is not suitable to be used with irq_chips. > > A quick audit of the operations under the lock reveal that they do only > minimal, bounded work, and are therefore safe to do under a raw spinlock. > > Signed-off-by: Julia Cartwright Patch applied to the i2c-mux repo. Thanks! Cheers, peda