Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1526207pxb; Fri, 22 Oct 2021 02:41:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIINniJOjKsojlTLrQZkWJGALI5XCEcP6p77MPWQW7zJPC6dXC5iGmvBPmxmWWBF5UXWqR X-Received: by 2002:a17:90b:1c02:: with SMTP id oc2mr13310847pjb.52.1634895704712; Fri, 22 Oct 2021 02:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634895704; cv=none; d=google.com; s=arc-20160816; b=HPwCjwjMM8xTwgJh8XhGCBd3baVQgv+sRITZKCA2LBuc+mTZ9F84RUhm8+A+Jsm1hP z2sQHNUB4i2l41sv4dMot1uuo7FLSDPiJhDFeq1RTbsfoWbYvV3UfKZ+/0viIqXNwyD+ tRCMEFezG5jKtmokHaD2b+qpvQf/K3WxMiMoHh/fLu30ksOJAM8ENpSaIeIX0lVvgJQM Rb3RimyjkurRT80INIXoqmfFfnZDVCsRBcRzQVv2NZ3MoVh20Vd7uI6xvPtQUTS8cvks +V2XFk4gp5ldjAHKg5EkIS/+K2EQKNE59u475LzooxEoRrCt5pR0TiWWpfqehavMSzO/ 2ThA== 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=2DRet2N5HhCm6h5wynnS1gaOYbkbGXzOrerbjjC0E3g=; b=P/KJYoxtdI9k74beyPfkoOdi00OhKZ2MVAZ/qKiiiOWcwu2VGHzf5KC+hYAIwENgOR h1Pf1RtONEnH8AIGNgepZTHCpygCoXu+KXXadyCjkZ0hrznLmdvdoLjEP6Wjix8OHRMI ueM8EvPK+RPyHOWQHHDUc39ZOKDPvglduuYO1xAwmliEVp773/P28s3tKCS0VZlENnSk 5pHa6T666EiIrQAGmAtcCKpH55tbCMLyltLCYgpf1E49kyNDZrhRJjEkscns/z7GztX0 TFF5XggVEvMFNoyiHJuaQXiOwFFk4casevzpRG4+ycB4E0+D5QbymfTsYSrvCQDLfsyU cwlg== 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 z16si7119010pfe.110.2021.10.22.02.41.32; Fri, 22 Oct 2021 02:41:44 -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; 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 S232442AbhJVJmg (ORCPT + 99 others); Fri, 22 Oct 2021 05:42:36 -0400 Received: from mail-pf1-f178.google.com ([209.85.210.178]:37495 "EHLO mail-pf1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232038AbhJVJmd (ORCPT ); Fri, 22 Oct 2021 05:42:33 -0400 Received: by mail-pf1-f178.google.com with SMTP id q19so3130200pfl.4; Fri, 22 Oct 2021 02:40:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2DRet2N5HhCm6h5wynnS1gaOYbkbGXzOrerbjjC0E3g=; b=Jrkj7Jx9VmBivqrIstT5FQ0tLVNsID3nHIkQBDPtRh693hp0l2M+vwDTZWwH8Lbxtr LnNOXPEoA8FcICMv8yUk4RTPW7QlSWU+pLolsrYWpZnELe07BesyDZHVDiU2+kVaPXBf 38bt1sw4J2ijStGsfnNa3IFwXlvw0nFq69cMgiLV3Od620tFd4xpxfaKkWMRaOVWUW2Z nDBLzf0FbjGLd3UO/Sz4bf+P5Z2SI10s3EbmccvpVa3HWk2GwvppAD+18Rtzk+JdTaPO yASB+VH+TpLlKJp1dY5bAMnU94mZGHUNmjER79pHeufJ49J59vq0yYf+9SQCV82+0y67 Xzyg== X-Gm-Message-State: AOAM532EV4cWAG4PnESuapwrRCmLoctHc7OPuGQ8UyCZBkEFw8r7eegm FefogQ1DrYrr8eV3+B3hHlGsKuWBAJJ2umwslS4= X-Received: by 2002:a62:5257:0:b0:44c:ed84:350a with SMTP id g84-20020a625257000000b0044ced84350amr11091780pfb.79.1634895616438; Fri, 22 Oct 2021 02:40:16 -0700 (PDT) MIME-Version: 1.0 References: <20211021174223.43310-1-kernel@esmil.dk> <20211021174223.43310-2-kernel@esmil.dk> In-Reply-To: From: Emil Renner Berthing Date: Fri, 22 Oct 2021 11:40:05 +0200 Message-ID: Subject: Re: [PATCH v2 01/16] RISC-V: Add StarFive SoC Kconfig option To: Andy Shevchenko Cc: linux-riscv , devicetree , linux-clk , "open list:GPIO SUBSYSTEM" , "open list:SERIAL DRIVERS" , Palmer Dabbelt , Paul Walmsley , Rob Herring , Michael Turquette , Stephen Boyd , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Linus Walleij , Greg Kroah-Hartman , Daniel Lezcano , Andy Shevchenko , Jiri Slaby , Maximilian Luz , Sagar Kadam , Drew Fustini , Geert Uytterhoeven , Michael Zhu , Fu Wei , Anup Patel , Atish Patra , Matteo Croce , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Oct 2021 at 10:51, Andy Shevchenko wrote: > On Thu, Oct 21, 2021 at 8:42 PM Emil Renner Berthing wrote: > > > > Add StarFive Kconfig option to select SoC specific and common drivers > > required for these SoCs. > > ... > > > +config SOC_STARFIVE > > + bool "StarFive SoCs" > > + select PINCTRL > > + select RESET_CONTROLLER > > > + select SIFIVE_PLIC > > If this is well understood and platform related the above two are too > generic. Why have you selected them? From your last comments the criterion seemed to be to only add it here if it would otherwise fail to boot. Well it does fail to boot without the reset and pinctrl drivers. The clock driver too, but RISCV already selects COMMON_CLK. Once PINCTRL and RESET_CONTROLLER is selected the specific drivers defaults to SOC_STARFIVE. Alternatively we'd select the drivers too, but I can't promise that future StarFive chips will need the same JH7100 clock and reset drivers. Doing it this way means that selecting SOC_STARFIVE by default gives you a kernel that will boot on all StarFive SoCs, but you can still customise it further to your particular chip. It seems like SOC_SIFIVE is doing the same. > > + help > > + This enables support for StarFive SoC platform hardware. > > Not too much to read here. What is the point of this help? > I would elaborate what kind of platform it may support, what kind of > drivers it selects due to necessity of the accomplishing the boot > process, etc. This is exactly as the other descriptions in this file. I don't know why SOC_STARFIVE should be special. /Emil