Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1876521ybi; Thu, 20 Jun 2019 05:29:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRmmGN0DMa6it3I3PLnaqyt+xkTwIMr3oVnyIBVX1oRJsnPd4QTb2IdOqPMSzHY1a0Vabf X-Received: by 2002:a63:5961:: with SMTP id j33mr12233113pgm.89.1561033768157; Thu, 20 Jun 2019 05:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561033768; cv=none; d=google.com; s=arc-20160816; b=s9LEwHwvbpzA71WYToX/AhFHYS3Bo4DYv6zsA1Y9ZloT6zKBPJoRmrYPh2C8/CYsmc Abgglwyx8sIbIIG7H47RyBRV5AK5K6JCAFrpKoZnpZW3Q6pt9Z3Rt4EvX8zUjYq6sqcR PZU85KJdsukTeOwdhFG/rj0JNWdkDV5bJX0lwyqa/SgwsfQO2DYgH7MSmlpWKM8guhfw Wg6C5JjMoqySfD0EvQKFeAz+XJO5Q1pMxuqiZT0yFSaKqwjTdjPc0LG7r1+vU6UWbMSI 6l1o0926hoTY1mz3DZwTMWDTn9iEEP3Hsnb34guMZyJOYdjaG2gujrh5EtUrCiYg3q14 4Vgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=f8A38WuFGwuhUpIag07Mu5Ad2tlvuMwviR3nNUO1eYc=; b=GSyZGG6ZT43YSvcU9wTl6FmMN++y8c+JsNtl5R/SaSce9wn+NUiSgLaxCY9uVlHroM v6STBTnc94xgoS5o+TfRCsfXI1vhxsBGIbrSVYaiKEd8v8epJBfJexjeLFKVZM7MqIQN SMFOeVeq06jCQgtiokeNBETRg0S3LbuR/UXKJiT6ANdXFGe6oBTOihXelu5lROKEimlH Monw/elxVp+ULgM9RvMe5B7Qa1+L0nyteqMeTzawIBv2apQmzp98Lse/gMTKpHuNkf8/ Gop28uLc+V2j43YUPt9fUYfPuuklne1Op6XCegCsb27YwaMmDSoTVRuR6/2/7TU9GRsD xaPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UD2HEJxI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si9195005pls.414.2019.06.20.05.29.12; Thu, 20 Jun 2019 05:29:28 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UD2HEJxI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731797AbfFTM26 (ORCPT + 99 others); Thu, 20 Jun 2019 08:28:58 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35377 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731743AbfFTM26 (ORCPT ); Thu, 20 Jun 2019 08:28:58 -0400 Received: by mail-wm1-f65.google.com with SMTP id c6so2999376wml.0 for ; Thu, 20 Jun 2019 05:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=f8A38WuFGwuhUpIag07Mu5Ad2tlvuMwviR3nNUO1eYc=; b=UD2HEJxIaZYFN31LZj5+kRb827BBEknCjoff00qcVtmDfXoih9RTdVVDk2A28tEDPX uL6DgkzoiFr3IYYvQC8PM9dHOcHFGPmvGskBatlKBBrH3GdhYx2yK/XrxWquZyEPX2pe EDSAie7w6zSMZNMsOcYDoAVp9RJMTqsBiLewKrSNJxOaa+nWK94OSBwCp2TGLE/vsCAX fm1VxysEEzZEgpdoMU5KBnMSWeIXrrnuzkdtuFrdOBCgI7BcDHtllqpVV1N8euujUxvN UcEVotm6+4sGk69SiCgC8WQ1DZsZdYkp3nMHU/LcuIVPG64NnsKeja6vsHDzIhxjEC4C 6ngg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=f8A38WuFGwuhUpIag07Mu5Ad2tlvuMwviR3nNUO1eYc=; b=ERw+cXqfNxLdozy1QZQlbZVpADDV2Nk4DJSmpn9pn9HK/oTX6QY3QYkWnBJRwwdYOR tTfDm/gDCRoLgA/5dACCAqRGbWIOM2tnJWfLBsiDim9V3GUGmtjTyxIgJ0HxIqg1YBut FN2Xq4ovYTINhacU0RVx4uwfDdFHKmaJl21WjtCDCQa5x3IWr03dNIB0Cdrj2ic+9Qzc 5fzh/ObGvWw7S0m1iwDL1MpVbtsDpn1CRHQ244EDpy1SZzGooWzCMAqj+OfODqhBJ+oB BMTsAhErXePKT0gPpKKsuCqMqKBXMqbdg85cd4eNC5AUYZzIVuiHHTeegBKe02eguq3E xU6g== X-Gm-Message-State: APjAAAU7Z/YFDw2/D9xqYXTGWJkuADaXGRIw2h/8GIo6DZVXziS+Y1oG pGrpcVtdKOvb1psgri5bvwwTHA== X-Received: by 2002:a1c:7008:: with SMTP id l8mr2602367wmc.64.1561033736096; Thu, 20 Jun 2019 05:28:56 -0700 (PDT) Received: from dell ([2.27.35.243]) by smtp.gmail.com with ESMTPSA id k82sm5613177wma.15.2019.06.20.05.28.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Jun 2019 05:28:55 -0700 (PDT) Date: Thu, 20 Jun 2019 13:28:53 +0100 From: Lee Jones To: Steve Twiss Cc: "wsa+renesas@sang-engineering.com" , "bgolaszewski@baylibre.com" , "kieran.bingham+renesas@ideasonboard.com" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "peda@axentia.se" , Support Opensource Subject: Re: [PATCH] mfd: da9063: occupy second I2C address, too Message-ID: <20190620122853.GD4699@dell> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Jun 2019, Steve Twiss wrote: > (resend because the e-mail client added HTML formatting to my last reply) > > Hi Wolfram, > > On Wed, 19 Jun 2019 19:18:06, Wolfram Sang wrote: > > > Subject: [PATCH] mfd: da9063: occupy second I2C address, too > > > > Even though we don't use it yet, we should mark the second I2C address > > this device is listening to as used. > > Sure. There is a second method for accessing higher pages of registers. > The DA9063 Datasheet Revision 2.2, 12-Mar-2019, page 96, says this: > > In 2-WIRE operation, the DA9063 offers an alternative method to access register pages 2 and 3. > These pages can be accessed directly by incrementing the device address by one (default read > address 0xB3; write address 0xB2). This removes the need to write to the page register before > access to pages 2 and 3, thus reducing the traffic on the 2-WIRE bus. > > Is this a safety clause? What I mean is, shouldn't the hardware design make > sure there are not two devices located on the same I2C bus with the same slave > address? Why isn't this reply attached (threaded) to the patch. Is your mailer broken? > > Signed-off-by: Wolfram Sang > > Reviewed-by: Peter Rosin > > Reviewed-by: Bartosz Golaszewski > > Reviewed-by: Kieran Bingham > > --- > > drivers/mfd/da9063-i2c.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c > > index 455de74c0dd2..2133b09f6e7a 100644 > > --- a/drivers/mfd/da9063-i2c.c > > +++ b/drivers/mfd/da9063-i2c.c > > @@ -221,6 +221,8 @@ static int da9063_i2c_probe(struct i2c_client *i2c, > > return ret; > > } > > > > + devm_i2c_new_dummy_device(&i2c->dev, i2c->adapter, i2c->addr + 1); > > + > > return da9063_device_init(da9063, i2c->irq); > > } > > > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog