Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42BFDC2D0DA for ; Fri, 27 Dec 2019 22:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 174AF20CC7 for ; Fri, 27 Dec 2019 22:47:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gPIHrVSs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725306AbfL0Wro (ORCPT ); Fri, 27 Dec 2019 17:47:44 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:20082 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725820AbfL0Wro (ORCPT ); Fri, 27 Dec 2019 17:47:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577486862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rSnj7H1B3NWu+D/Hqawoc3PIHGYDDd6CVWrGix3Owek=; b=gPIHrVSs6/BZYYwsvV3eTBe6VVxkHRgvH7MtdMtu0zmtDNdIx5/6+1/nQlt+0bSEYj4er2 YcPNAhBIxItrabDyfSyyQoADgQ3Xa/h51guB5r8Jx9U9vfyLSHYi9927ixM2ZvBBbhnf2I x4hB9gGmC8OgJRY2BopL9EtVpav/raU= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-423-C-Ng_UOFPjqt62vHG7Yq4w-1; Fri, 27 Dec 2019 17:47:41 -0500 X-MC-Unique: C-Ng_UOFPjqt62vHG7Yq4w-1 Received: by mail-wr1-f69.google.com with SMTP id w6so13312738wrm.16 for ; Fri, 27 Dec 2019 14:47:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rSnj7H1B3NWu+D/Hqawoc3PIHGYDDd6CVWrGix3Owek=; b=G78LnenWRGpBsru05SjswjDguje5ZFNmZZsA1iJs/Iu5yp5KTpY1pcvILErXBupkO3 2lpVWlUbeP6Xb8oQ189S10TT6ppJkQ6Du510zMrG6siQn9bQuJZFDB2BDaZqx/R94OBr XAVuebeCurPVrHKVOGrZmPAQuGp1D7ALKqrVnPz4hF9MqCza1cVasuR9bVBl1CytcIte VY82LmmdcIyc0sVIq2DMBxnbM4XUNWCLSOa8NAoAzxGGVzLW9P4+79q/wcDkJhOStwYa j6MGJAz2J9OpuVg5GAA3BCtMOHUdnuYrDh01uAwSerHpJsFjjx6+TTzxzjlFw9W6nT9Q XdsQ== X-Gm-Message-State: APjAAAXLxz/U7Y/GYNdubx8jdZdkj2haLu0lUaDPRGuGU7eHc6sdeQch sIt0HkBDGVJbWZ3Ix+b96QKzj6yAz6OZt+P39KqXoyhts3NKQ3LWiHBjc9q+MEg6CqpczZiPNa1 5M3fKzyERtJegWCTh1GIxDw== X-Received: by 2002:adf:ee92:: with SMTP id b18mr55030292wro.281.1577486860207; Fri, 27 Dec 2019 14:47:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxl+YQ1B+lEizCw3KFw9gTGuVkFDNul/t/BJGu27B2XogZSlO17lVCfX/fcxUtptgEwHSqZhQ== X-Received: by 2002:adf:ee92:: with SMTP id b18mr55030282wro.281.1577486860015; Fri, 27 Dec 2019 14:47:40 -0800 (PST) Received: from shalem.localdomain (2001-1c00-0c0c-fe00-7e79-4dac-39d0-9c14.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:7e79:4dac:39d0:9c14]) by smtp.gmail.com with ESMTPSA id n8sm36484869wrx.42.2019.12.27.14.47.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Dec 2019 14:47:39 -0800 (PST) Subject: Re: [PATCH v2] pinctrl: baytrail: Remove WARN when setting direct-irq pin to output To: Mika Westerberg Cc: Andy Shevchenko , Linus Walleij , Bastien Nocera , Dmitry Mastykin , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org References: <20191225132812.90889-1-hdegoede@redhat.com> <20191227141220.GA2628@lahna.fi.intel.com> From: Hans de Goede Message-ID: Date: Fri, 27 Dec 2019 23:47:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20191227141220.GA2628@lahna.fi.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Hi, On 27-12-2019 15:12, Mika Westerberg wrote: > On Wed, Dec 25, 2019 at 02:28:12PM +0100, Hans de Goede wrote: >> Suspending Goodix touchscreens requires changing the interrupt pin to >> output before sending them a power-down command. Followed by wiggling >> the interrupt pin to wake the device up, after which it is put back >> in input mode. >> >> On Cherry Trail device the interrupt pin is listed as a GpioInt ACPI >> resource so we can do this without problems as long as we release the >> irq before changing the pin to output mode. >> >> On Bay Trail devices with a Goodix touchscreen direct-irq mode is used >> in combination with listing the pin as a normal GpioIo resource. This >> works fine, but this triggers the WARN in byt_gpio_set_direction-s output >> path because direct-irq support is enabled on the pin. >> >> This commit removes the WARN call, fixing a bunch of WARN splats in >> dmesg on each suspend/resume cycle. > > But this is still something we don't expect to do normally, right? Well on devices which a Goodix touchscreen, of which there are quite a few we do. And it seems that Windows allows this. > How > about changing this to dev_warn() or dev_info() so it is still visible > in dmesg and possibly helps future debugging. The problem is that we hit this path everytime we output a value on the pin. I guess we can change the WARN to dev_info_once() if you prefer that. Regards, Hans