From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968455AbdADWAj (ORCPT ); Wed, 4 Jan 2017 17:00:39 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33649 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761572AbdADWAe (ORCPT ); Wed, 4 Jan 2017 17:00:34 -0500 Date: Wed, 4 Jan 2017 14:00:30 -0800 From: Dmitry Torokhov To: Wolfram Sang Cc: Benjamin Tissoires , Pali =?iso-8859-1?Q?Roh=E1r?= , =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= , Jean Delvare , Steven Honeyman , Valdis.Kletnieks@vt.edu, Jochen Eisinger , Gabriele Mazzotta , Andy Lutomirski , Mario_Limonciello@dell.com, Alex Hung , Takashi Iwai , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH] i2c: i801: Register optional lis3lv02d i2c device on Dell machines Message-ID: <20170104220030.GD40341@dtor-ws> References: <20170104102118.GD3499@pali> <20170104103233.GT5767@mail.corp.redhat.com> <20170104112223.GE3499@pali> <20170104120031.GG3499@pali> <20170104130252.GV5767@mail.corp.redhat.com> <20170104160643.GH3499@pali> <20170104173928.GW5767@mail.corp.redhat.com> <20170104174619.feke27q3ehwkylfs@ninjato> <20170104175456.GA40341@dtor-ws> <20170104215546.GA1433@katana> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170104215546.GA1433@katana> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 04, 2017 at 10:55:47PM +0100, Wolfram Sang wrote: > > > From e362a0277fd1bd6112f258664d8831d9bc6b78da Mon Sep 17 00:00:00 2001 > > From: Dmitry Torokhov > > Date: Wed, 4 Jan 2017 09:33:43 -0800 > > Subject: [PATCH] i2c: do not enable fall back to Host Notify by default > > > > Falling back unconditionally to HostNotify as primary client's interrupt > > breaks some drivers which alter their functionality depending on whether > > interrupt is present or not, so let's introduce a board flag telling I2C > > core explicitly if we want wired interrupt or HostNotify-based one: > > I2C_CLIENT_HOST_NOTIFY. > > > > For DT-based systems we introduce "host-notofy" property that we convert > > to I2C_CLIENT_HOST_NOTIFY board flag. > > > > Signed-off-by: Dmitry Torokhov > > Yay, this looks better to me. One nit: > > > +Alternatively, devices supporting SMbus Host Notify, and connected to > > +adapters that support this feature, may use "host-notify" property. I2C > > +core will create a virtual interrupt for Host Notify and assign it as > > +primary interrupt for the slave. > > This paragraph sounds Linux-ish while binding docs should be OS > agnostic. Maybe we can shorten the second sentence to "It will be > assigned then as the primary interrupt for the slave."? Heh, I just sent out patch to DT folks. Provided that they are fine with the new property I can either send V2 or you could edit when applying, whatever is easier for you. Thanks. -- Dmitry