Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752468AbdIVOIM (ORCPT ); Fri, 22 Sep 2017 10:08:12 -0400 Received: from mx0b-00010702.pphosted.com ([148.163.158.57]:44744 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751882AbdIVOIJ (ORCPT ); Fri, 22 Sep 2017 10:08:09 -0400 X-Greylist: delayed 394 seconds by postgrey-1.27 at vger.kernel.org; Fri, 22 Sep 2017 10:08:09 EDT Date: Fri, 22 Sep 2017 09:01:25 -0500 From: Kyle Roeschley To: Mika Westerberg Cc: heikki.krogerus@linux.intel.com, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pinctrl: intel: Mask interrupts on driver probe Message-ID: <20170922140124.ptueogzngqaq3hcv@senary> References: <20170921192003.17324-1-kyle.roeschley@ni.com> <20170922054712.GW4630@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170922054712.GW4630@lahna.fi.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [130.164.62.227] X-ClientProxiedBy: DM5PR10CA0024.namprd10.prod.outlook.com (10.172.33.34) To CO2PR04MB2278.namprd04.prod.outlook.com (10.166.94.26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8089023c-bbed-4e44-4b4e-08d501c26d48 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CO2PR04MB2278; X-Microsoft-Exchange-Diagnostics: 1;CO2PR04MB2278;3:ecQhq/jLDAIP010lVizyQ0KO2tm3nRRcoOjxXPHWo/YaJ3WBNK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ZBGLsQMKrFQZ/Rs5b2AA4ejeTmQFGlV46d4/Ov7HWXjSRyl9/cYgmNOSRlWHWqQflYKlFKicVr0Eue3QKFNr4ex9oPkqFTNFwhKdWOEaUpbyN0Nw+sNFTv2ZvXMzy7kl4YAP+LSCr7+I5Mhwahm3su3fSfrEi11oa8FoFfVJq9wNie9DLPLNrTZptIYG9cf98HYF5Mo+02DC19IYbPArV77ht5RTYnyHjFBEh7D4xeUr0wVjUl18fAD0dzqn8LzKZ//Rcy9wGPBJiFVTsVuxNpWsX9xxKP5DWpY7fOmQ0iLudtehfEMNAJm18PWKJOrPM1URoDKl9NsgmD1yJhZFVYt/G81urx7ESMBLx61hbuWQzB5MgfI7s52U6MmGgmszl+rIRCAVA=;4:Tc7A18tBvtJvrgjw0QUwMADm6NPb/t6v75YYkqMsLdQkQyvr59QU4QHHQx/nXN1B6bYqzfk35CG+NCkhQanFxRi9Bik+qIRyEkVfANrCfZJ5kWgi803+yQ2kMY9EgAz/yRBDJ4cVCRft3UhihnLbqbXH03HXM+GJtJtwwqM2gHuVPdHO4ebuqS7AEjMrVUk2vi9ZrKwY8ULx5QrID8Aq8c3Iz5r7DdFp3XILjnJkGLJfE7oZMIYQKl9ocFn8uftR X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR04MB2278;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR04MB2278; X-Forefront-PRVS: 0438F90F17 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(189002)(199003)(24454002)(81166006)(50986999)(5660300001)(6916009)(2950100002)(68736007)(83506001)(316002)(16586007)(76176999)(1076002)(58126008)(7736002)(305945005)(2906002)(50466002)(6666003)(54356999)(25786009)(16526017)(101416001)(189998001)(106356001)(229853002)(6496005)(8676002)(6116002)(3846002)(23726003)(66066001)(81156014)(8936002)(478600001)(86362001)(97736004)(105586002)(53936002)(9686003)(6246003)(47776003)(55016002)(33646002)(4326008)(33716001);DIR:OUT;SFP:1102;SCL:1;SRVR:CO2PR04MB2278;H:senary;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR04MB2278;23:Y/zpfJNPfy/ljd85S+NY8MYzHnT2Nwv4fDLnbe8TZ?= =?us-ascii?Q?tpe5piaEMbZI7xAvRFOml3Ixec0gJpLYOwrA7ngAGIrh7xX2AXdxlc+T/utM?= =?us-ascii?Q?MXHo1ueFGxqdzIUgdgF5IO1rM0sf6nnHXjWD66oiezGEf9kK1F80blaCU77f?= =?us-ascii?Q?z1F20kuROScyFVbSc/iCUBnWdCzMnPMz6FbnbmPPMpWLYfURmkOGUrBGm7bJ?= =?us-ascii?Q?DGTsT3I8AzVnZvHy40xKJrmcLmXIcOSkGSfc+NC4tzhA92utdSiA+wP9ZV1K?= =?us-ascii?Q?r540OiBjSZ70babC3s5RQui9aCaXMxl2cs0AAgisdTMGDlLhjGRTBE21IbrI?= =?us-ascii?Q?tkiMqezJXnb3Ssj824AnRFh33XMyBLMRaTDJeBwErKh3jYnOKyOzLO2cWEAJ?= =?us-ascii?Q?KDapubIYJlE4PGChwOnB/8p7H3i9DqvyFfP8j51i0RVC2ecvsKHYYNAb22Wm?= =?us-ascii?Q?AfoAmHGs0OdcHDkF68/OJ0mKYVDGoPYTpViWeNtYwoTMzoMPVmL8pWL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EdJvfLDv+6DCUQL7p3WvwsDz+vj9QKfaK6QS74OxPUrHdgODA2Bwu4eik0MnO6gkzHtKd0tObHcZfDOnq0rRysMqV6wtBIYeqwWiE/o+CBKcD8Wwb7D8F9G2Q==;5:qCMXEkaA4rOuo0WbO61VzYyh+ELLaxvJPkaLKVJanvDDDPhoeUXWZNk0fXLOW+7q81ETm4ird8y9kphTlg+Qhw1iFQ/SwTfpmYUtMl7wYkj/fl67B/Afdq8AGAMhzYXe6rn21O4u8P6mpqQwXhs2pA==;24:XtXUaMfUk7o1I9k+HGmA6cFrK22JccZpNmeR1c50osDczD6hFhNe8YZPz5DzGPaUpQM5pqCsdO3mz0ljkd5PG3tZQSb+b2dPpizdWpIMGzI=;7:yDNRUZvdQgxV5XpKwb3N9RTVB42lYxEoOQCYFppxz5UZlx3jjIlu+j5ZlAh+ilUfgfvvhBLeyQcqmUuSOsmaaKLAnAPwUpLAWbb0NvvUSfGkoJx9QeqhkkJfM6fIr2QPARl1JGW0JsUTAQpvywZ0TRQHq6kqmw2wSxTKtbYwrl+IwYFMdFTubql/Gdn+9wS4QyuKzOP685BPHqrORVStg4EaCgfc2uoauWKxQVy7c2g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ni.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2017 14:01:30.6218 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 87ba1f9a-44cd-43a6-b008-6fdb45a5204e X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR04MB2278 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-22_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=30 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=30 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709220196 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 19 On Fri, Sep 22, 2017 at 08:47:12AM +0300, Mika Westerberg wrote: > On Thu, Sep 21, 2017 at 02:20:03PM -0500, Kyle Roeschley wrote: > > Powering off the system on Apollo Lake does not clear the interrupt > > enable registers for the GPIOs. To avoid an interrupt storm on driver > > probe, clear all interrupt enables before enabling our interrupt line. > > It is up to the BIOS to set the proper mask and program the pads > accordingly. Which platform and BIOS this is? > > I would rather not do this because it might cause other problems. I haven't seen any issues in testing. This is on a platform based on the Oxbow Hill CRB, but it's entirely possible that there's a bug in the BIOS power sequencing behavior. I'll dig around and see if something's been missed. -- Kyle Roeschley Software Engineer National Instruments