Received: by 10.192.165.156 with SMTP id m28csp1570535imm; Tue, 17 Apr 2018 01:22:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/htUfMZg/1KosfrvrgMwTYEvEh01L8nQbQt5KfuVGHekauxx2Pz5Tu+sOUdkT0LdTWVWDu X-Received: by 2002:a17:902:7d86:: with SMTP id a6-v6mr1207466plm.264.1523953332019; Tue, 17 Apr 2018 01:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523953331; cv=none; d=google.com; s=arc-20160816; b=oF3iezAUctWtNUSEce93mefu5D83mq6sCSpkbi79eqhQP7XNAPyWN1vq4s+xlreiQK Lr/Muug6HZRgkF5Ihmqcsli8aWlBRzOPGfedjAVYXStezES7fCJlqRQAQPj+HHyYE/h1 LUibMei7QT0wuqCoqFXUWvsyH7lxeeiqF54g9RZM4slqdfF6H+AxISvH+g1SCajzrihG eaOOdHWj82/iBA10KXPaWrcpSmRBqNzOSej5zcWj9HcwapLue8dfgHIZBqQvdfE3+a50 2fBSsbyMm/gWNrodfv10zOzT2bh5gnUTtdJK43GNDBRW7uul5mEqf0w86rcPd0GxDQpm IYFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=ov7ZZtM12jeobDEcvv/CEeCy9eYqCSig5cguhjwXHdE=; b=r0SHgueXKksGWbWNlx9yrmtRijkk8cqYlSwrh7l1nIUb3hRZLCeZYIgTjTHvZphD0W 44dutCacSzin7eK3k4KYEVbVKe0aja2pgQMxg5bdtlOgsUqxKNRmVF3Erax00u+xHFvc m/WxE26Rff7cb9ncPO/Wa+q7wEQ5tY4vqmq1nHMvWXuooTf95f+CxgBOKkGSxCpCfztP 63+1xlxopMKSGclG4foQrLabvibzLDxmr0rArw9hArfBinWfptrztE+qJ9vzO8bsnj2o EoEN55oUuw8Lvg10W1GDgSO1wRvc411/ULTRCwkaouescsv58LzM1MEd5Xe43t3J9DcS BjXA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o81si12719120pfa.64.2018.04.17.01.21.57; Tue, 17 Apr 2018 01:22:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbeDQIUj convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Apr 2018 04:20:39 -0400 Received: from smtpgwcipde.automotive.elektrobit.com ([213.95.163.141]:57437 "EHLO smtpgwcipde.elektrobit.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbeDQISY (ORCPT ); Tue, 17 Apr 2018 04:18:24 -0400 X-Greylist: delayed 902 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Apr 2018 04:18:23 EDT Received: from denue6es002.localdomain (denue6es002.automotive.elektrobit.com [213.95.163.135]) by smtpgwcipde.elektrobit.com with ESMTP id w3H838Qo008795-w3H838Qq008795 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Apr 2018 10:03:08 +0200 Received: from denue6es002.securemail.local (localhost [127.0.0.1]) by denue6es002.localdomain (Postfix) with SMTP id 25A6D19283; Tue, 17 Apr 2018 10:03:08 +0200 (CEST) Received: from denue6es007.ebgroup.elektrobit.com (denue6es007.ebgroup.elektrobit.com [10.5.139.21]) by denue6es002.localdomain (Postfix) with ESMTPS; Tue, 17 Apr 2018 10:03:07 +0200 (CEST) Received: from denue6es008.ebgroup.elektrobit.com (10.5.139.25) by denue6es007.ebgroup.elektrobit.com (10.5.139.21) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 17 Apr 2018 10:03:07 +0200 Received: from denue6es008.ebgroup.elektrobit.com ([fe80::591c:1de7:a129:bf06]) by denue6es008.ebgroup.elektrobit.com ([fe80::591c:1de7:a129:bf06%12]) with mapi id 15.00.1320.000; Tue, 17 Apr 2018 10:03:07 +0200 From: To: CC: , , Subject: RE: [SIL2review] [PATCH] i2c: img-scb: fix PM device usage count Thread-Topic: [SIL2review] [PATCH] i2c: img-scb: fix PM device usage count Thread-Index: AQHTrjt0dQSN4VmZz0CI1P0T6XZe26O1PdUAgE6BXICAASWIwA== Date: Tue, 17 Apr 2018 08:03:07 +0000 Message-ID: <84353cd0444f41c4aebbc1b6eb2eeae3@denue6es008.ebgroup.elektrobit.com> References: <20180224224303.3mpwhal2axcr6aos@agrajag.zerfleddert.de> <20180225132014.GA8844@osadl.at> <20180225172730.2b443978@denkmatte> <20180416161845.hxizpjituo6mpvbm@ninjato> In-Reply-To: <20180416161845.hxizpjituo6mpvbm@ninjato> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.5.137.27] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Is it easily recognizable if the drivers check the error code because > there is a reason or if they do it "out of habit"? Probably by looking closely at the implementation of the PM callouts for the driver, but I couldn't find a pattern that would be easy to recognize. Maybe I didn't look close enough ;-) I concur that removing the check would be a better approach if it's clear that it's just done "out of habit". Actually, the real problem is to find the drivers that need to have the check in, add/fix it for them, and remove it for all others. Unfortunately, all I'm currently able to do is finding the parts that are inconsistent. Tobias