Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1036148rwd; Thu, 15 Jun 2023 05:40:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fmRLExJh528NndW53Ij153nrBwEI2p+tSElWvx1PWY+FzqG8Y+RhfxYsBYmy9qiFXUZLo X-Received: by 2002:a05:6a21:788b:b0:10b:7243:c212 with SMTP id bf11-20020a056a21788b00b0010b7243c212mr5078044pzc.42.1686832826223; Thu, 15 Jun 2023 05:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686832826; cv=none; d=google.com; s=arc-20160816; b=DNdkTMMlNMFyhJc3+pRiwlnqgvrloSXLQSrPfwYfsn+IPGZzKoLLyu4HGTjK/0O7Er 3ZZ3MgJ+80ejCYLLOKe2EPZb0S8FsakDhi3IXbLhV0mkn/wsRbiTtQtZRELGT4ve57vB 9yrIfUoNh8R1MDpJvKcWXSw3M5yQ5c+U+kgiqVHFRUAI9nPkzXGAz8AnLgn3W4ap+un7 WhiBxi4k5T91WM/94RKlN+EsfS3yAt7xgBjiD7XogKCUCxCdi8Z/sgzvbPi+qZsIW1Pj jhaut6dCGzX4NSBfwgLuyFekeaBbVmWIpQQglUp2UFAJ3UClzi5sj2/rSZOoKpcA3Y4n t/Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=xfj8BRTvTVfPA+pk/qKl0yBRRv4E7mfhb10ODg5ieK0=; b=Ov8X24BqYgubVBsVEhty6DSyva6ZMHQxk3iXzul/kj3ELgQYGL8hVfgq1i4Y5B9Hgw 8lFsmGHgKfu7rMlM0yfojYGdKZfUCv9z5yNld9YdEJEKyChv6NLyQk4HLhuxVBbhmmrz 9BoToZe4oRjgy/WrQguIXEawORlYYzUXhk4tlmRyyh+jzCOOH/wq9cLD4pgxUEvZIrD0 x3baVJAcVa3LS0/s6QakbPHC368WkvcfXFaL5kMeQQKrYDqNsgFt9tB+MUNQ1gRQ70aq Xncw3luv8WElpzh5S8LNyrjWjZcS3JHRZWxQUJEi/C1nnDipi1EDOG/ugGfBji3QHtJD MNFw== 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 s127-20020a625e85000000b0064d22da9421si12766204pfb.254.2023.06.15.05.40.13; Thu, 15 Jun 2023 05:40:26 -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 S1344404AbjFOMZ4 (ORCPT + 99 others); Thu, 15 Jun 2023 08:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345129AbjFOMZj (ORCPT ); Thu, 15 Jun 2023 08:25:39 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F05AA2702 for ; Thu, 15 Jun 2023 05:24:14 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.22]) by gateway (Coremail) with SMTP id _____8Cx+entAotkoY0FAA--.11910S3; Thu, 15 Jun 2023 20:24:13 +0800 (CST) Received: from [10.180.13.22] (unknown [10.180.13.22]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPMrsAotknPobAA--.4953S3; Thu, 15 Jun 2023 20:24:12 +0800 (CST) Message-ID: Date: Thu, 15 Jun 2023 20:23:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 1/3] ASoC: Add support for Loongson I2S controller To: Mark Brown Cc: lgirdwood@gmail.com, krzysztof.kozlowski@linaro.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, loongarch@lists.linux.dev, loongson-kernel@lists.loongnix.cn References: <20230614122140.3402749-1-mengyingkun@loongson.cn> <89022514-9f99-4fdc-9eba-d428ad0bcbb6@sirena.org.uk> Content-Language: en-US From: Yingkun Meng In-Reply-To: <89022514-9f99-4fdc-9eba-d428ad0bcbb6@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8AxPMrsAotknPobAA--.4953S3 X-CM-SenderInfo: 5phqw55lqjy33q6o00pqjv00gofq/1tbiAQADDGSJrgIcngABsM X-Coremail-Antispam: 1Uk129KBj9xXoWrtF4kCF45trW8Xw15Gr4rJFc_yoW3WFXE93 429F18C3yDWFy8Wr95Kr4kXryY9F9ru345Ga1ftrykJa4S9r93Xas7Cr929asIvFs2gFnI vr1qgF48Za4xuosvyTuYvTs0mTUanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r12 6r1DMcIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr4 1lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8q2NtUUUUU== 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 On 2023/6/15 19:30, Mark Brown wrote: > On Wed, Jun 14, 2023 at 08:21:40PM +0800, YingKun Meng wrote: >> From: Yingkun Meng >> >> Loongson I2S controller is found on 7axxx/2kxxx chips from loongson, >> it is a PCI device with two private DMA controllers, one for playback, >> the other for capture. >> >> The driver supports the use of DTS or ACPI to describe device resources. > One minor thing which can be done as an incremental patch: > >> +/* >> + * DMA registers descriptor. >> + */ >> +struct loongson_dma_desc { >> + u32 order; /* Next descriptor address register */ > This probably needs a __packed to ensure the layout doesn't get changed > by the compiler (eg, with struct randomisation options). OK, got it. Thanks, Yingkun