Received: by 10.223.176.5 with SMTP id f5csp3557683wra; Mon, 29 Jan 2018 15:13:46 -0800 (PST) X-Google-Smtp-Source: AH8x2263tAj1AS7/xjR2aTeLZ2ZPntu+Pg0At8iZPfnPH9TRHNGxD/G3dI83nV9zE87/rn3cKIi3 X-Received: by 10.99.126.17 with SMTP id z17mr451644pgc.338.1517267626782; Mon, 29 Jan 2018 15:13:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517267626; cv=none; d=google.com; s=arc-20160816; b=QAfbNGOKingI80VyN+JVaA5Q6QTDyOrgTCKn3j2bbyyX6WccylUXpe+7ia4ul54+rw z+GM5CdW4VsWt98EvwkB3Bko4TB3APUi0A67ekGXir8uIy93V7AgjkpNbDOZPoAkMCwc uqUHefNNrbmuX3Af4K7pmcWjVym8WCwDkXNWKgHWEqtFkVTmyh0Y1T+9nHXU27mJXnui qp3UxAiYe7R9M1N+WIgjZPqq/uajwh+NFUupLB1jFnhXdSlx6CsIAD9dvuF+a/U3NMLL pS3EpkDLzgBzTS0lbT7Eb3QvS06QmBva7X1j/gsfqiT1s/PWyJ//ecJxKlKWw+5uA8bZ fxLg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=BeE6KXk9I+ATRIkaM/Zmab4oEVBz70rX7bp8N3SJnmY=; b=wL5UmS214wovrkBq8i1VvV4jgcZ+ENFwQrEtYfvpaddQ/a+KlbvRUKbC+tLAAONqGf Me5VrZ7Ps4xPN72MO2zGypmZhI0n6kn80aEDPqe9iUxgANUxstqm28eSJ2xEFE7LUXTo 9BBnFOPwBAAaoMtYyYpoX3yi3P/DRMh4njb0edQY6hiMHliVcUMS1LO/5fUhDJXpToMr vaF7ASMr1mOs5T7FSYMUffRFZM5/MBDX5Kb6qjSew8uZd4dIW83sPpJD8K6AlQX5UMuW 6aLdiq/+259HD+kofH1s2axr/8SL9MFr+jqFOOSAqioLUDsU5GkITHzlJg4EQB2QyrZ5 iffw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uQqBvvRM; 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 j13si8081155pgs.510.2018.01.29.15.13.30; Mon, 29 Jan 2018 15:13:46 -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=fail header.i=@gmail.com header.s=20161025 header.b=uQqBvvRM; 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 S1751579AbeA2XNA (ORCPT + 99 others); Mon, 29 Jan 2018 18:13:00 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:35794 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbeA2XM6 (ORCPT ); Mon, 29 Jan 2018 18:12:58 -0500 Received: by mail-ot0-f193.google.com with SMTP id j45so5787832ota.2; Mon, 29 Jan 2018 15:12:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BeE6KXk9I+ATRIkaM/Zmab4oEVBz70rX7bp8N3SJnmY=; b=uQqBvvRMtm+c8nEkZ+6TkJla52KS8kg8g/S0hL+lC8oZSNyyHORjtqNs1G8Wfn/EJT 6QMFLaYMfUScsk6Jqj/ZoOV7U9Txzz4qCu2+mDLHBr2Gc8FRM70i9b63Ge1SzL0iYlDb CoEp+Hra3Wdb4cguiXZGvUeLkwTMBKF5pR6PnJAsYqqxCfIObQQ26yWFh1lHEfr8SXVX Y2qcxD8woN1roTT53ha2JPcNKIe/vTJQyS5MfFD4r53Fw0rfhxtLD1wiuVspMB4vguoX ZBhqOtR4v/i3xNoAjhhyYqQGROXr7yim4HJEvRsWFycBdkQaZp0FMqoJxWAc+h170Oaq f8yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BeE6KXk9I+ATRIkaM/Zmab4oEVBz70rX7bp8N3SJnmY=; b=mQImumh01x0bCAQoePLUhRnFmeFI7hC/HUUPcZNr87UMLJ3xpYiLVyPefhm0/hqD9V pWhJfXVe3EF4sreGk4ypiPpXqhpfRUFfcWVzRzDAFoaVQdhEOi9TSVSTsBYV/M5YS78h JMFgmhM3TSmBiNvAtI0s2XXpt0G/jKdccyLqrtZfgWxrrLqaSjVMj6wFZ4HfYryAthqu VRFZhVDK4JlZohdhDV0zrCMcc0z3m4D2cmCRNWuNBNiqagTR+C6njg+N7j2eLKgr0Nnn pFDdhbwLFHbNqzTP5q3CwLHqIeZLzxrdJGf7xv5uPvsMFp6XK9Bd713pc6l+I9hj5JtW kJSQ== X-Gm-Message-State: AKwxytfIXchIwjNu7l6nZ7vQ99zSrVDH2fqSEB48i8l6ChIlzfsf2rm0 ivJ7+4cB6tMhinVvISXdWMDtB0df+JBKa8EoHtM= X-Received: by 10.157.69.10 with SMTP id w10mr162725ote.351.1517267577416; Mon, 29 Jan 2018 15:12:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.68.33 with HTTP; Mon, 29 Jan 2018 15:12:56 -0800 (PST) In-Reply-To: References: <1517217696-17816-1-git-send-email-yong.deng@magewell.com> From: Arnd Bergmann Date: Tue, 30 Jan 2018 00:12:56 +0100 X-Google-Sender-Auth: 3LacEhfeHEUTKjI49hT1JSbRNqQ Message-ID: Subject: Re: [PATCH v7 2/2] media: V3s: Add support for Allwinner CSI. To: Randy Dunlap Cc: Yong Deng , Maxime Ripard , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , "David S. Miller" , Greg Kroah-Hartman , Linus Walleij , Hans Verkuil , Stanimir Varbanov , Hugues Fruchet , Yannick Fertre , Philipp Zabel , Benjamin Gaignard , Ramesh Shanmugasundaram , Sakari Ailus , Rick Chang , Linux Media Mailing List , DTML , Linux ARM , Linux Kernel Mailing List , linux-sunxi 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 On Mon, Jan 29, 2018 at 10:49 PM, Randy Dunlap wrote: > On 01/29/2018 01:21 AM, Yong Deng wrote: >> Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 >> interface and CSI1 is used for parallel interface. This is not >> documented in datasheet but by test and guess. >> >> This patch implement a v4l2 framework driver for it. >> >> Currently, the driver only support the parallel interface. MIPI-CSI2, >> ISP's support are not included in this patch. >> >> Tested-by: Maxime Ripard >> Signed-off-by: Yong Deng >> --- > > > A previous version (I think v6) had a build error with the use of > PHYS_OFFSET, so Kconfig was modified to depend on ARM and ARCH_SUNXI > (one of which seems to be overkill). As is here, the COMPILE_TEST piece is > meaningless for all arches except ARM. If you care enough for COMPILE_TEST > (and I would), then you could make COMPILE_TEST useful on any arch by > removing the "depends on ARM" (the ARCH_SUNXI takes care of that) and by > having an alternate value for PHYS_OFFSET, like so: > > +#if defined(CONFIG_COMPILE_TEST) && !defined(PHYS_OFFSET) > +#define PHYS_OFFSET 0 > +#endif > > With those 2 changes, the driver builds for me on x86_64. I think the PHYS_OFFSET really has to get removed from the driver, it's wrong on ARM as well. Arnd