Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4040883rwb; Fri, 30 Sep 2022 11:54:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wNDj7+dP6QP761qNn9VxcwIl3G8oQL7PpA9XAD1M+Nrr2oF9l2U30y0MReC/0KIBqP0aO X-Received: by 2002:a17:907:3da3:b0:785:d09f:addd with SMTP id he35-20020a1709073da300b00785d09fadddmr7479081ejc.330.1664564094266; Fri, 30 Sep 2022 11:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664564094; cv=none; d=google.com; s=arc-20160816; b=rHUFylh3YazPfGv7W7k7FQ3KdKiZ7M8Xo8TDyBR+XFzTi9dJM0zagBjq9nTdzXvmaF Iogxl9zaAN7oAIA90mHal91drtuHN6s1yda837kEp3DBnX5RVCxZvwVLgotTG8+pEG1B rsdrIldBzcSLi0xF12UuB7kYxHpaNCxt5VdtRGrhOWVEsRlQ5TIk2c8N+AX2oojOF6H+ gzSA9JckomKAEEuSarDOIc0kYvirbODPEWtuLzahmVkU7i2lqIzFn7mZz5W3oRoGuUUN JlB69pNAZWzrT9lknlYCy7mlA+3LxKphuS8+lzlipKsV0/Pw5hVEoRrS8XqU+HPztMcz CsQQ== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=aFuTCSgiQ1q3axsguxuz+z/zfzJxetBKH5EU8cOHNE0=; b=l7ZVb5l10Ozbg81h+YqbFosUYY26edFGeAbn4Jb9YjGh73XTdi0AoPD7yOE6Dj+Ejd gIPPFpaZZ1o/1RxXhGzWrdSjKfhj53LdO7f8A9YM9JGNjgA5bBpNiVvSEBYDlEKBROsY dl6zo2smYxBsK9Wsw/6V0VWHqxXToHuYCnIpepgCsijaw/aOr1aUdUFFrOdcsGpoR306 ZTNlYM4n3OKs+0P/wzCYBOHO3lYgf9KjrEilHE9gYw5mn4wWv2sy9LssSV6hTeBq2W6n OIERqh20eBXxm7My9cCeYLQVD2A0wXVXP4kSYqDjWwQBhbrm/nj0LNobabgNnezGuQC1 LL+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b25-20020a170906151900b007835b614fa9si2036025ejd.245.2022.09.30.11.54.29; Fri, 30 Sep 2022 11:54:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbiI3Sm7 (ORCPT + 99 others); Fri, 30 Sep 2022 14:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbiI3Sm6 (ORCPT ); Fri, 30 Sep 2022 14:42:58 -0400 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715B41B7D81; Fri, 30 Sep 2022 11:42:57 -0700 (PDT) Received: by mail-pl1-f176.google.com with SMTP id c24so4703164plo.3; Fri, 30 Sep 2022 11:42:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=aFuTCSgiQ1q3axsguxuz+z/zfzJxetBKH5EU8cOHNE0=; b=8SIAVzwT9wehcB5zg4cImwVG3BTRacWVc/GxAnPKJumy3K/DSuI5xyYncJWYho7qnK sVBD8mXkdofs+9A6PFm6p4lCQt4PpRbwIb8hk+a+t0O8nCiAej2lalNeTo3fEGPwD6Hn aRdQwmrHilSnjA/ZmKxHF4p/cxVYIvJfAinVQPv0noHW/QIJCWF52nBphGrVLlRxZ83H Ks+3lGJXRD9puB53J77UNhmwVmqYRt8Gn5YDf/GRfLQoFYIv3jc4SCEr8ALbMu7eVe9l WAMmWpTMFb7GJdlSHfcvC6PRA1f9PVmOa+FKyjZgB1eojNEkVoS0gqAr0bi04893/GyX UArg== X-Gm-Message-State: ACrzQf3HP3Fo590v4TspFyXqYYFaR7DzSK5XxactKwuAKIOQYK8Iltgq uHQwa89fkKszAnZ2BZnoKtU= X-Received: by 2002:a17:902:7897:b0:178:9292:57b9 with SMTP id q23-20020a170902789700b00178929257b9mr10403947pll.102.1664563376850; Fri, 30 Sep 2022 11:42:56 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:56f2:482f:20c2:1d35? ([2620:15c:211:201:56f2:482f:20c2:1d35]) by smtp.gmail.com with ESMTPSA id e10-20020a17090301ca00b00172d9f6e22bsm2291650plh.15.2022.09.30.11.42.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Sep 2022 11:42:56 -0700 (PDT) Message-ID: <2a25bce5-aad2-cc01-5879-73005cafb371@acm.org> Date: Fri, 30 Sep 2022 11:42:53 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v1 05/16] ufs: core: mcq: Configure resource regions Content-Language: en-US To: Asutosh Das , mani@kernel.org, quic_nguyenb@quicinc.com, quic_xiaosenh@quicinc.com, quic_cang@quicinc.com, quic_nitirawa@quicinc.com, quic_rampraka@quicinc.com, quic_richardp@quicinc.com, stanley.chu@mediatek.com, adrian.hunter@intel.com, avri.altman@wdc.com, beanhuo@micron.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Matthias Brugger , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" References: <4d4df6ad6353b93253fb22deefb772dc59f5c84e.1663894792.git.quic_asutoshd@quicinc.com> From: Bart Van Assche In-Reply-To: <4d4df6ad6353b93253fb22deefb772dc59f5c84e.1663894792.git.quic_asutoshd@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS 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 9/22/22 18:05, Asutosh Das wrote: > +/* Resources */ > +static const struct ufshcd_res_info_t ufshcd_res_info[RES_MAX] = { > + {.name = "ufs_mem", .resource = NULL, .base = NULL}, > + {.name = "mcq", .resource = NULL, .base = NULL}, > + /* Submission Queue DAO */ > + {.name = "mcq_sqd", .resource = NULL, .base = NULL}, > + /* Submission Queue Interrupt Status */ > + {.name = "mcq_sqis", .resource = NULL, .base = NULL}, > + /* Completion Queue DAO */ > + {.name = "mcq_cqd", .resource = NULL, .base = NULL}, > + /* Completion Queue Interrupt Status */ > + {.name = "mcq_cqis", .resource = NULL, .base = NULL}, > + /* MCQ vendor specific */ > + {.name = "mcq_vs", .resource = NULL, .base = NULL}, > +}; Please leave out the members that are NULL (.resource and .base) since the compiler will initialize these for you. > /** > + * struct ufshcd_res_info_t - MCQ related resource regions > + * > + * @name: resource name > + * @resource: pointer to resource region > + * @base: register base address > + */ > +struct ufshcd_res_info_t { > + const char *name; > + struct resource *resource; > + void __iomem *base; > +}; Please remove the suffix "_t" since that suffix is typically used for typedefs and not for data structures. Thanks, Bart.