Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752543AbdLUO66 (ORCPT ); Thu, 21 Dec 2017 09:58:58 -0500 Received: from mail-ot0-f182.google.com ([74.125.82.182]:43372 "EHLO mail-ot0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbdLUO6z (ORCPT ); Thu, 21 Dec 2017 09:58:55 -0500 X-Google-Smtp-Source: ACJfBos3ZI/X9qDB6QDiOZRjYFV4kA4/aGMrGgSmBqmPsQZp8h5dUnKukKt81sQ58h/sYWLFuqyyol6c4U3ScHT1nLk= MIME-Version: 1.0 In-Reply-To: References: <20171221134842.31287-1-brgl@bgdev.pl> <20171221134842.31287-3-brgl@bgdev.pl> From: Bartosz Golaszewski Date: Thu, 21 Dec 2017 15:58:54 +0100 Message-ID: Subject: Re: [PATCH v2 2/5] dt-bindings: at24: add a missing compatible To: Andy Shevchenko Cc: Rob Herring , Mark Rutland , Javier Martinez Canillas , David Lechner , Divagar Mohandass , linux-i2c , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 36 2017-12-21 15:25 GMT+01:00 Andy Shevchenko : > On Thu, Dec 21, 2017 at 4:18 PM, Bartosz Golaszewski wrote: >> 2017-12-21 15:08 GMT+01:00 Andy Shevchenko : >>> On Thu, Dec 21, 2017 at 3:48 PM, Bartosz Golaszewski wrote: >>>> "atmel,spd" is reported by checkpatch as undocumented in the device >>>> tree bindings. Add it to the list of supported compatible strings. >>> >>>> "atmel,24c00", >>>> "atmel,24c01", >>>> "atmel,24c02", >>>> + "atmel,spd", >>>> "atmel,24c04", >>>> "atmel,24c08", >>>> "atmel,24c16", >>> >>> Sounds alogical to me to make a split by this new record. >>> Can you find better line to inject? > >> They are actually ordered by memory size. I want to keep it like this >> in the driver and I prefer that the DT reflect it. > > So, I just disagree on the above. Rationale I described at one of the comment. > > At the end it's your call, but from my p.o.v. it makes life harder to > read and catch the chips which are (un)supported. > > -- > With Best Regards, > Andy Shevchenko Yes, I prefer this version. Another reason to keep it like this is to group chip variants together. E.g: atmel,24cs02, atmel,spd, atmel,24mac402, atmel,24mac602 are all variants of atmel,24c02. Thanks, Bartosz