Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2603354ybl; Mon, 19 Aug 2019 04:53:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/3/O5zBZOKmP36TtTr4JlzZGhQ06gle/bJQJC+nJqSEV9kush+VO5BcSoVvodjbK3yy0y X-Received: by 2002:a17:902:2988:: with SMTP id h8mr6601952plb.238.1566215606627; Mon, 19 Aug 2019 04:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566215606; cv=none; d=google.com; s=arc-20160816; b=szoiUO1Pj/jxsh0Bsa9JkQGN+4zuKHDb7nWHIH8AxpxXwD1QcOgSSF0z8pDiEMQR9g X8FKji8XMQjrZFLWUcJbdMIhKkPsFuzfym0j4rPzC1P8muWmswM7IU84eni5Jzrhpf3Y rZ040p4sW/x9YN8LhRHFI/StBCW2JJl8dWpN96ivDU4KdxIgemEd394F3FWvBD2ewk9q kG41PAEHehqSJnJw08z70WpM5yPX7N7ArV2b/kGl9Q9e/nXTJkKLaKGVgYZC+/l/RcaH iaYbYYsPnkju1LMig36KcaUg13aB0R02J1wPRpz7TCvwgxvX4Q8vz9M1Y0IWzgFSla5x dNlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BAkock45XFx79DfMDxTq8ZsGVEK4vW+FCHPu35rPHWc=; b=KKsUnYvXYHaakr0IcfMBBzakGgQ0iJ8PVEQrU+J/bgs8X3fP36+g4Wym91+2YKyx8F NUUzu3mm5LBxA9My222kMCAacK6A3iSiNxyPndFC2++dFZ1Uh565RiQn8T3aNA/SYCZt xW8qFq3u4t61x5t9V3U3Dm63M7fN2LDxVZUipL+KlxZcOZrm6j328fVodw5c78xCnk+U aWPM0M62YlxRMnFk0dkNATHz9xCybbrZYgiy5V/nttxWZrTBCqGHaskk2OriOA++QTe7 sn1wmvMy6EEL9502fweAJQ/rRmp1nB6d3BiNh6RAEUmSoDGFgLfM7FV4BueHNbSy+4J5 ZerQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10si8553327pjp.27.2019.08.19.04.53.11; Mon, 19 Aug 2019 04:53:26 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727300AbfHSLwX (ORCPT + 99 others); Mon, 19 Aug 2019 07:52:23 -0400 Received: from mga01.intel.com ([192.55.52.88]:53745 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbfHSLwX (ORCPT ); Mon, 19 Aug 2019 07:52:23 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Aug 2019 04:52:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,403,1559545200"; d="scan'208";a="177859322" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by fmsmga008.fm.intel.com with ESMTP; 19 Aug 2019 04:52:20 -0700 Received: from andy by smile with local (Exim 4.92.1) (envelope-from ) id 1hzgCw-00055k-CD; Mon, 19 Aug 2019 14:52:18 +0300 Date: Mon, 19 Aug 2019 14:52:18 +0300 From: Andy Shevchenko To: Ian W MORRISON Cc: benjamin.tissoires@redhat.com, hdegoede@redhat.com, mika.westerberg@linux.intel.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] Skip deferred request irqs for devices known to fail Message-ID: <20190819115218.GY30120@smile.fi.intel.com> References: <20190819112637.29943-1-ianwmorrison@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190819112637.29943-1-ianwmorrison@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 09:26:37PM +1000, Ian W MORRISON wrote: > Patch ca876c7483b6 "gpiolib-acpi: make sure we trigger edge events at > least once on boot" causes the MINIX family of mini PCs to fail to boot > resulting in a "black screen". > > This patch excludes MINIX devices from executing this trigger in order > to successfully boot. Thanks for an update. > Cc: stable@vger.kernel.org > Signed-off-by: Ian W MORRISON > Reviewed-by: Hans de Goede > Reviewed-by: Andy Shevchenko Hmm... Did I really give the tag? Too many stuff is going on, anyway, please consider more comments below. First of all, the subject should start from "gpiolib: acpi: " prefix. Then, Fixes tag seems to be missed. > +/* > + * Run deferred acpi_gpiochip_request_irqs() > + * but exclude devices known to fail Missed period. > +*/ Missed leading space (the column of stars). > static int acpi_gpio_handle_deferred_request_irqs(void) > { > struct acpi_gpio_chip *acpi_gpio, *tmp; > + const struct dmi_system_id *dmi_id; > > - mutex_lock(&acpi_gpio_deferred_req_irqs_lock); > - list_for_each_entry_safe(acpi_gpio, tmp, > + dmi_id = dmi_first_match(skip_deferred_request_irqs_table); > + if (dmi_id) > + return 0; The idea of positive check is exactly for... > + else { ...getting rid of this redundant 'else' followed by unneeded level of indentation. > + mutex_lock(&acpi_gpio_deferred_req_irqs_lock); > + list_for_each_entry_safe(acpi_gpio, tmp, > &acpi_gpio_deferred_req_irqs_list, > deferred_req_irqs_list_entry) > - acpi_gpiochip_request_irqs(acpi_gpio); > + acpi_gpiochip_request_irqs(acpi_gpio); > > - acpi_gpio_deferred_req_irqs_done = true; > - mutex_unlock(&acpi_gpio_deferred_req_irqs_lock); > + acpi_gpio_deferred_req_irqs_done = true; > + mutex_unlock(&acpi_gpio_deferred_req_irqs_lock); > + } > > return 0; > } -- With Best Regards, Andy Shevchenko