Received: by 10.223.164.221 with SMTP id h29csp3082554wrb; Wed, 18 Oct 2017 11:52:17 -0700 (PDT) X-Received: by 10.159.207.131 with SMTP id z3mr16324252plo.191.1508352737192; Wed, 18 Oct 2017 11:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508352737; cv=none; d=google.com; s=arc-20160816; b=dV27ntBklUCL2+iVGgWnHDyL8bqSiigr0wMoNU5rFLdmto3/6kos8ir0t2a45Qet2O s9HYTjQH9fDUWJcyy795x0cp+md1ESWcPbeiP/sXLe59JEvFYI6wTh4tAVNMZp/HNTXf lxyDhPOx9w/3iPQMOHRAOuigjRJDzE/88wiue20HwiPpsv7UQ3x4aqBvE+/t6RpI6ziE 2UzdKY7f/pSkmeXlTyb5FkKxgv16OhaNq3bXWgCQ6rpKQBu8EjYksHyD32teH45032rK Z8LymbCnIdhWyoBer3CSXROe9iBewwONhHQ7z1gxpIDEBJYIEiqbDEiC1ndWZlahOl5B /PTQ== 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=IYz6zGazVKCMcYuObCpNj1W7AboNSFKOBUJO8PfCS8M=; b=Ph6ZWC0SKYSpfKXeDqq8YoHjm33Sl/HXCZG130Fvww4a1ZiiwpHxFMikNpV0ChuQLP FMJoZotGfKDtXCHHnw77vjsfv/x5ubj+TeYVDFVosneoEJWFWYz4m0E+Z3w8RI6Voc9y Qdtvj5ddH7rRv5Q/YByNk3iqugvmT13iSpDUZgUpLj6I7+jqpYYCyUs77UECsDYU51aM +0Nj/2/2oCA+HXEZuncsd8IlxY7Yw+rSKTA6rZ/DdtUc5Udfm+SPPYLvKHTkW3kD5AT/ fwWHtQkj/dG3zGSHZyL9pCbpzF6Np/iQAuwus/3YIDfowaX+gbREJuhLP1D4LhsIEUM7 Aa8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dowhile0-org.20150623.gappssmtp.com header.s=20150623 header.b=KhIvUWlF; 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 g8si7249100pgu.288.2017.10.18.11.52.02; Wed, 18 Oct 2017 11:52:17 -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=@dowhile0-org.20150623.gappssmtp.com header.s=20150623 header.b=KhIvUWlF; 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 S1751480AbdJRSv3 (ORCPT + 99 others); Wed, 18 Oct 2017 14:51:29 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:53965 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbdJRSv1 (ORCPT ); Wed, 18 Oct 2017 14:51:27 -0400 Received: by mail-it0-f52.google.com with SMTP id n195so7125642itg.2 for ; Wed, 18 Oct 2017 11:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dowhile0-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IYz6zGazVKCMcYuObCpNj1W7AboNSFKOBUJO8PfCS8M=; b=KhIvUWlFhfQYs9LylJkim3gMWWae2rVk1+gpsSlNtMfNlkCV8AcBJYuivPX9p4MpRk k8O1LvVL9zRevId8W/JeKcddJuNmVmw0DVo2X3/Ja9iTKinLJlvOaabQbyFzcCfdvtCE XuXoL25Y4D5PLXPVuvwkBfVMHVj0K856ytxUUKU5aaLxhCGhZQbnGp7UgQdXrXqBywwr pw9lC1Yhm3jN2rVjgvOX3zSAWIjPcIRlGF3C4J5aewis+DLoPtrmq3fzErxNuketQ6xJ ksr54bQMqw6jtBmUYJn9uBdIRL1D52H/CXSpgwhEyrs0RucS45aaRCP6YHxuf7bBDoJA ICng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IYz6zGazVKCMcYuObCpNj1W7AboNSFKOBUJO8PfCS8M=; b=UetBt9ehpt1JlEHpgrrGaG0WR/624JbUCvuuL2qfwlSXuub67E3j9trKlp4kRGQpYO Zw9wJYilMH1TMU9zYf5mAtd1NsGAXPe0M4GyfXQfURIPvcblLc0Sz1xCo2hnn3msoH7R Ap4NIrkwVxU6laFfWh11BSnssRbQQKmcg09tRxcWIromVR0IidYFy6tYND1SlsgsIH0j we0NotcRtakJpZHBHMI1lqznhslEA9fVssG5jGyyYB0oDjjZwUJxT3YcEQHWHyXicnCc 7VtqBPMFa/qjA0R0rUZ9TiUqBBCd86gRdi+t9X0iilwHip6Jn9cdBUjUlX2T4jjKJRCM xf/A== X-Gm-Message-State: AMCzsaX8Dqh162OQEo4H7/9Rm30eqf7rQ7Zayq3S1005SZzg/G2265wH x/yCA5jf9XTKuaGRAkE5UwH9HQDKbidRpuXsqvdLpA== X-Google-Smtp-Source: ABhQp+T+5JNvWdOXF4v2L+a4TCO3nNVJdhJmGtW48NwTAXwLeGXwG6ef5z0hDwo3+UhUHisCqjhvDZ1rrduHFQ6vgic= X-Received: by 10.36.93.72 with SMTP id w69mr10734317ita.103.1508352686674; Wed, 18 Oct 2017 11:51:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.182.70 with HTTP; Wed, 18 Oct 2017 11:51:26 -0700 (PDT) X-Originating-IP: [90.77.100.34] In-Reply-To: <20171017214040.kak3kpvh6tunjjfp@ninjato> References: <20171001104948.21663-1-javierm@redhat.com> <20171017214040.kak3kpvh6tunjjfp@ninjato> From: Javier Martinez Canillas Date: Wed, 18 Oct 2017 20:51:26 +0200 Message-ID: Subject: Re: [PATCH v6] eeprom: at24: Add OF device ID table To: Wolfram Sang Cc: Javier Martinez Canillas , Linux Kernel , Simon Horman , Andy Shevchenko , Linux I2C , Geert Uytterhoeven 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 Tue, Oct 17, 2017 at 11:40 PM, Wolfram Sang wrote: > Hi, > >> + { >> + .compatible = "atmel,spd", >> + .data = (void *)AT24_DEVICE_MAGIC(2048 / 8, >> + AT24_FLAG_READONLY | AT24_FLAG_IRUGO) >> + }, > > checkpatch reported this one as un-documented. And come to think of it, > since this is solely for EEPROMs on RAM modules, I think we can drop a > DT binding for it. Could you agree? I can do it locally, no need to As mentioned by Rob, it's already used by a DTS in mainline. I think the problem is in how the DT binding for this driver is described. Most DT bindings describes the complete list of compatible strings supported by a driver and that's what checkpatch expects. But Documentation/devicetree/bindings/eeprom/eeprom.txt describes it as the cartesian product of the atmel (and also the deprecated at and at24) manufacturer and a list of devices. To save you a lookup: If there is no specific driver for , a generic device with and manufacturer "atmel" should be used. Possible types are: "24c00", "24c01", "24c02", "24c04", "24c08", "24c16", "24c32", "24c64", "24c128", "24c256", "24c512", "24c1024", "spd" > resend. I'll do HW testing later, but wanted to check on your opinion > already. > Great, thanks! I hope I got it right this time. Adding a DTS snippet I can see that the entry .data is correctly used but I don't a device to check if is working correctly after $SUBJECT. > Thanks, > > Wolfram > From 1581601715119242342@xxx Wed Oct 18 13:22:14 +0000 2017 X-GM-THRID: 1580052043957453261 X-Gmail-Labels: Inbox,Category Forums