Received: by 10.223.164.221 with SMTP id h29csp2270891wrb; Thu, 2 Nov 2017 08:22:08 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SdxFkAxX9HJi+zOcW6Da3UFcxW0HPmETlRyPXnA954vwyCV8eXwOOtILc2yo9Rip00GDZl X-Received: by 10.98.236.16 with SMTP id k16mr4155269pfh.152.1509636128800; Thu, 02 Nov 2017 08:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509636128; cv=none; d=google.com; s=arc-20160816; b=HgHJSow9IKrg68S+vWzNvvgr/RbrsEVSOR0lTdqlJDm5vbUjgWcG7MYCtV2PVcymJP YdTnkMkxs8YkuoiLGlMBBYCgqNIZ7F2g2GqAfWW4ewq2BYm29ghmpltouvFy0alb9s0B 9LO976gd9OHIKhqGNf5oO7eTPSfP/2ZdaA4c12L0pmKNK87fc4/181zrMszinCF+s/IO HET1qBhy70sw2OtvLhjpGk+ikcAOUGhQdQJIzy+ynqrU1YuzB42G5qkmrHFxMP5Di2hJ wLXdC5vA6LboyBgcfPZTH7Obultmoocih6dbTo0KInhrXeW1AlfGpr5V58lMI5YyBbsQ xORQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Tva58kZjUS0l7RyUqE7oior0zFXCcRmswmk3sUdShiQ=; b=iXAmzlktWz6Q7dtTqETYIiwq3Rqs5q8zwaaweKCSxhWNASTwqzpoBcN+T1rOdRVCX2 AMmd4fulk1kBlTVPlFbAY9oNU9+eq3ue73lQgkzzMDZytIwxW1B1Ib1TZowpiq5cWdoC d9A5b1Bx7lt95ZXNqdO8oHCJkDNRV7Ws30dEmxYZ2rQXSd0CqG1oU12cmUoKMU31YJRb 5/rAajoh/bJ84lyB8QU/eU1KJmuOGq3C8CX6ZgmHC/g+NvRGAVc0gG6pCPo4d0fSRiKa DjbD6zocirt9y4ZdyzhBbObRi4t82N8oYuaN2pJvqB39QtLPsa7IJnFeq6I3NFtBoNM8 TG5w== 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 d6si4163151pfe.12.2017.11.02.08.21.54; Thu, 02 Nov 2017 08:22:08 -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 S933705AbdKBPVS (ORCPT + 97 others); Thu, 2 Nov 2017 11:21:18 -0400 Received: from anchovy3.45ru.net.au ([203.30.46.155]:52259 "EHLO anchovy.45ru.net.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933571AbdKBPVR (ORCPT ); Thu, 2 Nov 2017 11:21:17 -0400 X-Greylist: delayed 965 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Nov 2017 11:21:16 EDT Received: (qmail 23981 invoked by uid 5089); 2 Nov 2017 15:05:10 -0000 Received: by simscan 1.2.0 ppid: 23860, pid: 23861, t: 0.0376s scanners: regex: 1.2.0 attach: 1.2.0 clamav: 0.88.3/m:40/d:1950 Received: from unknown (HELO ?192.168.0.5?) (preid@electromag.com.au@106.68.10.241) by anchovy2.45ru.net.au with ESMTPA; 2 Nov 2017 15:05:10 -0000 Subject: Re: [PATCH v4] iio : Add cm3218 smbus ara and acpi support To: Srinivas Pandruvada , Jonathan Cameron , Marc CAPDEVILLE Cc: Kevin Tsai , Jonathan Cameron , Peter Meerwald-Stadler , Wolfram Sang , Hartmut Knaack , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171027161426.m27e52jvnpgembsu@azrael> <20171102143550.00005a66@huawei.com> <1509634178.782.5.camel@linux.intel.com> From: Phil Reid Message-ID: <76773afb-8428-645f-2cf7-98bd7dd3a21c@electromag.com.au> Date: Thu, 2 Nov 2017 23:05:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1509634178.782.5.camel@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/2017 22:49, Srinivas Pandruvada wrote: > On Thu, 2017-11-02 at 14:35 +0000, Jonathan Cameron wrote: >> On Fri, 27 Oct 2017 18:27:02 +0200 >> Marc CAPDEVILLE wrote: >> >>> >>> On asus T100, Capella cm3218 chip is implemented as ambiant light >>> sensor. This chip expose an smbus ARA protocol device on standard >>> address 0x0c. The chip is not functional before all alerts are >>> acknowledged. >>> On asus T100, this device is enumerated on ACPI bus and the >>> description give tow I2C connection. The first is the connection to >>> the ARA device and the second gives the real address of the device. >>> >>> So, on device probe,If the i2c address is the ARA address and the >>> device is enumerated via acpi, we lookup for the real address in >>> the ACPI resource list and change it in the client structure. >>> if an interrupt resource is given, and only for cm3218 chip, >>> we declare an smbus_alert device. >>> >>> Signed-off-by: Marc CAPDEVILLE >> Wolfram - this needs input from you on how to neatly handle >> an ACPI registered ARA. > There was another RFC from Alan cox > https://patchwork.ozlabs.org/patch/381773/ > Wolfram just merged this from me: [PATCH v11 00/10] Add sbs-manager with smbalert support https://www.spinics.net/lists/devicetree/msg191947.html Cleans up the smbus_alert driver a bit. note: alert_edge_triggered was removed. And for OF systems core creates the ara device. -- Regards Phil Reid From 1582967150509154158@xxx Thu Nov 02 15:05:15 +0000 2017 X-GM-THRID: 1582417070883902009 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread