Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1778268rwd; Fri, 9 Jun 2023 01:53:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6v4I1lHFxgQENe1awLNApQwIXyayA1o0iCS/rrUEufQjQLhZOyE0hle9Ghu3P6PyBFPafe X-Received: by 2002:a05:6a20:e614:b0:10f:52e2:49ec with SMTP id my20-20020a056a20e61400b0010f52e249ecmr354646pzb.53.1686300835916; Fri, 09 Jun 2023 01:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686300835; cv=none; d=google.com; s=arc-20160816; b=S90D/IP0RJAmP7cEBSY0QyeLCaxmqAb5S+N7Gj9pK1eBPOEMdnAimXVhjTJUZW+hIJ 0O+AWAtqIaSUVHGfj6EKC0Dt1uiDqsFnyFIqWYYavhsXhxkmec4GaHLVyoxEdNxO7DAF 42je/DsKZY4k35j7GabSKJ+TugyjC0vDZApUdOK/WPdYKUpqraEA6WS/mmT5HMEeblfC Iawl6ASjbLVxWoBJklTNkJVKrpZKABOTGNQkFJRjWeoIrhHYD44zPhEjzERTy1TJs2T+ box3m6g5cobDOcL3NvnkQz6UgwLwR3gtgmnmJ4WUo6i+XUVW3461NNtHY5tKmwZGSxwG GZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dnKn0rN/J8ew2J1uOQmCV4crX90hgrQd2S/Jl0BhSqo=; b=YrJldn5pRJouOnTu1qIlqKfPMv8N1L8kp18zPWmq1SkkC57mqX6rQ8d0VVjJJEubhE fs3DjYjmss6OdE8royr5o7N543PdHcg8jvwuEaAVK8aJcMMWhGMl5n2THrNfNGWje6R3 qFnlOt3a1L4FicSp8lw87QMDfVk1mbfB8v7zeVp3mPDQFNzW0zHCvk9NTd0igAjFF3Mp p5xEWSZXw7jjUwpJuSE1E88gq6H3rqvTB069S6N4+wKIeLdcCSTCtofpW2AU6lOM2ioh TO0S/RpJEOjgUejM0vXhAQbUb5A+y87Zpd0RXc5amdkuzOEReCgt5Wi7B5pdXBVstNdS Tqjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyc9b5Ts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902e5c500b001b046acc841si2513025plf.266.2023.06.09.01.53.41; Fri, 09 Jun 2023 01:53:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyc9b5Ts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240976AbjFIImk (ORCPT + 99 others); Fri, 9 Jun 2023 04:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238648AbjFIIm2 (ORCPT ); Fri, 9 Jun 2023 04:42:28 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE822738 for ; Fri, 9 Jun 2023 01:42:17 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-565eaf83853so13717857b3.3 for ; Fri, 09 Jun 2023 01:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686300136; x=1688892136; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dnKn0rN/J8ew2J1uOQmCV4crX90hgrQd2S/Jl0BhSqo=; b=iyc9b5Tsz3m4uzu5QPHIyp9hWWD36AzNCXx/5UBBpfg9DadL9negG9HHy3NlycPesZ /Wo21X2LwaewBG800sNtMpDsWnd9RHE5CTJAr9tnxxK2IgMYOOry2gN08C8pVlC1dXSY Ia+oZP1ViwNwfae+MGsYl5z9xr/XmYtG27acryqkgj1ypRLK1zFuEc+s35/lwKW/UHrh ZVWaSV49EvcE5G10LtzPkVVkzC06he9AgJIKP6KGj7WsAHAKD0UZssbyjC9/C+lXN6QU adnQzlvVRUTShMPZF0KBF0C7h1hkXTgY7VPL3vBcesa551r2trBx/3m9l7VrP2Pt5o7m rjpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686300136; x=1688892136; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dnKn0rN/J8ew2J1uOQmCV4crX90hgrQd2S/Jl0BhSqo=; b=X+OcbxBWwzgaDw3nRTJvFc0fWUrJ2JRDi7JP4dZI7V/BZ3udyuGcgEggDInDqBGVvd GTWGOtFVtteYoKu04aGfR7MEz5ixNy9RDXdXiMoZnb1rDZr0IJVcEMo2od4ZnsmP3JoH Ppx8gIXQ+yNzP/gXVKzSN0eo4q7k1yqfAX00a+7hnfI2snCrhSn7tKFy2r4G5hj1na/H WHKuG1FxnlDGy8nkBCEoCK6YDiWfLfmCcTQZ+5zDVXpYiKSU6E3EEW3WymbqCmEo9gxh BbadLRyRwFNeZvFk0Kzn4mGt46FaJgSUFYWssxiojc5u8xXvzryc1GeAko3BTQCuKkwX A8sQ== X-Gm-Message-State: AC+VfDzhS9pv9+rHvk0hq5mVT9CUxxienOgGUYb4YpsGGUezYfAg38/6 EQH0YPZnbm4/o1q36VZV6TeWTwd/tqolukRpD1RqoQ== X-Received: by 2002:a25:cb46:0:b0:ba7:ddd2:9909 with SMTP id b67-20020a25cb46000000b00ba7ddd29909mr573747ybg.33.1686300136439; Fri, 09 Jun 2023 01:42:16 -0700 (PDT) MIME-Version: 1.0 References: <20230602115201.415718-1-matthias.schiffer@ew.tq-group.com> <6a0abd6bba2f8f940e695dfa9fd0c5f8ee19064f.camel@ew.tq-group.com> <3241150.44csPzL39Z@steina-w> In-Reply-To: <3241150.44csPzL39Z@steina-w> From: Linus Walleij Date: Fri, 9 Jun 2023 10:42:04 +0200 Message-ID: Subject: Re: [PATCH 1/2] spi: dt-bindings: introduce linux,use-rt-queue flag To: Alexander Stein Cc: Matthias Schiffer , linux-arm-kernel@lists.infradead.org, Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 9, 2023 at 10:15=E2=80=AFAM Alexander Stein wrote: > > A agree with Mark that a command line option isn't that bad. It's somet= hing > > that pertains to just the Linux kernel after all? And you can put that > > command line option in the default device tree, in chosen, if you want. > > I don't like the idea of a command line enabling realtime scheduling for = all > instances of the SPI controller driver or even all SPI controllers. Actua= lly > this might be worse if a non-rt SPI bus is considered for RT scheduling. > IMHO this should be configurable per SPI controller, OK that's a fair point. I don't think command line arguments are necessarily global by nature, AFAIK it's fine to invent something like pl022.4.rt_sched=3D1 where 4 is the instance number. Parsing it is just code. > e.g. a sysfs attribute. But it needs to be set before userspace is up :/ I fully sympathize with this problem, because I have faced similar problems myself. My fallback solution for this driver would be to keep using the old DT property (which was merged when reviewing was not as strict) if that works, or use undocumented DT properties, it's not the end of the world but does leave the bad taste of a work not finished. Yours, Linus Walleij