Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1602650imj; Thu, 14 Feb 2019 09:01:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IaCpw2tJleu9JxdPqEMvMkEFMD3Epy+MH3PlI5oKosw4uPJu8odvjOgGjv7M5Pw9HJGoHAW X-Received: by 2002:a63:db02:: with SMTP id e2mr824186pgg.419.1550163702787; Thu, 14 Feb 2019 09:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550163702; cv=none; d=google.com; s=arc-20160816; b=VdwmudcX2dr1EJ1aQXAxXgpVHF7+zhi0JOFzt9jV6HBzsRP0iF19zQhw7lEACB0Huc qUPFuTLcnsEv+SLKXsn8q7Py0QYp8X5G7IWbOnLU7nmCeQpIUO/ZQLrj2XLZXBiyjQeZ SfuViUe0AlPTJsWEXvvcLE8iNXmOGaIjjrh5uTsmVIHtxk3sJ7SEIykb14CApevLDaTB VSEvMexzJNW5kyeA2GKgspyxWBi13lDMBPIroURsAmf+8hoz7fIHfQ9kAP7LqUy9lYnG wJB/5owGW/Dgfx/KWyNpByC91kwYhbOf7lO2NsG3n6u+hNyJyUJcrgT8AB+K74ThiyIe mFrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4TrRhGwOdgFn3xmHlA9D/ZKuyBptGMlZtNkvWqQnKrw=; b=vtJwucQoiucnfMoXnst2u4cusHfkDUvjBD0AgbMh9tOBUFAiS2Icy8dAUuRQD0AVAt Q/xniBRtebSWkl3u/GRMYK7pf0jPgqokGkHEglsunnvII+UyETYvpN9834hL636PtX0P KBMLf2cg/H+fQiZaWMeHd1jQkngoZ4RGENhfuVqtmKvWvtxvbAcMtywGfwt6oyuV5QX+ ub5EAXOMiprrA19cbdTS4A/dfeLVDqRjEaN6aQz4qpJckJpwAIWpRBGGCUTVCZzPKour TjVCav4ub+4JcfPY6UkvQACvm2MxCzyPdtx5ykZMk1ZgkC9yvnMIGD+qjUUJ38InYH0C JCMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXmLJXq5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n78si2930988pfi.235.2019.02.14.09.01.22; Thu, 14 Feb 2019 09:01:42 -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=pass header.i=@linaro.org header.s=google header.b=gXmLJXq5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406152AbfBNH4k (ORCPT + 99 others); Thu, 14 Feb 2019 02:56:40 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46690 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387620AbfBNH4j (ORCPT ); Thu, 14 Feb 2019 02:56:39 -0500 Received: by mail-lf1-f67.google.com with SMTP id f5so3790265lfc.13 for ; Wed, 13 Feb 2019 23:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4TrRhGwOdgFn3xmHlA9D/ZKuyBptGMlZtNkvWqQnKrw=; b=gXmLJXq54IGI2wrSJZKhht/Xe2h5QOjk6SznOMsQUTAKA5OunR3n3MRo4hbacScrPn paB3nkhwYQybJH0PPwfSxGhcnKiad8GFvby9i7OjZtEntKZYJgd5PZBANPc96DJg29Hq LTh7/Ex759t5tISp6JsTL9+tH8ikRTyf66d9vNnW9uwOQDWkUS0GqVp3jA/njdpFWpT1 C+a7OQ5odVfVksQwxS5evkno8npBLXgoXnvDJNM29QL0mA3jADaTFVn9o0CA9UK4grwL CJ19fI0jg1BlHYsJDN/NnoAkrr2X7IUPDrN8aFuLh5/jUOyYafpPDDRGlX+2eTC4/su9 Sdlg== 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:content-transfer-encoding; bh=4TrRhGwOdgFn3xmHlA9D/ZKuyBptGMlZtNkvWqQnKrw=; b=uCqlAGo8pryAI6CVDRYiHPGcZ8hcpfQTTljDAlx240vTL1PE9AizW7FXX8oXnkhqOJ iEq5o1zw0WZY8RzCI4ouCeXGeb2y15geeLaub1FXt2jFkmL126FHSjp/cjJvJSa+acrS 8IAqBbkFGV3ubBCrHECQyoD8lOVky9fr/wRfqmMWKVaoHHypSUvGlemkVvczu8Oo75Dx sGKzTodiILBdI6g4OJrY9vi9R+R6xueIMropu+oIIg0+1yYXgSYzA28WQBkFQHIfU7G0 PTzf0MZTG8W2YQCfMD9/Ob321WB5V2sfYse6t22lIU1VwOD1OsWTaywL1XfV5XmudxaV WHkA== X-Gm-Message-State: AHQUAubUH8AcVqmYjTdzDn75G2xnhaNiAovwUdb/lSsYS3donKLdA9sR DBw7VkqMimy+wCi/TaviymeNZKdWukl6jKctJl4wFw== X-Received: by 2002:a19:ec0c:: with SMTP id b12mr1507153lfa.27.1550130997253; Wed, 13 Feb 2019 23:56:37 -0800 (PST) MIME-Version: 1.0 References: <0438b78c7f9f9bc3f0e7bcbcef3873fd2dd7e259.1550061925.git.baolin.wang@linaro.org> In-Reply-To: From: Linus Walleij Date: Thu, 14 Feb 2019 08:56:26 +0100 Message-ID: Subject: Re: [PATCH 2/2] gpio: sprd: Change to use SoC compatible string To: Bartosz Golaszewski Cc: Baolin Wang , Rob Herring , Mark Rutland , Orson Zhai , Lyra Zhang , Mark Brown , linux-devicetree , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 5:10 PM Bartosz Golaszewski wrote: > =C5=9Br., 13 lut 2019 o 14:15 Baolin Wang napisa= =C5=82(a): > > > > On Wed, 13 Feb 2019 at 20:59, Bartosz Golaszewski > > wrote: > > > > > > =C5=9Br., 13 lut 2019 o 13:49 Baolin Wang na= pisa=C5=82(a): > > > > > > > > Change to use SoC compatible string instead of wildcard string. > > > > > > > > Signed-off-by: Baolin Wang > > > > --- > > > > drivers/gpio/gpio-pmic-eic-sprd.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/gpio/gpio-pmic-eic-sprd.c b/drivers/gpio/gpio-= pmic-eic-sprd.c > > > > index ac573da..24228cf 100644 > > > > --- a/drivers/gpio/gpio-pmic-eic-sprd.c > > > > +++ b/drivers/gpio/gpio-pmic-eic-sprd.c > > > > @@ -364,7 +364,7 @@ static int sprd_pmic_eic_probe(struct platform_= device *pdev) > > > > } > > > > > > > > static const struct of_device_id sprd_pmic_eic_of_match[] =3D { > > > > - { .compatible =3D "sprd,sc27xx-eic", }, > > > > + { .compatible =3D "sprd,sc2731-eic", }, > > > > { /* end of list */ } > > > > }; > > > > MODULE_DEVICE_TABLE(of, sprd_pmic_eic_of_match); > > > > -- > > > > 1.7.9.5 > > > > > > > > > > We guarantee to make older device-trees to work with new kernel so yo= u > > > can add the new compatible, but you can't remove the old one. > > > > But the old one is incorrect, and we still keep it? > > > > Well in theory the device-tree is supposed to be a stable ABI so once > it's released, it should work with any following kernel version. > > In practice changes are sometimes allowed and there are also bugs in DT f= iles. > > Linus: what do you think? In this specific case I'd keep both strings, it doesn't hurt does it? You could add a comment to the wildcard string saying it is only there for compatibility with elder device trees. In general as long as there are not (a lot of) products shipped with a certain device tree, I don't care much whether we change the bindings or contents. The hard rule to keep the device trees backward-compatible comes from SPARC SunOS where the DTB was burned into a BIOS ROM that was hard or impossible to update, Linux just had to handle whatever was in there. If the situation with the device tree we change is not similiar, we should not care either. In practice there are companies and developers that always recompile and ship their device trees at the same time as they compile and ship their kernel, and in that case we need not care about backward compatibility. While the device tree enablement on ARM started out with the former (strict) assumption, the practice of using DTs has shown that it is an unrealistic and inappropriate stance to have for all device trees. (IMO!) So I don't mind if you break compatibility here. Yours, Linus Walleij