Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1693536rwd; Mon, 15 May 2023 01:27:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ieH77k/QdC5CqgfvMJ4aRnNIjNsCnJhQxL5k962DQiUi3FOKf9XBxGs2DlBjrFw3dq1L2 X-Received: by 2002:a17:902:dac7:b0:1ac:9103:45aa with SMTP id q7-20020a170902dac700b001ac910345aamr30236104plx.49.1684139245142; Mon, 15 May 2023 01:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684139245; cv=none; d=google.com; s=arc-20160816; b=cFkCtlkCcEfG7doQbTqSGm3Mo7OuEye3TDrzncBTpjkRg/RhmQVcz8VF0OvR4eDwuP wvZ7/6SLHGUi2suvX+DAJUJD87CVyYW4lp8sw7Y9Id4SmKiK1bta3RAtaaz/T07ZtRGR KORBw/Gxd0aT6KIL5O9YyFeAxJ4AcMQVb0WK29rIona1s/urvm2i3pCu7IQCFZ+jmR/k /Bmw4J3EoAQIZl1BNhMkI4hE3YdqTsEDPQjO5u8cJEBmGMrxgrNmcYTfEJulDgC8NfSM XYtEFJ0Lt6wcWSxPx46K0j2U+TzQGVTNMvrX+XFObDJhKMDj+17Pd4/ev1VGwKbEm++o BgKA== 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=kStCgyEkvwx6GwVmy80QwsQxHzRFhzV07XZRA/iMLdY=; b=sD0IZ8RMehbJgWQOPfFDdIaCn9zrs0al0uidDEDo0jFSiJa3/7XsPBB9qeuLhYV5uH QCtNMDiX2+NQG3oykClASCZ8rCeUoK+E5yH/HVV+CRUlZ5ZAaAzMbKMKrx7smpmKRFdh kwJeAbwhZhutwFTVapDhwROh7Gc6bFhzaIqpJ+S5pcCeyKiUtiray5C83Z/mvuS+6pSV twHkbDoqQoXk49M2iP4+2I2CBz+4LnTWHCBVJG8WxnjgB2yedMMbrkHuzD2UUGn/Ontk dl+Ntp0hQsaUZwo+EkOp++Ml49HVnihEhxb6ygqzqSlpy7ZUlYGYeDT4XXnCxy+PEFjc 2uZQ== 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 f3-20020a637543000000b0052c587d25e3si15441813pgn.151.2023.05.15.01.27.13; Mon, 15 May 2023 01:27:25 -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 S230002AbjEOIOH (ORCPT + 99 others); Mon, 15 May 2023 04:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjEOIOG (ORCPT ); Mon, 15 May 2023 04:14:06 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 592F7A4; Mon, 15 May 2023 01:14:04 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8Dxh+nK6WFkZsAIAA--.15268S3; Mon, 15 May 2023 16:14:02 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx87DI6WFkaWtfAA--.34622S3; Mon, 15 May 2023 16:14:01 +0800 (CST) Subject: Re: [PATCH v9 2/2] spi: loongson: add bus driver for the loongson spi controller To: andy.shevchenko@gmail.com 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> <049c871d-c658-24c1-91e6-701098f5fc28@loongson.cn> From: zhuyinbo Message-ID: <16913b76-0256-492a-ec90-d367f2b52cc3@loongson.cn> Date: Mon, 15 May 2023 16:14:00 +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: <049c871d-c658-24c1-91e6-701098f5fc28@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx87DI6WFkaWtfAA--.34622S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoW7Wr4ruFWDtF13Ar1kJF4ktFb_yoWktrc_A3 y09F1fXrW8J3ykJFykJw43ua9rAa1UKr98tayjv3Wava47JFs7Kr15u3Z3tFWDGr47Jrnx Ary3urWa9345ZjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY z7CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2 IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84AC jcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84 ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc80 4VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67 AKxVWUXVWUAwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48I cVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l42xK82IYc2Ij64vIr41l42xK82IY6x8Erc xFaVAv8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2Iq xVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42 IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY 6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aV CY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUzgAwDUUUU X-Spam-Status: No, score=-5.7 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/11 下午3:18, zhuyinbo 写道: > > > 在 2023/5/8 下午11:04, andy.shevchenko@gmail.com 写道: >> >>> +config SPI_LOONGSON_CORE >>> +    tristate "Loongson SPI Controller Core Driver Support" >> >> Does it need to be visible to the user? > I try to set it invisible that by removing the SPI_LOONGSON_CORE Kconfig or removing "tristate "Loongson SPI Controller Core Driver Support" that will cause spi-core driver doesn't be compiled or compiled fail issue, so I will still set it visible to the user. >> >>> +    res = platform_get_resource(pdev, IORESOURCE_MEM, 0); >>> +    if (res == NULL) { >> >> Why not using devm_platform_ioremap_resource()? > okay, I will use it. >> >>> +        dev_err(dev, "cannot get io resource memory\n"); >>> +        return -ENOENT; >> >>     return dev_err_probe(); It seems that there is no need to print memory log when use devm_platform_ioremap_resource because this function had contained the this memory log print thus I will return PTR_ERR(reg_base). reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); Thanks. >> >>