From patchwork Wed Apr 26 09:48:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tnhuynh@apm.com X-Patchwork-Id: 9700863 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D2E8603F6 for ; Wed, 26 Apr 2017 09:49:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A75B2811E for ; Wed, 26 Apr 2017 09:49:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EF5728520; Wed, 26 Apr 2017 09:49:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4540E284DB for ; Wed, 26 Apr 2017 09:49:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1952436AbdDZJt1 (ORCPT ); Wed, 26 Apr 2017 05:49:27 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:36521 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2997907AbdDZJtK (ORCPT ); Wed, 26 Apr 2017 05:49:10 -0400 Received: by mail-pg0-f46.google.com with SMTP id t7so2794515pgt.3 for ; Wed, 26 Apr 2017 02:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id; bh=SfaobXbrD78kNKXLCCAUWS+yq/yrXD9xx5yHRGqmovM=; b=ouekWas+iNLED0iRecy7/A+uOSbp1fIzs+hstYUNaJjhSpybai7HPY5V907JvA6PQn BRnJOZOuQnRjrs7cJ7nVWbserADDig5/WVmMASStEsn+eOkv6F4ZQSK35ZNrdpgWqo3L QcSabinjkMsG9Ba/AVEcC5Id4kbj/KOSf9VKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SfaobXbrD78kNKXLCCAUWS+yq/yrXD9xx5yHRGqmovM=; b=RHwJu31K203TMsKPRsgFx/fikf3NiZxH854xOQZ3SENmUGT4XJSwCqMvyZ0cP6VC8l uXegPNhnRjIxDq6JpCCzA1aOyjgmxXHPfgx9qghP6Ix52UtAVRwtGmNFw9yE+0t1IVV6 qn6JODD0DxZhJHtxq7WL2OraKy7Yxq3yq2pp6S0iE3e1qtgEHeybJxxw41O6KTZIJ4xN xkrX09KpU/kB5RM/++mPsyzEd1zdCtZNRbo1hwwGncTOxUkohqS/bCGxoMEhEvj0uthf WxEpxWT6hTHJyqYUm/P4RUTRs+AI1ZKiWdJASvAS9xWMs3Zgkz2qIvExpidXenyE62YU Go4Q== X-Gm-Message-State: AN3rC/4K5IamiiphBT0yOAZJbUEEw+Q7MZPZMnA2x8EoYxkIKSusAucV rvvuk1XOpX2rCFvv X-Received: by 10.98.17.92 with SMTP id z89mr32449545pfi.185.1493200148222; Wed, 26 Apr 2017 02:49:08 -0700 (PDT) Received: from localhost.localdomain ([118.69.219.197]) by smtp.gmail.com with ESMTPSA id m29sm41309048pfj.32.2017.04.26.02.49.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2017 02:49:06 -0700 (PDT) From: tnhuynh@apm.com To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Loc Ho , Phong Vo , Thang Nguyen , patches@apm.com, Tin Huynh Subject: [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C Date: Wed, 26 Apr 2017 16:48:51 +0700 Message-Id: <1493200131-30171-1-git-send-email-tnhuynh@apm.com> X-Mailer: git-send-email 1.7.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tin Huynh With ACPI, i2c-core requires ACPI companion to be set in order for it to create slave device. This patch sets the ACPI companion accordingly. --- drivers/i2c/busses/i2c-xgene-slimpro.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index dbe7e44..6ba6c83 100644 --- a/drivers/i2c/busses/i2c-xgene-slimpro.c +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c @@ -416,6 +416,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev) adapter->class = I2C_CLASS_HWMON; adapter->dev.parent = &pdev->dev; adapter->dev.of_node = pdev->dev.of_node; + ACPI_COMPANION_SET(&adapter->dev, ACPI_COMPANION(&pdev->dev)); i2c_set_adapdata(adapter, ctx); rc = i2c_add_adapter(adapter); if (rc) {