Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6480741ybi; Wed, 5 Jun 2019 01:28:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4f7ba/5GgnraH8Q75uE+NKFDj5e9aLxBmRnMfl4PMVZsxIZ6y3M3cfpQJicEq6SXoU0w3 X-Received: by 2002:a17:902:b407:: with SMTP id x7mr41712901plr.28.1559723323649; Wed, 05 Jun 2019 01:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559723323; cv=none; d=google.com; s=arc-20160816; b=syJ4cn9pvPi79k9vfjOY+HZKZmUKQ+gHj8A7ibdY2t9YGOSkcl9MLE1gBTsV14szVE vW92Ny4dNFv5PIqH8Nn20hyZ5rLdinCiRDurF2N8Dq2HKnKGrlGqZ64XoWkkD8JZjMve JwndX8ZW6TfCURzAVJH7YOuWt5S9absR4uXn1p6+IAZocOaADTOGKK+3pSWZR4wQR3Cc gMk5ljpl3ZvCBhZ5YliaE5Oe+kbQnydavbmThxKgwV4FUItDcSWR0WRxG+pCMeN1UpXF XAu2etKV2kePFyfGQb6FYjx6+qtrhF0W+da1t00DasSS/tbwB/JcxVBOCTEnTLfsXdKO F3AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=675EAtb+xtRrFEleLWSeBw93ip5tYZvHRIsk+ESBN5s=; b=puq80MkQKbi4UE+1AvGiL+s13rac8s5W0Na66Rm0AP683UWoPZw73yp+urjLjwaNJJ Ps6kCLvHeh3EcEOrC4VKk2M7bmvw2hfZSf6B8DQxKJapSI5KtkAkFyv1qrakSUz1FqT7 qZh4V8gCWgDa0ijkblkJEgV7hleS3hIqgeLBhbv7qr3cdg7qrqCjkoyZI2eB4QAPeZbQ zkBGE0DOf145qL9dz2DSNV8aJb+ph2QAOT+b33YWElh1U5ZsFNqtTGmUkft3O1zz/YvQ IVdJ6xThPIs2fLIHtnd2xMNfYOZoz+RIZNDDuBtglyhDns7daJqpx8xWf7JKsErH+9zf N94w== 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=opensource.cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si26981185plr.192.2019.06.05.01.28.27; Wed, 05 Jun 2019 01:28:43 -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=opensource.cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbfFEI1K (ORCPT + 99 others); Wed, 5 Jun 2019 04:27:10 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:36254 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726554AbfFEI1K (ORCPT ); Wed, 5 Jun 2019 04:27:10 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x558K72n001312; Wed, 5 Jun 2019 03:26:42 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail4.cirrus.com ([87.246.98.35]) by mx0a-001ae601.pphosted.com with ESMTP id 2sups14mts-1; Wed, 05 Jun 2019 03:26:42 -0500 Received: from EDIEX02.ad.cirrus.com (ediex02.ad.cirrus.com [198.61.84.81]) by mail4.cirrus.com (Postfix) with ESMTP id 70223611C8AC; Wed, 5 Jun 2019 03:27:13 -0500 (CDT) Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Wed, 5 Jun 2019 09:26:41 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1591.10 via Frontend Transport; Wed, 5 Jun 2019 09:26:41 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 3A87C2A1; Wed, 5 Jun 2019 09:26:41 +0100 (BST) Date: Wed, 5 Jun 2019 09:26:41 +0100 From: Charles Keepax To: Andy Shevchenko CC: , , , , , , , , Subject: Re: [PATCH v3 2/6] i2c: acpi: Use available IRQ helper functions Message-ID: <20190605082641.GM28362@ediswmail.ad.cirrus.com> References: <20190528142900.24147-1-ckeepax@opensource.cirrus.com> <20190528142900.24147-2-ckeepax@opensource.cirrus.com> <20190604170052.GQ9224@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190604170052.GQ9224@smile.fi.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=886 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906050054 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 04, 2019 at 08:00:52PM +0300, Andy Shevchenko wrote: > On Tue, May 28, 2019 at 03:28:56PM +0100, Charles Keepax wrote: > > Use the available IRQ helper functions, most of the functions have > > additional helpful side affects like configuring the trigger type of the > > IRQ. > > > > You do here two things, i.e. > - splitting out helper function > - converting it to use helpers > > I would split the patch to do exact these steps separately, e.g.: > - splitting out to a local helper > - replacing open coded stuff with existing helpers > This can't really be done like this, the helper is called by acpi_dev_get_resources and I need the acpi_resource from that to call acpi_dev_resource_interrupt. I guess I could do a separate patch to start using i2c_dev_irq_from_resource if that would be preferrable? But I think the rest needs to stay together. Thanks, Charles