Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13722979pxu; Mon, 4 Jan 2021 02:38:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkvJqVaw14OwFMoRuur4WQXNoujlUmV4GyThQiM/ZBf7qErXyIEjGQJz+AtDkyy7dKWV7Z X-Received: by 2002:a17:906:d8a1:: with SMTP id qc1mr65115544ejb.294.1609756738373; Mon, 04 Jan 2021 02:38:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609756738; cv=none; d=google.com; s=arc-20160816; b=OQkIiCHndcVW+Z7STu8kSIFLwnhLz2NnUUqD/rmnmkVtlmCV0yrFoPirTBX/DOVumZ v5MhW1dimouC+WfvOimbBwVxQ2wXH6xlrALZW7nstbGoDzgvepRChg++D/pdSJjXcnDQ VedpQwViHOBQZXmaoEKaUxNFNi5wYuwpIvE4WTP2N6slRFyHKs+VxUXB/w6EoV8pgy1+ YkPMSFDVQ+C6yVnEPCU4a5ISlXKGQQYYNxNltuCA4h+WwzGHpNYIVGHprAwow3tSc60k eRB1qsguS0ZMrnwH2bbUfEbL5atrQbZQlIt1UfMVOrHjj4CWcKigj3oBVZ8wt5N5fJ7E gV3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=FQobp1YZSgBfFcc2U/JI4fMyV/LH2Dew/2DTROwwSdI=; b=m4Dw9ZLlRF6rjZ3mlKE6cvEoHdd4P10mXYsj1/PbF06tHAgk2WQA06sCU09F5GgNu6 HS6xQBs+NI4gp027RXxB9+Jm2flsLM8iF0xDxrccpapRnaVOCpiFRO9lkqXt3S/wgoOS uziKhoOPsbyhSqCBa4hRAwLBFSM1HW9xWDWLBm+CkXEQb8gBAfSuW5Jzx516Bu37B5Sd Babtj9aHrQuaBBjdtvvh2IoIUzVh8NJkuJ4wCrG/KDpLnBGEqSX7tKrsOCLg+AWWraF2 ED1SaMf7kQ1Czikr3/b9laGj2wZkY870bpWZRyHTT8adH9zJ56kTvoFGktuNLWF1nMs2 jtlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca4si31564668edb.559.2021.01.04.02.38.35; Mon, 04 Jan 2021 02:38:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbhADKhR (ORCPT + 99 others); Mon, 4 Jan 2021 05:37:17 -0500 Received: from mail-ot1-f48.google.com ([209.85.210.48]:41025 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbhADKhR (ORCPT ); Mon, 4 Jan 2021 05:37:17 -0500 Received: by mail-ot1-f48.google.com with SMTP id x13so25548008oto.8; Mon, 04 Jan 2021 02:37:01 -0800 (PST) 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=FQobp1YZSgBfFcc2U/JI4fMyV/LH2Dew/2DTROwwSdI=; b=FpiXyOelkJpPhnNCLa5Fpz7on54yuTGWMV1DYjCVhKAl3O1rTQpEzJ7/7uMZotrbsY AJVD7APBshQCjE3YXrFyo9fZREMjkCr+0tItrJhlMNXIzcmkfbIBK1Zp3ioWuC8imDTN RecttCWE2VINnO6bnGbIupgRPRKCKzKrWuP0DYyewIIPhXcPM92PxeNcoeh/hhb8now/ K+1BkLqhdJe84+gGi/ssnc5Y0q2dxn1+vNsB/tGnpHv+5PHG9eZxv2X3+5GdZ3Sx5Zza Zmpht+NPTg5gPeQO2g6glPVUMDKrpdFvKkyDrNY3ANJPJSdLON+MBEz6phhCo7l5ag+m o3GQ== X-Gm-Message-State: AOAM533rLDqOfPji6KJl2xjHecNhs36a41e2nXqzpFnGGCMjJubQF93k rZ+6qv7gFfbJRquqbTGMt6LfkIghNjpyjv4DcgU= X-Received: by 2002:a9d:c01:: with SMTP id 1mr37111244otr.107.1609756596601; Mon, 04 Jan 2021 02:36:36 -0800 (PST) MIME-Version: 1.0 References: <20201231153141.25525-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20201231153141.25525-1-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Mon, 4 Jan 2021 11:36:25 +0100 Message-ID: Subject: Re: [PATCH] gpio: rcar: Remove redundant compatible values To: Lad Prabhakar Cc: Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux-Renesas , Prabhakar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Thu, Dec 31, 2020 at 4:31 PM Lad Prabhakar wrote: > The mandatory compatible values 'renesas,rcar-gen{1,2,3}-gpio' have been > already added to all the respective R-Car Gen{1,2,3} SoC DTSI files, > remove the redundant device specific values from the driver. > > Signed-off-by: Lad Prabhakar Thanks for your patch! > --- a/drivers/gpio/gpio-rcar.c > +++ b/drivers/gpio/gpio-rcar.c > @@ -392,33 +392,6 @@ static const struct gpio_rcar_info gpio_rcar_info_gen2 = { > > static const struct of_device_id gpio_rcar_of_table[] = { > { > - .compatible = "renesas,gpio-r8a7743", > - /* RZ/G1 GPIO is identical to R-Car Gen2. */ > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7790", > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7791", > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7792", > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7793", > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7794", > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7795", > - /* Gen3 GPIO is identical to Gen2. */ > - .data = &gpio_rcar_info_gen2, > - }, { > - .compatible = "renesas,gpio-r8a7796", > - /* Gen3 GPIO is identical to Gen2. */ > - .data = &gpio_rcar_info_gen2, > - }, { > .compatible = "renesas,rcar-gen1-gpio", > .data = &gpio_rcar_info_gen1, > }, { The reason the driver matches on these SoC-specific compatible values is that originally the family-specific compatible values did not exist, and the device nodes in the initial DTS files thus did not use them. The family-specific compatible values were added to the DTS files in v4.15. However, as this was backported to all v4.14-based R-Car BSP releases (3.6.0 and later), I think it is safe to apply this. Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds