Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5991083imu; Mon, 21 Jan 2019 01:01:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ywJDF88mt7sFNJMiQm4Vhw0YOc5CKwsO1EkwnjxTCy4osi+hFztn1uEndVbNgKV8Tr6nx X-Received: by 2002:a17:902:503:: with SMTP id 3mr29540209plf.233.1548061299912; Mon, 21 Jan 2019 01:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548061299; cv=none; d=google.com; s=arc-20160816; b=auqg6Svt5OxsBvK6OZKVy0OwLgg0brfZ1/lHFpqQcHYVhr9nO6CC45tWyHv6PFjCbu JHoMccqXh5YspnXG57PtgsPs4R1UygOtVGQ+vuOMXIF/PtR43vsGN/Jp7B5Ul4Tm3YWg bQIRg2FK2PwJ2tbsLGzykPH9ZcrMi6JKWuUCXSoYnI+UPjG2AIahaX+D7MK+TMR9F25H kNWhgFk1nHw6Rzdgn9cCpaf8XD8E4WzZDcHHhdcx9Z3TY1B4qsU8/L/JymWDDxpD2vHK P1NsBOSA45bfePjOgbfqsLm5cuOnHY5qN1XCe+GmHFxsEktwc9c0f6SU01gr+8eCiGC2 9cLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CBPf8HOT93sc0oj4tv290B2Z61lA88aXyyFQdOpSyj0=; b=D0YVHu0HHsco3ahf/6qTdSQE0i4QJss9fw/B9EYmecI/PuUbgm4hX9Fu2mwnxxWszr 4MrQ1sjFmbLkqXV/c3DmQG7grAO8HSsZ3ejH2bPYAa96G6R6FrMulZodrjwxggn8klaN +et9zO26fR2X8c4/QgKawJJd2o0YfKReJEH43kDoy3MNN2UREuAeFTwhrqKs1zk38TYR +LRoKRTKo8GGssHgVCPvGv2WQ2NMq/aUL/81RNHEP0XnP4BJsmIg6P68PQF8NzOsZ0ni tAWp1JAfDjIwtWNreeJOM9wkKzUq5Lhjd93mdFk2034zFAvPl+arCy7/HJ0mZfTd4YVw 5dtw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v34si11656879plg.205.2019.01.21.01.01.23; Mon, 21 Jan 2019 01:01:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729129AbfAUI7n (ORCPT + 99 others); Mon, 21 Jan 2019 03:59:43 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33892 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728156AbfAUI7m (ORCPT ); Mon, 21 Jan 2019 03:59:42 -0500 Received: by mail-lf1-f67.google.com with SMTP id p6so14935237lfc.1 for ; Mon, 21 Jan 2019 00:59:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CBPf8HOT93sc0oj4tv290B2Z61lA88aXyyFQdOpSyj0=; b=L0XpPMLh/BcT5cCFI6UjEtPTYOtZ21aByEWcmMT2uSdSm5Pxl1ejuHCBuynx8VG0lV 7dlZy4wrIRE1W1lwzBVwhWgl0s0JmjNW9iPoVirn1R8zxjq3n6+U9yyCjznVe2q2bHDD DR4T24OP6+NkZLejso+lQ8Ut3Ek/gM7Y4V81sx/zcGxlWe/DvP+V86INGMOOKBU6LEaz lgFu+uEbQrZX92mj0kXK/afY2WcZwNJ7NDJaq1RknV57LjWIs03O7eJ/DOfrliiVpal2 r85O8EVmGuWw7yKXEnD9z7IHtjGS8PuVg2TIVl2ZvIKweJEQZcSxRmBi9VQTJZr9+xWD h7Kw== X-Gm-Message-State: AJcUukc9kmBtvufMYrFlksR+iMU2i4OkQ5OGhoqQPw4MVQ2n3banZbl/ Nbzj9tOG4GiSygnMaLrAYQs= X-Received: by 2002:a19:5d42:: with SMTP id p2mr18472269lfj.83.1548061179965; Mon, 21 Jan 2019 00:59:39 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id e5-v6sm2130011ljj.91.2019.01.21.00.59.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 00:59:39 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1glVQc-0000Re-GR; Mon, 21 Jan 2019 09:59:34 +0100 Date: Mon, 21 Jan 2019 09:59:34 +0100 From: Johan Hovold To: Paul Walmsley Cc: Johan Hovold , Palmer Dabbelt , Albert Ou , Andreas Schwab , linux-kernel@vger.kernel.org, Atish Patra , Anup Patel , linux-riscv@lists.infradead.org Subject: Re: [PATCH 4/5] riscv: treat cpu devicetree nodes without status as enabled Message-ID: <20190121085934.GH3691@localhost> References: <20190118140308.9599-1-johan@kernel.org> <20190118140308.9599-5-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 19, 2019 at 01:43:58AM +0000, Paul Walmsley wrote: > On Fri, 18 Jan 2019, Johan Hovold wrote: > > > Follow the Linux convention and treat devicetree nodes without a status > > property as enabled rather than disabled, while also allowing "ok" as a > > shorthand for "okay". > > > > Signed-off-by: Johan Hovold > > Reviewed-by: Paul Walmsley > > ... although I probably would have phrased the commit message slightly > differently - something like "Use of_device_is_available() in > riscv_of_processor_hartid(), in place of an open-coded test." That frames > the change as one that removes custom code in place of an existing > standard function for the same purpose. You're right, and that was my motivation too. In the end I decided to highlight the side effect in case someone was perhaps unknowingly relying on the current behaviour. Thanks for the review! Johan