Received: by 10.223.176.5 with SMTP id f5csp818795wra; Fri, 9 Feb 2018 07:43:13 -0800 (PST) X-Google-Smtp-Source: AH8x224qiVOL02Tis1zu6nGDpLnH70/H9x2pzyskNuXBQToWz4jyWiYFXrJqa01H3bAmGDQEvMml X-Received: by 10.99.64.196 with SMTP id n187mr2692755pga.147.1518190993298; Fri, 09 Feb 2018 07:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518190993; cv=none; d=google.com; s=arc-20160816; b=v73ds75gRVeP+MdGAYAt39NGD3yGfJ0jjyjLKmJxfOfupsiFsK2/1HPSdyzB1Nn8mm uPc4cYmmj57XM3zTyvwFjvsdWfoxsQ5Q20oUCm9CctJo3w9j2DiJWcFFyD8iJT2LUuAB oXbui3YEjDI+nTSFiTy6n1RlPoKY3CPuSiI9v7nZEOVm7kAROnJ1GLsFEvA4r1TLdeez NiuX5f5RJAvToxjNnpmYF6SLafj/4qDdrtzBLfvgqzgMazzIPJw1V/+xir8iNBOUnFMy rvYIXQHGUUBiJraFcIwZKlA5fWwHX5x8yvpYc6zhCCvPzusO5eLuiNrzAm3Bd5Vae5Q6 tMXg== 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 :arc-authentication-results; bh=52jnKKBsKKxky0Jn6LO1sXKAEEEuAANbz7BcY3CZZ0Q=; b=YSJxYjXiQvj+Fa6fbM/giFnz+jG13EFiFzkyYmSD6uzclU2YTmWlOL46AsgWqFMF5y gQ+eW8xkeeppxVoEt6h1MAk4EDb9VTFORb8ntk5uvRKaUNCSjPLWTlYink/guQekJkZC Qg4i/qmjFqMFA9w78RWUv50oHO3bMIFZFcq2ROG3yanKBhpsVpyD9WMmMxR3Qe6xQsnz 5bTpcdYNTIKGckYNrVKU781xE9lpkZk5gOPd3T5qqCRiDcrqAJxRfP9RLaTTjsR9gPvd EkqZH3XUM/egYf+4POfhbbnnfutUOB5Ug88v70v2zNmpPgfDy0oWiUaaI5zacz6w8CRl uQeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=n1y+6rvn; 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 p26si1498630pge.348.2018.02.09.07.42.59; Fri, 09 Feb 2018 07:43:13 -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 header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=n1y+6rvn; 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 S1751285AbeBIPli (ORCPT + 99 others); Fri, 9 Feb 2018 10:41:38 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35274 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeBIPlf (ORCPT ); Fri, 9 Feb 2018 10:41:35 -0500 Received: by mail-lf0-f66.google.com with SMTP id a204so11783975lfa.2 for ; Fri, 09 Feb 2018 07:41:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=52jnKKBsKKxky0Jn6LO1sXKAEEEuAANbz7BcY3CZZ0Q=; b=n1y+6rvniVX6BEQaBE1h9jrQQMx59IydJcH+6xEvqCnljEJHkqELNBmMYopZG6FY1F wjiVwMgOy1OOn7v+AzljYGSf5xlud1Gu6u9Bx15O+7awptovakGNjL2oku8y1Q4j2i/x zwTMO6VmfG/NXaAh3jRPDOuDTYdYOox4bPyps4nE0AYmZbePgSUZANXWN56yAhciBN7k kMu96Wcn4GEzbuy+8f+FZiofDs5dwnlI726ybzDa0AUpc4lpiiVrGvLca2Aaq0m5o49h syd26FRx2gm1GYUYH8C8ItNu7thH2md7Az5XFdaUiTKW1jnuG0vsw1Mw64Tw+9VUaUl6 6a0w== 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=52jnKKBsKKxky0Jn6LO1sXKAEEEuAANbz7BcY3CZZ0Q=; b=Xc6QkI0vpu7Q28+rbMBNg/e5BBgjWRbxDpAxDlyidHUwNrRdwGWtZm9IUqtyv22dEa KCE9O/oCLoULJosluG/o7VcicE3rOEJTa0/JmrHaX7/agUkWH6gBeLtNx9x6FQ0XO1xj 7rMHBW/U9se4KB0wYemsygmb7DahPXJqbLfrhTz/RYc5yI0C/EujcZkIO5EplaFeAC1+ uf6+PtM5ZXsuP7IC3YmtUEliiRQYBgArReLBQPJ2Urm+QsRUMPXxCun8tCnWDyi+A3TS YLSUZRJCBxXpoL/+7IIfKjS1cS2QWufKVl1RXrN4vlx54tMSKaebMrRrs3V9wKqdwvt0 srnw== X-Gm-Message-State: APf1xPB5VFEHZgrYCKJBy8pk27rsCRnPz4d+/y2aAGCMIylcRkeO5+EO 3iOID1WRx2QtT2mkanlKH5vCzw== X-Received: by 10.46.41.68 with SMTP id u65mr2207844lje.112.1518190894463; Fri, 09 Feb 2018 07:41:34 -0800 (PST) Received: from localhost (89-233-230-99.cust.bredband2.com. [89.233.230.99]) by smtp.gmail.com with ESMTPSA id m26sm469511lje.66.2018.02.09.07.41.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 07:41:33 -0800 (PST) Date: Fri, 9 Feb 2018 16:41:33 +0100 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Kieran Bingham Cc: Kieran Bingham , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Kieran Bingham , Mauro Carvalho Chehab , open list Subject: Re: [PATCH 2/2] media: i2c: adv748x: Add missing CBUS page. Message-ID: <20180209154133.GF7666@bigcity.dyn.berto.se> References: <1518024886-842-1-git-send-email-kbingham@kernel.org> <1518024886-842-3-git-send-email-kbingham@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1518024886-842-3-git-send-email-kbingham@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, Thanks for your patch, On 2018-02-07 17:34:46 +0000, Kieran Bingham wrote: > From: Kieran Bingham > > The ADV748x has 12 pages mapped onto I2C addresses. > > In the existing implementation only 11 are mapped correctly in the page > enumerations, which causes an off-by-one fault on pages above the > infoframe definition due to a missing 'CBUS' page. > > This causes the address for the CEC, SDP, TXA, and TXB to be incorrectly > programmed during the iterations in adv748x_initialise_clients(). > > Until now this has gone un-noticed due to the fact that following the > creation of the clients - the device is reset and the addresses are > reprogrammed in manually by the call to "adv748x_write_regs(state, > adv748x_set_slave_address);" > > As part of moving to dynamic i2c address allocations repair this by > providing the missing CBUS page definition. > > Signed-off-by: Kieran Bingham I would drop the '.' from the subject line, with that fixed: Reviewed-by: Niklas S?derlund > --- > drivers/media/i2c/adv748x/adv748x-core.c | 3 +++ > drivers/media/i2c/adv748x/adv748x.h | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c > index 71c69b816db2..6d62b817ed00 100644 > --- a/drivers/media/i2c/adv748x/adv748x-core.c > +++ b/drivers/media/i2c/adv748x/adv748x-core.c > @@ -52,6 +52,7 @@ static const struct regmap_config adv748x_regmap_cnf[] = { > ADV748X_REGMAP_CONF("edid"), > ADV748X_REGMAP_CONF("repeater"), > ADV748X_REGMAP_CONF("infoframe"), > + ADV748X_REGMAP_CONF("cbus"), > ADV748X_REGMAP_CONF("cec"), > ADV748X_REGMAP_CONF("sdp"), > ADV748X_REGMAP_CONF("txa"), > @@ -91,6 +92,7 @@ static int adv748x_i2c_addresses[ADV748X_PAGE_MAX] = { > ADV748X_I2C_EDID, > ADV748X_I2C_REPEATER, > ADV748X_I2C_INFOFRAME, > + ADV748X_I2C_CBUS, > ADV748X_I2C_CEC, > ADV748X_I2C_SDP, > ADV748X_I2C_TXB, > @@ -354,6 +356,7 @@ static const struct adv748x_reg_value adv748x_set_slave_address[] = { > {ADV748X_PAGE_IO, 0xf6, ADV748X_I2C_EDID << 1}, > {ADV748X_PAGE_IO, 0xf7, ADV748X_I2C_REPEATER << 1}, > {ADV748X_PAGE_IO, 0xf8, ADV748X_I2C_INFOFRAME << 1}, > + {ADV748X_PAGE_IO, 0xf9, ADV748X_I2C_CBUS << 1}, > {ADV748X_PAGE_IO, 0xfa, ADV748X_I2C_CEC << 1}, > {ADV748X_PAGE_IO, 0xfb, ADV748X_I2C_SDP << 1}, > {ADV748X_PAGE_IO, 0xfc, ADV748X_I2C_TXB << 1}, > diff --git a/drivers/media/i2c/adv748x/adv748x.h b/drivers/media/i2c/adv748x/adv748x.h > index 6789e2f3bc8c..725662edc4b8 100644 > --- a/drivers/media/i2c/adv748x/adv748x.h > +++ b/drivers/media/i2c/adv748x/adv748x.h > @@ -35,6 +35,7 @@ > #define ADV748X_I2C_EDID 0x36 /* EDID Map */ > #define ADV748X_I2C_REPEATER 0x32 /* HDMI RX Repeater Map */ > #define ADV748X_I2C_INFOFRAME 0x31 /* HDMI RX InfoFrame Map */ > +#define ADV748X_I2C_CBUS 0x30 /* CBUS MHL Map */ > #define ADV748X_I2C_CEC 0x41 /* CEC Map */ > #define ADV748X_I2C_SDP 0x79 /* SDP Map */ > #define ADV748X_I2C_TXB 0x48 /* CSI-TXB Map */ > @@ -48,6 +49,7 @@ enum adv748x_page { > ADV748X_PAGE_EDID, > ADV748X_PAGE_REPEATER, > ADV748X_PAGE_INFOFRAME, > + ADV748X_PAGE_CBUS, > ADV748X_PAGE_CEC, > ADV748X_PAGE_SDP, > ADV748X_PAGE_TXB, > -- > 2.7.4 > -- Regards, Niklas S?derlund