Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6361212pxb; Thu, 27 Jan 2022 12:06:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy2/6mnNuZ+JdHirnhh/gRuhzSVUGf7zP+weu/XlgxvKCarrm6b/lPfTHFZb4zZhkukQQs X-Received: by 2002:a05:6402:d64:: with SMTP id ec36mr4980491edb.259.1643313997255; Thu, 27 Jan 2022 12:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643313997; cv=none; d=google.com; s=arc-20160816; b=CozUFtfVmzctQOqYWmO7xgfCByyu56tv9k/smLnvwMNhttp/Zw5JBlzQdtVnX5cQzl AVLpgOLVVeGXw1hKrhWjNw3GJFxJQK4woBMAiNeAf7diZFTsSKUsBfVsDdbgRz5Zqj4M 8nfSccoCDIiMNsj8w3wSOH2TVQooPHZA1ZYJhNfUmR8jhECS1pfWuQrP5T6Be8k2lmcC GOJp5jOEf/9f23wMaMZqDH77cQieLY7j5XXrjMNoaCsUdE0f4WREYFH+hiQ9DSiK7SzV E9dpmISRVHgJMZuxKkWXpG8arM1gj46Y9VqUrxA3v2QCE9Y2fTmxtRKSsC6B5S2KylMJ AA2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=auNbphr0O+ZKEvruwSuBE0OHO47V2eSZrfO/lffC05E=; b=xROeaYmztu2OUYxHpPVtEwxFtkKBdfVPYrsx8Noi2QXPzy6ge2f8sI+6Aa6ZPShdmm gRumGzRkN+AfclLJ1znfvJ9uI7FFMM9QB+YWrtxaAZvaJYoojs0Hi1zJOp5QDwFOpcjG yoaYOPzZwfg7uE4sooLyO7Wzc1h0UNrS5sjhTJ8911SOBTffGEgBFol9AhGTETXeEYj+ P+S1AZ8/rYE62yCDN52kL7GvZp6MwSIU4DKFdv/YmVSRwEdU370NVPnsYRhha+Joc2kQ 8Rxn01F6gMvlpX8MALO5hKPzBV/Yj+sDwhm1IRL9APbeZ7wbdMzKUBiLnGpuT2zC273a Z8tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jHD6QNPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si731540eda.480.2022.01.27.12.06.09; Thu, 27 Jan 2022 12:06:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jHD6QNPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240913AbiA0LsQ (ORCPT + 99 others); Thu, 27 Jan 2022 06:48:16 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:46491 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240861AbiA0LsK (ORCPT ); Thu, 27 Jan 2022 06:48:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643284089; 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=auNbphr0O+ZKEvruwSuBE0OHO47V2eSZrfO/lffC05E=; b=jHD6QNPzgHtjTWhZ9HN+fxFuSQPVWtbqacVTu+9rETt6BqvxmjwrwIqfNZ+qjrlAOesjbK xH/E6iC2DJqWbQNddvpw1I60qY7Euc1BE6dz1FMfDedaTKZwn+7NX2AuCidwBXbC1AQR4Q b9TEgI5LzMMyiForwjwVVgHlFavt2sU= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-524-Svm4xmmrNVqPeIE9tT7EJg-1; Thu, 27 Jan 2022 06:48:08 -0500 X-MC-Unique: Svm4xmmrNVqPeIE9tT7EJg-1 Received: by mail-ej1-f69.google.com with SMTP id d18-20020a1709063ed200b006a5eeb2ee4dso1221831ejj.3 for ; Thu, 27 Jan 2022 03:48:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=auNbphr0O+ZKEvruwSuBE0OHO47V2eSZrfO/lffC05E=; b=Y/o8XfHDSu5s/eoh4j1voi8eGXM7eVB0OWnRfvHu5ymv6IDH0fdB4CQeJLfveXiRkC UDDdyp8y8zia9ePGrYMY2HMGBrTMLkoIqDvate+n96DoSj9SwKz7oa/1P4rozxaEAEEI bnODCrJUrJnRJWI9+syQQQewTfFZJLC6BtlAu1ux50KqqvmrI4AYoVzMbZEl1fCzLV4M Gi8drQfOf3AevvB12TeOJQw86e1AoyWuaMBRQCz5d0wc6238lVvToQRp/Bu/azPaoJ2H d1OKMyIvtycTXliCDIqh5Boz1V67bNxldBx6L29zU5n5sQysAkx859cg5xHEYEhEon4O MV0Q== X-Gm-Message-State: AOAM533nDTnN5YucisogPgSnwYRnZUojoAIRjtj3o62pvaR1YUs6jwY1 CaRSnXgBL8NJrSImlJHqOxMOG9YMbKhJu1WPdMexFqCSdsTWSiE0mh2av/jmBJKJAn1wHfQpDIM v85C27iARLKMBAZX1/SL1pSC+ X-Received: by 2002:a17:907:3e9e:: with SMTP id hs30mr2562596ejc.763.1643284087302; Thu, 27 Jan 2022 03:48:07 -0800 (PST) X-Received: by 2002:a17:907:3e9e:: with SMTP id hs30mr2562575ejc.763.1643284087023; Thu, 27 Jan 2022 03:48:07 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1? (2001-1c00-0c1e-bf00-1db8-22d3-1bc9-8ca1.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1]) by smtp.gmail.com with ESMTPSA id a14sm11157077edx.96.2022.01.27.03.48.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 03:48:06 -0800 (PST) Message-ID: Date: Thu, 27 Jan 2022 12:48:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH 3/7] i2c: cht-wc: Use generic_handle_irq_safe(). Content-Language: en-US To: Sebastian Andrzej Siewior , greybus-dev@lists.linaro.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-usb@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , Alex Elder , Arnd Bergmann , Greg Kroah-Hartman , Jakub Kicinski , Johan Hovold , Lee Jones , Rui Miguel Silva , Thomas Gleixner , UNGLinuxDriver@microchip.com, Wolfram Sang , Woojung Huh References: <20220127113303.3012207-1-bigeasy@linutronix.de> <20220127113303.3012207-4-bigeasy@linutronix.de> From: Hans de Goede In-Reply-To: <20220127113303.3012207-4-bigeasy@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 1/27/22 12:32, Sebastian Andrzej Siewior wrote: > Instead of manually disabling interrupts before invoking use > generic_handle_irq() which can be invoked with enabled and disabled > interrupts. > > Signed-off-by: Sebastian Andrzej Siewior Thanks, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/i2c/busses/i2c-cht-wc.c | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-cht-wc.c b/drivers/i2c/busses/i2c-cht-wc.c > index 1cf68f85b2e11..8ccf0c928bb44 100644 > --- a/drivers/i2c/busses/i2c-cht-wc.c > +++ b/drivers/i2c/busses/i2c-cht-wc.c > @@ -99,15 +99,8 @@ static irqreturn_t cht_wc_i2c_adap_thread_handler(int id, void *data) > * interrupt handler as well, so running the client irq handler from > * this thread will cause things to lock up. > */ > - if (reg & CHT_WC_EXTCHGRIRQ_CLIENT_IRQ) { > - /* > - * generic_handle_irq expects local IRQs to be disabled > - * as normally it is called from interrupt context. > - */ > - local_irq_disable(); > - generic_handle_irq(adap->client_irq); > - local_irq_enable(); > - } > + if (reg & CHT_WC_EXTCHGRIRQ_CLIENT_IRQ) > + generic_handle_irq_safe(adap->client_irq); > > return IRQ_HANDLED; > } >