Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1697768rwd; Fri, 9 Jun 2023 00:24:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Wzz/hZlR9VwRDGhEXcH26GA96YIOxqRvq2EaO9UN7/h9MT9lhYhTQNxmQRd3HQXNhxY3U X-Received: by 2002:a05:6a21:29c1:b0:119:9d1d:150f with SMTP id tv1-20020a056a2129c100b001199d1d150fmr78591pzb.47.1686295452892; Fri, 09 Jun 2023 00:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686295452; cv=none; d=google.com; s=arc-20160816; b=T/7/7hC9PS9p2KrORFjDspsDfiKpdoG5N4jQoMAUfaR7HEMczekfUD0+yBw+X5sc3v xmlRfx1FaslMwAXXP2TCg0+U/Wzd5Fmm6ci8PYPImozfViBCFyoykOEvEETokttJHGnm 2iHPIDjQsOUsouLvuEbg0kNSBVBFbTCACpetIvnFMCVh2pvbNN+h+SSgAMJeZghfwtLL oZOpnUly1gRFyXmwHF7P7DgbUBAD50JMz6bab5worYX55ZFUBl67q7SMhRyOxLCXLM1S vmHkmGebFMtwosiZDXe9BDmczv3nHysau8zTVkrGaRaFiAqAbAWjf9tFTsQm3jHh+Nwf Abcw== 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=jYi1By8rrU9hxVTH4fiNsMvBvvsVzCBYbVCvWdXwVIU=; b=fKVQkzVFQ50HMN6zZihlX2BzpOkqbrTj5NKT+vbi4P+Ree6x33SAMe2Iz7jIxdZyyk nhLg1NLXKWtWQ0174vTEXEMS8aR/11l88ZD28ncpqtP0ZCYziivaukG4KX9Tw8Hk5Ilk h+zKFLBm1HSxb7VbZMY2cqnsZHw1qmnq6QUvJ6FjLjte3wAB6Ge5eAyQIx1bz75fFlo1 DgiCZ3JCZWP+9JsFMk0e+oKQHwNvtlvkOcFkekw70wWrOb0nbMSanbl9LgAqNE7WooBQ nna3W5+6Jl3NZkYfBimL1Jd9zRxdhEk1o+JTxwdDjH0rPKTh2BaovRzGtOkVQExVuLPQ Aj0g== 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 d5-20020a170902854500b001b34159f341si2247367plo.596.2023.06.09.00.24.00; Fri, 09 Jun 2023 00:24:12 -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 S237763AbjFIHNX (ORCPT + 99 others); Fri, 9 Jun 2023 03:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbjFIHNW (ORCPT ); Fri, 9 Jun 2023 03:13:22 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E98DF271D; Fri, 9 Jun 2023 00:13:19 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8DxSuoO0YJkZPIAAA--.2912S3; Fri, 09 Jun 2023 15:13:18 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxKeUO0YJkIRYKAA--.30952S3; Fri, 09 Jun 2023 15:13:18 +0800 (CST) Subject: Re: [PATCH v12 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: <20230608072819.25930-1-zhuyinbo@loongson.cn> <20230608072819.25930-3-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: Date: Fri, 9 Jun 2023 15:13:18 +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: AQAAf8AxKeUO0YJkIRYKAA--.30952S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,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/6/8 下午6:18, Andy Shevchenko 写道: > On Thu, Jun 8, 2023 at 1:15 PM Andy Shevchenko > wrote: >> On Thu, Jun 8, 2023 at 10:28 AM Yinbo Zhu wrote: >>> + ret = readb_poll_timeout(loongson_spi->base + LOONGSON_SPI_SPSR_REG, loongson_spi->spsr, >>> + (loongson_spi->spsr & 0x1) != LOONGSON_SPI_SPSR_RFEMPTY, 1, MSEC_PER_SEC); >> >> (loongson_spi->spsr & >> LOONGSON_SPI_SPSR_RFEMPTY) != LOONGSON_SPI_SPSR_RFEMPTY, >> 1, MSEC_PER_SEC); > > Actually the last should be USEC_PER_MSEC, as the parameter is in microseconds. okay, I got it. Thanks >