Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp566590ybt; Wed, 1 Jul 2020 05:13:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi+B8HSWXDFInsSVnt6oYtZtCMaaOC8/0liq1HZ+cEex+2tnpV1NJQyErLycyonXVC5mSm X-Received: by 2002:aa7:c583:: with SMTP id g3mr29223037edq.228.1593605633598; Wed, 01 Jul 2020 05:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593605633; cv=none; d=google.com; s=arc-20160816; b=nsxkwPIWW/gc3QSAc8QGAYSq7iezJuk5V3tUhxLVUc3UpGtZ3fFBemeYc/MLBl3qNw IjViu3VREuscjVQBj2gBAejF3N/wGySU9lsuQcaco/Hl/AGF+J6Qks+ofaASZ4xRyWgo PgsjX5a8kFDrOWCMYaea7dJJQ4M8jpZLfKuvhSWjlSLHyO0epkvaxzDgyqwhO6oLUnvQ ajWw0uVJ8T9sUMIX3W/rJjBXpKavQ+cW4RqTgPV0niVK/0tfIvaNrIlDsD96b3yhIzgT 784uZLal+lppIAZs9SE0bc3LYU26+bs/GNiRW/Hy52+IEAnfS6jCqK6zXp26gjzr0+WD 5W+g== 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 :in-reply-to:references:mime-version:dkim-signature; bh=W0W7BV8cUI7CuBuiHY2QDrSNw3SUVEmFQilJePOeK9o=; b=AEZkKDlpD1wygFnzbkRVtDs2EB73qKa2ucafn+5H+b9/upe56rJyThLUKM1e5P8SOh RwjodellyHkkJBgz4mlzb0dQeF0q9hu00FhWcV/FCBeVvjo+/3ktnqm0n3CZnfOhLEgv oA8wXq6yZetv5mrdDio/Z3iuNFKsfs04pVfbOQVh/sPE1+mq+Ct1LwcbfhJtoO4w628e bbbwoPzpb3pjsTBWIjf5k1lHymT1W3L95XCZGCgj7DYQP2E85HijEc7sfCULmlTVF+6m A49idK5cC2xpvyGz1y0XwH1BgZIvlr9iklz+NHy+AtJZNom6/noNeAvjRo+7SuTueO0m rrwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iSLl6gC1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si4148687edn.364.2020.07.01.05.13.29; Wed, 01 Jul 2020 05:13:53 -0700 (PDT) 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=@linaro.org header.s=google header.b=iSLl6gC1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730237AbgGAMKm (ORCPT + 99 others); Wed, 1 Jul 2020 08:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730161AbgGAMKm (ORCPT ); Wed, 1 Jul 2020 08:10:42 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D1DC061755 for ; Wed, 1 Jul 2020 05:10:41 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id s9so26565081ljm.11 for ; Wed, 01 Jul 2020 05:10:41 -0700 (PDT) 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; bh=W0W7BV8cUI7CuBuiHY2QDrSNw3SUVEmFQilJePOeK9o=; b=iSLl6gC1LJlLK+whB5oyTs+OtzYClkNiWCwVhfxSa4nWWZE9cgvKbMs0t/oSHF7iif zPmUIlXcMvtxLFJp7z6fFiMvN4YJ6rUqMYVlZIaaWTQoxWOm+QMIcyZygSGx8XPiwDiR gY7xx5sSSox29urVygQAwHuiedYy8Nm/IOZPe3gvE6DoqVNuSSSCWKaIaDX0E1UeGtlv cXHA7O36mWAvOHACXNpQMLAryoNFB+NCZ8eFL0SuWjoGzAh8PH+d+TdXqa7F2DjxpOFN DhYOuea6pLyM5G9hE2ygiZH2kw6bz1SRw7/DtQZriZ+mAUU5ileGd3gp8xq6cQ+mfVVu krIA== 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=W0W7BV8cUI7CuBuiHY2QDrSNw3SUVEmFQilJePOeK9o=; b=gk81VN2aMR/o5pqN4kGLhPcb+KKbJUAfrcfi3TWrHVCPE/Au4tu//fwyWe9H24JGQK FIR0ye+o314p+MR1WQAbHaUUmtgLPsVfl1WtHEdBLbfBGeEjU4d/Wjzszmq/7D9NiN8/ IBgUwMLAsL1aMB0v38jZ6YiF2a0lcIPZTBv82kY3kTpNgoT769M11FoFPKyhmnz49/9P Idf6wQFqJbkYvZxsTgbIjyvhdOJKD/EhbaOHOKPmvvCELwF1eO2DaRG0AIKaEjTL9tn4 qDyF6/obxyFPfxPeBa8IYO7o7I+YiMxoU+GOIelkiONHzdPHVnXKcelg/wEqoSsXjhTV plGA== X-Gm-Message-State: AOAM532Ponhw/WqPxnQ4QPw9A0wfFtf+gin4RCk751seuZGm7DfU/qDr //0Cm3O6lfHGEjJ3d5GS6Q9Mbs9+2CEvIlY0i3kQyA== X-Received: by 2002:a2e:8855:: with SMTP id z21mr8588845ljj.325.1593605440227; Wed, 01 Jul 2020 05:10:40 -0700 (PDT) MIME-Version: 1.0 References: <20200625144509.17918-1-daniel.lezcano@linaro.org> <20200625144509.17918-3-daniel.lezcano@linaro.org> <0fe6837f-9b44-4578-23f2-3e4932d01122@linaro.org> In-Reply-To: From: Amit Kucheria Date: Wed, 1 Jul 2020 17:40:28 +0530 Message-ID: Subject: Re: [PATCH v2 3/5] thermal: core: Remove old uapi generic netlink To: Daniel Lezcano , Linux PM list Cc: Zhang Rui , Srinivas Pandruvada , Ram Chandrasekar , Linux Kernel Mailing List 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 Wed, Jul 1, 2020 at 3:15 PM Daniel Lezcano wrote: > > On 01/07/2020 11:33, Amit Kucheria wrote: > > On Wed, Jul 1, 2020 at 2:56 PM Daniel Lezcano wrote: > >> > >> On 30/06/2020 13:47, Amit Kucheria wrote: > >>> On Thu, Jun 25, 2020 at 8:15 PM Daniel Lezcano > >>> wrote: > >>>> > >>>> /* Adding event notification support elements */ > >>>> #define THERMAL_GENL_FAMILY_NAME "thermal_event" > >>>> -#define THERMAL_GENL_VERSION 0x01 > >>>> +#define THERMAL_GENL_VERSION 0x02 > >>> > >>> This hunk should be removed since you set version back to 1 in the > >>> next patch and we don't actually intend to bump the version yet. > >> > >> Well, I've been very strict here for git-bisecting. > >> > >> I move to V2 because of the removal, but when adding the new genetlink > >> code, the family name changed, so we returned back to the V1 as it is a > >> new genetlink thermal brand. > > > > I don't understand the move to v2 for an empty skeleton UAPI. For the > > purposes of bisection, couldn't you just remove all the v1 UAPI (w/o > > bumping to v2) and then add a new UAPI in the next patch? > > > >> The name is change because it is no longer event based but also sampling > >> and commands. > > > > In this case, just to avoid any confusion, the new UAPI could be v2 > > making the transition clear in case of bisection. > > > > I'm afraid the v1->v2->v1 is a bit more confusing. > > Let me elaborate a bit: > > Why there is this patch ? > - By removing this code first, the next patch will just contain > additions, I thought it would be clearer > > Why increase the version here ? > - Code must continue to compile and as the 'thermal_event' family is now > different from V1, the version is changed > > Why the version goes to V1 in the next patch ? > - The family name is changed as it is not doing event only, so it is a > new netlink thermal protocol and we begin at V1 > > So the main reason of this patch is to be very strict in the iteration > changes. May be it is too much, in this case I can merge this patch with > 4/5, the old netlink protocol removal will be lost in the addition of > the new protocol. I'm fine with that if you think it is simpler. Considering that there are no users of v1 currently, it feels a bit over engineered, IMHO. Also, the new UAPI doesn't need to begin at v1. Just having it start at v2 will avoid this confusion, no?