Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp11270132rwr; Fri, 12 May 2023 23:49:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vvi6mFNStPt3JNJpMgX2ZlhGl2HK8YScJsP9JXVHFNy8fimb4P9Xat28qRrb4nZ6IBL3F X-Received: by 2002:a05:6a20:12c8:b0:105:2199:7b93 with SMTP id v8-20020a056a2012c800b0010521997b93mr917241pzg.50.1683960586533; Fri, 12 May 2023 23:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683960586; cv=none; d=google.com; s=arc-20160816; b=GJ8qcR/MnlO03ZDNCTWCGz4eAy2Yk/P59lzrLXekWmqaV7fwQ0EGmo/ZpZn9PZ41oM TLx9P6ZKRo+yzjn3sVNoqF2sZZ5XdVtUIL2dkkSRB77cdXJkexHjxYGPFSXkJnGVdZd6 SbsPlRfkKDNj6P8EvL4CXeqMWfk1IifZrDVHuxFCwz5eA4kR7/Q501HRjOqh0M2l4AuN GwJjhSZxRvDFAFDLrqCIm7p++9Xaf3w75G0Kx6QUaiYlElnWZl3fKFel5whYfrDVKdpp bxipKQJwCLjnAmMiZQLfRBX1kwTfcn8z/V+rH3H/2GhaDHii8/XBDZP9iAEmP69+WrS/ wYGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=yBD/IVDADIdccI+8/kDlp0ycg0aYDt2yLpyyL7Ex208=; b=OClZ24ymJOkz8rgpzG78HxjcLESBmFx82XvlX0ZJOT8ko4KJc6G/vUjcaZZaQD/Wg+ mndB/dAFwKjec2SONjzAB7+7ifMqnXWwBeW3mPEfT9NvG7HuVOMJXMyLUnjdsMUli8j5 /M6qstYSxdJNG5f97YlkIhh8Y8BqzQHPY4/EaxZCjtcCOhAAs0C9mlY8CBGSAmEWKT6c x/A/NQSQ8MAeRghl/41NPoCyI0RWrLV+OO5PSTr/jyVNorVmbGXIK7znFBiufGf99ec1 CPXpDNDNxMzHzBYyK2U3VsA9TN95NoYbMTLf8An3MXQvgPkLrfrkzWtNjiz4rJ9bCA7H P5PQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a6566c6000000b00513234112acsi10553249pgw.888.2023.05.12.23.49.34; Fri, 12 May 2023 23:49:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232629AbjEMGQP (ORCPT + 99 others); Sat, 13 May 2023 02:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjEMGQO (ORCPT ); Sat, 13 May 2023 02:16:14 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2A6B1BD3; Fri, 12 May 2023 23:16:10 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8DxyOkoK19khmkIAA--.14525S3; Sat, 13 May 2023 14:16:08 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxi7YnK19kOG1ZAA--.26362S3; Sat, 13 May 2023 14:16:07 +0800 (CST) Subject: Re: [PATCH v9 2/2] spi: loongson: add bus driver for the loongson spi controller To: Andy Shevchenko Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, zhuyinbo@loongson.cn References: <20230426071045.20753-1-zhuyinbo@loongson.cn> <20230426071045.20753-3-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: Date: Sat, 13 May 2023 14:16:07 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Bxi7YnK19kOG1ZAA--.26362S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUUv01xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4 v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY 67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2js IE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7V AKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GF ylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1VW lDUUUUU== X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 在 2023/5/12 下午5:40, Andy Shevchenko 写道: > On Fri, May 12, 2023 at 11:12 AM zhuyinbo wrote: >> 在 2023/5/10 下午3:03, Andy Shevchenko 写道: > > ... > >> so, I think it is better >> to confiure clk and mode separately. > > Agree, but at the same time you can split the conditional bodies to > the separate functions. In this case the indentation of each of them > can be decreased. okay, I got it. Thanks. >