Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp907520ybn; Wed, 2 Oct 2019 08:03:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDhRCFie+ZP+GxO+qWNGdPZJCZch1/knd5rRVedcrcj+z/042hrTexUH5KvYccaenTiE4J X-Received: by 2002:a50:ed8e:: with SMTP id h14mr4256925edr.69.1570028600318; Wed, 02 Oct 2019 08:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570028600; cv=none; d=google.com; s=arc-20160816; b=zuT8vUEsLPLWLCQadqccIu7RLqaBLkfm+9DVzD2abTarpaugW2s+dgGrAEB/vavttF BIYTECyff4hEVM7vxQPd3+2s1DXJoQZYqypCVawik2Bpn/UglSXVkRHWFfWZ364uDPW4 tDBakrhauqt7Kttci3D4pbi0TQLgCXTZb+j6cqJ6qHCo+sLvr4U0KVQLG5RGf2PxXvdc qhdir+Ki07GDGVfmX/Q+GdDFiJYPbZtxdCUO5bo8VJmfltcdBrpKS81wWjk9Oj+1hOS0 fy77ewuUocqV0SOmv2z5vhWigxkZEzpBNwOTjoYq7XVP8g9oQawRKQdxZqj3ncWU8Xag yiTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yqyokYNuh7XeiDwR5TApscfdY5kDA0ywkq0qPbxNN/4=; b=n9q4Vi58A2k6Ldk9Z1jmQTLjBNzcCsstZBDdyPnA6jUY75vJZkz6qxHPMpLTOyUjrr mPA5eY9f8OSN3LVRsHgFf8wQGnOlU9EJMCb/URH+wIKbbIOfV44xKkyLiGot0ENcEIhk 0Emut5RKO1h7XZWqe3bWjjAAKPYTD27VJicJgIX/5/7vH6iHOO2SG/HotGGuGil9MXHy hY3qeg+7vVvzJ34v8dkHX8CDJP5qSBWW84yyKsJ5K64xoXqLnUm7GVtPf+bBCey3I382 BsREsdhgr95U08gGQeGarOjcbYPnXlIfC3kMofLGs9QUoCeegbDFOrLZk5FXIhCrNcg6 6QqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BN5eqIrb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si10699737eje.50.2019.10.02.08.02.54; Wed, 02 Oct 2019 08:03:20 -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=@gmail.com header.s=20161025 header.b=BN5eqIrb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbfJBOoi (ORCPT + 99 others); Wed, 2 Oct 2019 10:44:38 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34166 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727134AbfJBOoi (ORCPT ); Wed, 2 Oct 2019 10:44:38 -0400 Received: by mail-lf1-f67.google.com with SMTP id r22so12981964lfm.1; Wed, 02 Oct 2019 07:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yqyokYNuh7XeiDwR5TApscfdY5kDA0ywkq0qPbxNN/4=; b=BN5eqIrbAhF3Xd1ilfyvnUwzzY2YJMZNblpODfIZGUMj/LUgGCjn+GrQrIsnmv4GRh CqwpraU+OSTbs8b/9HdTuvEkOYvgqZ83NzA+oq4ij8PEHJFdLnTxXByPz5ZXyn/00kvj rO8FORmUDqHWZZd0U1SBw3rUIaVaWoEveDbX60bgb8aztGzfsk9RZyVSEbe5la8z+R8M kIwl0W17RGz0zTpCJFzWV6XXaRGSUHU6HA/2utaQgRqkGHcHyqNhNVSlzWSiDeGAuirY R6G687BlT6tM+DDECvHFOfOTR9T/3RqhJWN6lpzN19wXVSziC6ZXfsWvOBxOqaruwkI2 iLUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yqyokYNuh7XeiDwR5TApscfdY5kDA0ywkq0qPbxNN/4=; b=HmTridyrJxIkMtURuiocBUoEJtsm+F9FaJmURqwL2rMMdWDBTr8VQl2DGaLqSQVoy1 z6JTlf4z9vGLQGJ92Rst4HuoNGfax4GTHf/tw3kbKxpubHwdiUN6fvsEubrF5iCu5q3b 2aGtjO4RvWa2E1ITbHA/PQn/UEBORDF5LjaEgFEcc5twACUJh2Qfp4vQC0USpXwFUSBA EoilNYuIVjPxs94vZ9QSCgEi8BXM5YXiIdewv2kKmsOe6wVIqY3yTJfAbyrFv666D8Xj pfZSnGqp25Vv7OKLZSkMvK4pL+sMHc0IbF3rkbOpJP8T3X7AgMuamA+/6ZBzGzYdfKo8 pihQ== X-Gm-Message-State: APjAAAXQj7nc2AWiZyKiOJhRUZ0oVYvYFwVMo6RI2/NYTVJGY7TniTpv 9LJcFnAtWAvMx633loa0F62dgGjiLt8ZJNt0PZo= X-Received: by 2002:ac2:46d2:: with SMTP id p18mr2595003lfo.140.1570027475826; Wed, 02 Oct 2019 07:44:35 -0700 (PDT) MIME-Version: 1.0 References: <20191001205203.4b1a5fb6@coco.lan> <20191002141359.30166-1-gonsolo@gmail.com> <20191002141359.30166-2-gonsolo@gmail.com> <20191002142744.GA3475@gofer.mess.org> In-Reply-To: <20191002142744.GA3475@gofer.mess.org> From: Gonsolo Date: Wed, 2 Oct 2019 16:44:24 +0200 Message-ID: Subject: Re: [PATCH] si2157: Add support for Logilink VG0022A. To: Sean Young Cc: mchehab+samsung@kernel.org, crope@iki.fi, linux-media@vger.kernel.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > You need a message and a Signed-off-by: here. Ok, I'll try to get that right the next time. > > + ret = si2157_power_up(dev, client); > > + if (ret) > > + goto err; > > + /* query chip revision */ > > + /* hack: do it here because after the si2168 gets 0101, commands will > > + * still be executed here but no result > > I don't understand. What problem are you seeing here? Why can't you do a > query chip revision first? This was explained here: https://lkml.org/lkml/2017/3/15/778. To quote: If the si2157 is behind a e.g. si2168, the si2157 will at least in some situations not be readable after the si268 got the command 0101. It still accepts commands but the answer is just ffffff. So read the chip id before that so the information is not lost. The following line in kernel output is a symptome of that problem: si2157 7-0063: unknown chip version Si21255-\xffffffff\xffffffff\xffffffff > This needs resolving of course. I hope so. :) g