Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp789989rwb; Wed, 9 Nov 2022 08:38:05 -0800 (PST) X-Google-Smtp-Source: AMsMyM42IdiNnIYL1Ve+7npD9VEnKgJ/A9Bk/WjoNUFtnalvgAlPe81KmriWkb/y7W/9a0tuNu3M X-Received: by 2002:a17:906:cc48:b0:7a8:4a3b:11f7 with SMTP id mm8-20020a170906cc4800b007a84a3b11f7mr58854420ejb.388.1668011885300; Wed, 09 Nov 2022 08:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668011885; cv=none; d=google.com; s=arc-20160816; b=keDPygx4KEkCbw3gqaPSROorwXGhkLZJ5H9iUz8x9Y7+3Q2oFqoGkYfpDBvAKZWdMT vD8XlXZq/f81dkDzwRhpVuhDxk6Ovwq6XbQTZ/w2IPylBY86nDXaILsBuA5gc0qB5t6f 4pqS+WvIcrUZ3jmYXjdDu/0sz+pQQMS4kxGtT3VQU+05hXczGE9B7iFgXtYFEchMWbch DC74qz455KXsuZuV9HHmodHyX0keeFcVGbPjybiwQfHnMPhTilEl6ZQ28LHhWiiYiFya SgFfN61hU94u03sxRj/zaHQT4AR9iUjHofo8aO6Y389VeTdnnS9nUJJuUAqLLVGM+fr3 hsNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=N96rWukkzzft84T2ilUpjkniGJmFniZsxB7jb54ifXs=; b=dPMqYT48MQ9jKGIWU/HmhwDq5OdEkL1586RF2KimVVJQjRyAm3X1RREdt/z6A6TuET FVizXlkClu8HKKGEZYn1qlM8SZJH1jIbX1NaD1IKFiICAa4iRZywTjnEGTB1buIkY3Tx SGeB8H/myaYofDQ1uoorAdNiY/PEOAGSKhsIwSVt/NrjRKYhFgDpmy+e2PknwJFDFOeW 0ef1d+mEw2Wb5ycqFYoUXFAOVIygylQQXwIfpnlMbngMv01DaFo+Oidge+s6+8mOK2Bt N2D0dAcPhpgBRs+NNGguenTOfjB4sMVWZL0ekEXUyEukuLHIFZQzycZY3WyD4Npzlp1G 9uzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NUQruEBY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k22-20020aa7d8d6000000b0045878eab247si14681217eds.193.2022.11.09.08.37.42; Wed, 09 Nov 2022 08:38:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NUQruEBY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231442AbiKIOaX (ORCPT + 92 others); Wed, 9 Nov 2022 09:30:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbiKIOaR (ORCPT ); Wed, 9 Nov 2022 09:30:17 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47ED11F9F4 for ; Wed, 9 Nov 2022 06:30:16 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id 13so47179796ejn.3 for ; Wed, 09 Nov 2022 06:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=N96rWukkzzft84T2ilUpjkniGJmFniZsxB7jb54ifXs=; b=NUQruEBYuKGoATQoEgq8HnQG7zmavO8XD1UrtBSLzg8JU522IgpPOEXmqcF4u0Ez5v FBMEDkmVUu9wjt/3Ew9uAOCPrOlaNYbTsAfsDYXE+SPqBP+oh8kv9+hq7VU9ZZjR7ljQ 9rZGRPv6nzYTlfPZ0UlpecP7Lq8FdNJsBerVM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=N96rWukkzzft84T2ilUpjkniGJmFniZsxB7jb54ifXs=; b=XBhy7HfkirSLIo4CdcsvCJNV/xcuQDyKpQRYe3iI09r0HVcuVkQjR3nRypMTfCP8gk S8DoVFppWlk1PeEReDzybhmVNUQfyS3Ba/iGmuNDc4aN5Skgmzsd4RgJUrkC/MrPupdH 4NHcMlKu8N31OTdO8VKCr//W0NU679WosRwtvqOLKYmxydxdxjohFK9io01SoYqJucWy ao7lGDU9yDaXj5aFIxZb92IH8+/OR1WT3dtayzdPO6DMv4Hz85sMHdPdD21kKHmJw8YY n0GzVDYW/ZkCevdI3ciPJWr3UCjVA1l/HlM9Sbyfn2hgXAdYQ7kDWsUguY3fraQY1L63 ioxw== X-Gm-Message-State: ACrzQf3bTMgXkZfRekFXN1kFY5nObzOcywxm/G+FF8sFQJCn42raVPeK aF5QrSqmMujETlXUMCmqImJBjA== X-Received: by 2002:a17:906:6a02:b0:7ae:2793:aa19 with SMTP id qw2-20020a1709066a0200b007ae2793aa19mr29371804ejc.265.1668004214873; Wed, 09 Nov 2022 06:30:14 -0800 (PST) Received: from alco.roam.corp.google.com ([2620:0:1059:10:7487:46db:8e12:c768]) by smtp.gmail.com with ESMTPSA id d25-20020aa7c1d9000000b0044dbecdcd29sm7020389edp.12.2022.11.09.06.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 06:30:14 -0800 (PST) Subject: [PATCH v1 0/1] i2c: Restore power status of device if probe fails MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIAFu5a2MC/w3LQQqAIBBA0avErBtwhAi7zWhjDoiBki2ku+fywf8DmlSVBscyoErXpneZoHWBkL hcgnpOgzXWEhmHagO+rF2Qxe1RmCL5DWbvuQn6yiWkeZQn5+/7Adt+K05gAAAA From: Ricardo Ribalda Date: Wed, 09 Nov 2022 15:29:47 +0100 Message-Id: <20221109-i2c-waive-v1-0-ed70a99b990d@chromium.org> To: Tomasz Figa , Sakari Ailus , "Rafael J. Wysocki" , Wolfram Sang Cc: linux-kernel@vger.kernel.org, Ricardo Ribalda , Hidenori Kobayashi , linux-i2c@vger.kernel.org X-Mailer: b4 0.11.0-dev-d93f8 X-Developer-Signature: v=1; a=openpgp-sha256; l=961; i=ribalda@chromium.org; h=from:subject:message-id; bh=xbF/MIUAKcQD4clS31BaNJtsnvcssnr11NYtRC214vo=; b=owEBbQKS/ZANAwAKAdE30T7POsSIAcsmYgBja7liJtRWY4suMhjLbNI+ldyebAoNrPAn2LUdX8j9 Uvtt7lOJAjMEAAEKAB0WIQREDzjr+/4oCDLSsx7RN9E+zzrEiAUCY2u5YgAKCRDRN9E+zzrEiJM4EA CcSqPambhLY9adGX94xkF46+nnAl704+gj6irsEN3zkkNVyfOrjYjxk5pZF0888rRnySyB5SSwxiv2 mH6WduT2kfnm1Kb1/CU8XJ+kM5yZJPEEsZJ85ZTQZuuqONVfPaIar7LcfO+MxjHjEOpu00yJ80fClX diCewkAjl18jlmBuIliVjGDHoiQ73ZIVP0laKz7/OcYT9kbAwBpStcHrklzCOyxoxyoRiWi88xuIfp yvKpPUEkyXbk7vvJAXb3uOjFEBoTon9enLRX17HuI6nXrCJc2GjZ3SnJNlQFWsaHPYTUTm2HoydSHW 7AZBLEQvSWY5P2zQJCXSUD4x/fjfuAx3hx8viF0nDm1s83+Z/OeJ+hpop6rSIVmA+vWU3aXM0Z3Tnh 2RD5fH36rK6VFe4pAu2SwUvueSfEIaO8V3nrHpejcHAKnDnU3tTVJRySfq1FeTAGplTJCi575zH2oG 5a9xtXh26OP4zzZG/EWPjEPxBdHqDaJ5kp9jUvPF4Figpt5Z1bfN4bx0PdOA/AnGoCkgwMINgvR8da hYo6+tao7Pcuj9fv2GXO0yQRL1GDuGJ2fketb+bM9L3wuYaKlO1/JqK3Bu8vWbKCNIWYZaII7ZXk6R P+mZbpBId7dnB93XawBMIcjeYjfqD3hq8GuZsJtxDC6flN7ECRdhkKnNeUsQ== X-Developer-Key: i=ribalda@chromium.org; a=openpgp; fpr=9EC3BB66E2FC129A6F90B39556A0D81F9F782DA9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have discovered that some power lines were always on even if the devices on that power line was not used. This happens because we failed to probe a device on the i2c bus, and the ACPI Power Resource were never turned off. This patch tries to fix this issue. To: Wolfram Sang To: Sakari Ailus To: Tomasz Figa To: "Rafael J. Wysocki" Cc: Hidenori Kobayashi Cc: linux-i2c@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ricardo Ribalda --- Ricardo Ribalda (1): i2c: Restore initial power state on probe failure drivers/i2c/i2c-core-base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- base-commit: f141df371335645ce29a87d9683a3f79fba7fd67 change-id: 20221109-i2c-waive-ae97fea1f1b5 Best regards, -- Ricardo Ribalda