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=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 3B039C47E49 for ; Wed, 23 Oct 2019 14:33:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 137E521906 for ; Wed, 23 Oct 2019 14:33:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NbeJeyxa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390097AbfJWOdE (ORCPT ); Wed, 23 Oct 2019 10:33:04 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:28233 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389995AbfJWOdE (ORCPT ); Wed, 23 Oct 2019 10:33:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571841182; 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=J9FDFoHcmgbf/rB6O0Qmk/JMn+xRjY/O6Q1p5vtdLWM=; b=NbeJeyxaB2k9657yXur2MMt4okTAhccViwl6Zb1kNMJ4laSrm3qGBQsQLEkC/rWUTm5JDu lDw6G0hcR1M1GvkESLhboGHa2Pog1D6jmEhqoBSbWMFK//oRXs3jZFD7041sXnRiv152S3 nkB+KX54GD82NQHsPGKgjy0/BSW8g1c= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-44-sRbPy3TkNC-izTHVg9jd4Q-1; Wed, 23 Oct 2019 10:33:01 -0400 Received: by mail-wm1-f70.google.com with SMTP id m68so3979964wme.7 for ; Wed, 23 Oct 2019 07:33:00 -0700 (PDT) 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=gPvbzDgItD/bWiYqRGisyJX9TAo/xg2jsbmqa+lT5LM=; b=ANfqzgJSPz0qrsAOICT3gbnhJ2Blr6QyEKfV5r2S67WL2tqKmn8diGnTl5Pg4qrb6W CVxJpekzu2pUJ/EhedK/80jPxIPuu+PYoWvEwRjcuBqsGqIo/POH4UjtQE/JXdrSTJCV xCZiAtTf7wbluRAU1e0Vy1lDDb6bup283hHAsuCWEU3d/hETU14keb7gZ+TVLQGsC6EF VL7MrXDywd4elZ7i0avega1cQG9WHTHQlTit8Ukrxwosd3jytFC8zW44haXUuwJ4wkA6 CV0dPxethesn0OsVcvqoJrY6BZmQ5LXHBfPH8KtpJvh/jCkOxXvk1gtb+1W5gD0vcU52 7KSA== X-Gm-Message-State: APjAAAV8e6DEMVG3H6zdJQtz8qMNoEglX5k4wiNqGFF3gqTJd+oxft9r mQK6xRXmCUqBXs76PwKK8vy2sk67/zEWUlfhCOzeyLVs0wSClk2380+/fcnsMU9teDcTN1L8BeA JKdqri+D5uoSqwPQ9 X-Received: by 2002:a7b:ce12:: with SMTP id m18mr183503wmc.35.1571841179351; Wed, 23 Oct 2019 07:32:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX8MnNcDcpNCRYNfu2+e6XVpRe7VhTgXdRCq+1JhMu0WmB6JvqAnshI5/zuFMWI5Ijby48+A== X-Received: by 2002:a7b:ce12:: with SMTP id m18mr183489wmc.35.1571841179158; Wed, 23 Oct 2019 07:32:59 -0700 (PDT) Received: from shalem.localdomain (2001-1c00-0c14-2800-ec23-a060-24d5-2453.cable.dynamic.v6.ziggo.nl. [2001:1c00:c14:2800:ec23:a060:24d5:2453]) by smtp.gmail.com with ESMTPSA id o1sm18477324wmc.38.2019.10.23.07.32.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Oct 2019 07:32:58 -0700 (PDT) Subject: Re: [PATCH] tpm: Switch to platform_get_irq_optional() To: Jarkko Sakkinen Cc: Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-integrity@vger.kernel.org, stable@vger.kernel.org References: <20191019094528.27850-1-hdegoede@redhat.com> <20191021154942.GB4525@linux.intel.com> <80409d36-53fa-d159-d864-51b8495dc306@redhat.com> <20191023113733.GB21973@linux.intel.com> From: Hans de Goede Message-ID: Date: Wed, 23 Oct 2019 16:32:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191023113733.GB21973@linux.intel.com> Content-Language: en-US X-MC-Unique: sRbPy3TkNC-izTHVg9jd4Q-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Hi, On 23-10-2019 13:37, Jarkko Sakkinen wrote: > On Mon, Oct 21, 2019 at 05:56:56PM +0200, Hans de Goede wrote: >> Hi, >> >> On 21-10-2019 17:49, Jarkko Sakkinen wrote: >>> On Sat, Oct 19, 2019 at 11:45:28AM +0200, Hans de Goede wrote: >>>> Since commit 7723f4c5ecdb ("driver core: platform: Add an error messag= e to >>>> platform_get_irq*()"), platform_get_irq() will call dev_err() on an er= ror, >>>> as the IRQ usage in the tpm_tis driver is optional, this is undesirabl= e. >>>> >>>> Specifically this leads to this new false-positive error being logged: >>>> [ 5.135413] tpm_tis MSFT0101:00: IRQ index 0 not found >>>> >>>> This commit switches to platform_get_irq_optional(), which does not lo= g >>>> an error, fixing this. >>>> >>>> Cc: # 5.4.x >>> >>> Incorrect format (should be wo '<' and '>'). >> >> According to: >> >> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html >> >> the '<' and '>' should be added when adding a # >=20 > OK, right so it was. This first patch that I'm reviewing with such > commit. >=20 >>> Also, not sure why this should be backported to stable kernel anyway. >> >> Because false-positive error messages are bad and cause users to >> file false-positive bug-reports. >=20 > Neither categorizes into a regression albeit being unfortunate > glitches. The stable series also does other small fixes, such as adding new pci/usb-ids, etc. This clearly falls within this. IMHO ideally this should go to a 5.4-rc# making the whole discussion moot, but since I was afraid it would not make 5.4, I added the Cc: stable. Regards, Hans