Received: by 10.223.176.5 with SMTP id f5csp1248367wra; Wed, 7 Feb 2018 15:41:00 -0800 (PST) X-Google-Smtp-Source: AH8x225WbXuTOQiHZz8yYqfRRtPF0jbhEJswWvpz4lXfuZoWovIoD/Sk0CsOk3/O4QwztyOOEZs8 X-Received: by 10.98.197.68 with SMTP id j65mr7455435pfg.93.1518046860712; Wed, 07 Feb 2018 15:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518046860; cv=none; d=google.com; s=arc-20160816; b=I0ki5C8jyswBfVZcbaFKwrQaYOAUH4Pz7RGFVPFruLNmneYnlh6b4SrPMCLpt25/p7 zOG2Phgha0VqT6WrfXDXlz1TXN+4Is7Rw4ytN8xk+9h6hlMZiNQkblfPhDjBG9OQ6uJe Qta3oI3FCnlnTyTENW/A6KVvFFR69oLFXb7PMvFZ0ONch41zdxyx/sAJ6tFBvGf/R5Sq fwuwxtYMPxL3K50+JRK6JsIR2jNvwv7ypyRAGqQ1pXAqIZpIid5OPygiqEPQq3c7x3/D DU9phNaWTOa03MqV0Myg1LOULcNjZranPNstV17GM14WowyzbvkkMJbY9dib3B9xBIRa Vd0Q== 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:organization:references:cc:to:from:subject :dkim-signature:arc-authentication-results; bh=KBryXkg14nsfBkXCn1i+pIM2KkVxslsibfPob8LA4A4=; b=Z+MCxboentsVJPRBIHmXVqGMOPJ4ZTvFYMRYbAEcqhKyXAZ9DWaXifJF2TZP6jMhJI j22R+T16V5H7gBwIr7KCv0a5JHlb6xCK28yDc1VZvBym6L0ZiLXRESotnHCCjcOLw+2L XLhVT4d/pvkQjv/7vBm/goiUHygWDNIRoVtaEAZ/jkdDkuT0VK37zohsE9wEik59w5LR qa96eesV4uK+fktW7KLDycwMzNBjN0dApong1z/jCdVPOUr8ewptddjhDwLkGM+GS+S4 oIlDElL/Sexrtbw0sCtBa7ERGflD/Y1xFxgw+8YZWIykfjV7/Oi4OWYdI3/APpvqPWat Eq9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mw4RAQBH; 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 f10-v6si1864208plm.169.2018.02.07.15.40.46; Wed, 07 Feb 2018 15:41:00 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=mw4RAQBH; 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 S1751061AbeBGXkH (ORCPT + 99 others); Wed, 7 Feb 2018 18:40:07 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:40795 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbeBGXkG (ORCPT ); Wed, 7 Feb 2018 18:40:06 -0500 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 1176B200AD; Thu, 8 Feb 2018 00:38:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1518046722; bh=zNSsKbQ3Q7Marp1QHZaMpLXuFm9UG1qDm247djryvdM=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=mw4RAQBHo99dFy/i+a81Zl6VFCMd/yBT4AlEWD/crPaQt9rpFwbcRUUJWR6aYxqTq 7EvjHevH/ZTMFge3PEZi0CUfMAGWe4+tjJnpJNSesEQb5REL47zvSQJkVzsPFJag4e qdG2sbafM+taVUhxGrPpNJbscw7nU+b1chlqCL3k= Subject: Re: [PATCH 2/2] drm: adv7511: Add support for i2c_new_secondary_device From: Kieran Bingham To: Archit Taneja , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Jean-Michel Hautbois , David Airlie , Rob Herring , Mark Rutland , Andrzej Hajda , Laurent Pinchart , John Stultz , Mark Brown , Hans Verkuil , Lars-Peter Clausen , Daniel Vetter , Bhumika Goyal , Inki Dae , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Sergei Shtylyov References: <1516625389-6362-1-git-send-email-kieran.bingham@ideasonboard.com> <1516625389-6362-3-git-send-email-kieran.bingham@ideasonboard.com> <5890b343-e908-688b-ba03-84c1f76411f3@ideasonboard.com> Organization: Ideas on Board Message-ID: <2484af34-4688-9ac6-f433-1e6ef03a2416@ideasonboard.com> Date: Wed, 7 Feb 2018 23:40:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <5890b343-e908-688b-ba03-84c1f76411f3@ideasonboard.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Archit, On 07/02/18 12:33, Kieran Bingham wrote: > Hi Archit, > > Thank you for your review, > >>>       unsigned int val; >>>       int ret; >>>   @@ -1153,24 +1151,35 @@ static int adv7511_probe(struct i2c_client *i2c, >>> const struct i2c_device_id *id) >>>       if (ret) >>>           goto uninit_regulators; >>>   -    regmap_write(adv7511->regmap, ADV7511_REG_EDID_I2C_ADDR, edid_i2c_addr); >>> -    regmap_write(adv7511->regmap, ADV7511_REG_PACKET_I2C_ADDR, >>> -             main_i2c_addr - 0xa); > > > Packet address here is written as an offset of -0x0a, which gives 0x2f or 0x33 ... ? > > I think these current offsets are platform specific to a specific platform :) I appear to be using platform specific maths specific to a non-conforming platform or universe :-) Sorry for the incorrect assertion here. - I mixed up 8bit and 7bit values. The offsets are valid (when calculated correctly) - however - as per my reply to Laurent - I believe the patch which determined the offsets was using the wrong base :). Also - due to a hardware issue on the ADV7511 - the Wheat (as the only known user of two chips on the same bus) will need to be updated to ensure the current assignments don't conflict. -- Kieran