Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A225C636D7 for ; Thu, 2 Feb 2023 12:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232218AbjBBMwG (ORCPT ); Thu, 2 Feb 2023 07:52:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjBBMwE (ORCPT ); Thu, 2 Feb 2023 07:52:04 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78E9A268A for ; Thu, 2 Feb 2023 04:52:03 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id e15so1994707ybn.10 for ; Thu, 02 Feb 2023 04:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iTEsYvNbhZUvr3t5FDyaBPDIayK5soN0V1YA6KoE95Q=; b=PPfSS12X5711vg3bhuNrJmUVkzvhGet/0lNfQTXDPw/wtNntkEWqMG9cO2+AQaapQi MZJcaRC71fY2ZMHLvVtk19QBWC1mCJPijp0uWxSPYRqKKnRf1wK8sVEE8LuBsjsuG+5t x1Qfdfr93US48KlEdOPNzlN6NNSHJoWxD+ccOAxBTB+PoK6YHr6Fn8j8ialUwaevYP2c aixY6bNdQwbQ+vFjTT8ZPOtdFdyJvVNLLrIZFSz/pqtkbGzYjg1HuIz6De2bTmz4GpwA Qam0sl8kV1yAtcdu12tzoopbHGDis2sPmqKBDume7Nod8LxoXbavP03tvajPG2IFZ/lT sPbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=iTEsYvNbhZUvr3t5FDyaBPDIayK5soN0V1YA6KoE95Q=; b=4TyHqNpDfOE8JX8DYWu5xQQcHYZLmODCzyv8RBsz+JbTmYAbkwwfFkLm4e2xW7KfLV t36Zm71pmo0uUyNEzJXCG5eJcWnkQciwF2eCstjDOOQ0O6RG4970H3F+L9icOFfK4WIm 2+7RxFquvqkhwRhrmmMbDyL/rit3xN103HD0DZwm6qNEFpek+hp/gZAiIiEYyEgQ8LSK M+owrsosHiuMizjNW2gglGbrquB99/bnaoYtGYoRcEkfnBDG0CxV7/xMEV0fGlCDej8c UhTqBVrouPehTufx0DJkEBerbFecu4ksrUvn+Hr+NeKlurrHH7hfojKiSi9FVJvVR7kh 4f7g== X-Gm-Message-State: AO0yUKV1BR5sg7MMr9U7hxqRcVtYaSGpjjIue0KTsfpHYb3zpzUDZdUL quSSjTCwhrKHTAfzT9UseeRp8KNHD853VWNeUR8smiua7+mC9A== X-Google-Smtp-Source: AK7set/IzybDVeByN7olzBbtRq2zPCd8ReB2ZColcl64XBQe7/HYO17UuFBtuhM1xYbR1EXmfXF7asG9PYGE8qn+MFw= X-Received: by 2002:a25:fe0a:0:b0:7ca:9b40:72a7 with SMTP id k10-20020a25fe0a000000b007ca9b4072a7mr435003ybe.130.1675342322566; Thu, 02 Feb 2023 04:52:02 -0800 (PST) MIME-Version: 1.0 References: <20221207131731.1291517-1-william.qiu@starfivetech.com> <20221207131731.1291517-3-william.qiu@starfivetech.com> <4529a646-1faf-c858-cfbe-1560ebeb1fba@starfivetech.com> In-Reply-To: <4529a646-1faf-c858-cfbe-1560ebeb1fba@starfivetech.com> From: Linus Walleij Date: Thu, 2 Feb 2023 13:51:51 +0100 Message-ID: Subject: Re: [PATCH v1 2/3] mmc: starfive: Add sdio/emmc driver support To: William Qiu Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 2, 2023 at 12:10 PM William Qiu wrote: > On 2022/12/9 5:09, Linus Walleij wrote: > >> + priv->syscon_offset = args.args[0]; > >> + priv->syscon_shift = args.args[1]; > >> + priv->syscon_mask = args.args[2]; > > > > Why should these three things be in the device tree instead of being derived > > from the compatible-string or just plain hard-coded as #defines? > > I don't get it. > > > Hi Linus, > > I'm sorry to bother you, but as for the definition of syscon, after discussing with > my colleagues, we think it is easier to distinguish SDIO0 and SDIO1 by defining it in > the device tree, and the code compatibility is better. OK sounds good looking forward to seeing the result :) Yours, Linus Walleij