Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13747763pxu; Mon, 4 Jan 2021 03:25:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfbGake6alDSN85wetUi8oS8/CAScGt26YpWvL6Uax3WIlyu/lQmhE0d5oPPHJJWaZPvf8 X-Received: by 2002:a17:906:234d:: with SMTP id m13mr26773716eja.270.1609759530849; Mon, 04 Jan 2021 03:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609759530; cv=none; d=google.com; s=arc-20160816; b=lpEMH/ftAnen3rAITVa8BAFGZBTOu9HPLVIfuDJHOF8iVm08Q55TPTF3Fk45PPAgqP hOMNIkxfeNTfGGBiPQ736VLwdDylBRJ6xLcBoz47Iko2UKdMOkZ7o0BC9MBDuv03sQMK PvSomfpuoEmexN14eghYJJFqQylHgQ4GvNh5kD4/HkfVWwWnBoJdBWJ/sBURxyja4OHI Mlule3/zFglnY8VreYkn6no+TzpHA0WqzcuDUdP+pqJfnqNNSd9r4KLOiXrEUxHSOqTG PiZm9H/mb37NRLBjZg2i1lSEhLllVLhU4g2Bcw5nndYUiT1NvnEqGMAXlHDGjkEOBeM5 wVhw== 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:dkim-signature; bh=zokJI9v7bqGjxuN6FEkYnPOsXyma07z3X0FpcfMT+d0=; b=TRwc5AQho/RgSnCSHM6l/tFyPMNsdH9MylFjCmJU6cO1K6q4jNxYMJAC0vwlaSeyZA uMn9O5sTjHfEJrovu9hFdQICEtt0Jb7UbqQBBxZ8PS694cyzXgUWSZ9Wfw1yWNgenC8J xk2qntXAx0RYS4AyPNjJYsGdyeuTh3oXDLdtiUkgKUqVq04JCjay9+TahC2R8mfq6d44 zi49gQTP09VXGWt7E51U0jlIE2Av+7T+utiffhfmo4SZGvEQNU97aI0Z8BXONvwzhkbf TawICbmYVUDnLAy0Lfk1vQweqvdxMsBBHIF47fCgFj65T8Eo6s641XbyqA4ZKhxkYI5h Tyyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=iJJw9lxV; 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 i9si26058031eds.85.2021.01.04.03.25.07; Mon, 04 Jan 2021 03:25:30 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=iJJw9lxV; 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 S1726579AbhADLUy (ORCPT + 99 others); Mon, 4 Jan 2021 06:20:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbhADLUx (ORCPT ); Mon, 4 Jan 2021 06:20:53 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B3A2C061793 for ; Mon, 4 Jan 2021 03:20:13 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id y24so26913378edt.10 for ; Mon, 04 Jan 2021 03:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zokJI9v7bqGjxuN6FEkYnPOsXyma07z3X0FpcfMT+d0=; b=iJJw9lxV9NGp+WOO5GbSZFd0sMseyIUhXbeRaJNjf4oysH5X1ARm/mxS0VyN4zT2af ATt70lKD+K5THDvmypY710wfigodOEtl4rDAe8UI5ZE8XFDkyWfSCrE+JQU4GRb5Iy6i ykioiwo+BDbuLLhj61m+8bpP4KZcPtR/pD+UvIF1MDgNnPLFDKme1kYRp66L9rNanqXa pTY4SSAzaJUFdRvrynU61pgqwAHAADgrOVflDMt4IqB+y5gQskCAHfdDTXfaXqnC8/1k gslesTrHrCRIKLu1VHlUSuuYEaEq6SlK0pfyBfcuaN97Xk0YnORy3y2dtCSWLJc2eQ5E 0qWQ== 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=zokJI9v7bqGjxuN6FEkYnPOsXyma07z3X0FpcfMT+d0=; b=Td7od5MIOQKy0vO2QvPj5/0qzi6FqyjJDitDCmjacRff/R79AInjTgCl38tQd2/Y/W PD6LP4IFBpz+0K1Fx1PstIA3NmXFW3mkBkScBI9rrRrHI/7m/iF/YwCYvSCbebK4XTjI NaYbJl+t+3RCEq1ntQQ+K33fq/m59lCHZLvYFNOxWjjAjPh+ykfWVLT/KCFtPC+gri/p JJUbl77vOqzwGd3J/OuphFj0kmHq4+pwAXq3V/zTsO/jXPrdlr5npoWVwjXzS2eEFzn3 Is2XCTQsNbgHupAwuzqU+zzBm8EKUDVcOtBkYoUjBCJxGPdFWY3XT2paJfUyXOgnhjsj uI5A== X-Gm-Message-State: AOAM5330U4Y1U+jtm/RTXOJDhvpfd+ATFNz87yQ3zBU/fSefLhYvS/rG bCORwFjDnrWGsxFUrndMD9iQ1NXZccXA1YS/Hzac5w== X-Received: by 2002:aa7:cc15:: with SMTP id q21mr70622702edt.213.1609759212168; Mon, 04 Jan 2021 03:20:12 -0800 (PST) MIME-Version: 1.0 References: <20201231153141.25525-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 4 Jan 2021 12:20:01 +0100 Message-ID: Subject: Re: [PATCH] gpio: rcar: Remove redundant compatible values To: Geert Uytterhoeven Cc: Lad Prabhakar , Linus Walleij , "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 On Mon, Jan 4, 2021 at 11:36 AM Geert Uytterhoeven wrote: > > 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 Patch applied, thanks! Bartosz