From patchwork Tue Jun 5 06:16:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 137684 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp563629lji; Mon, 4 Jun 2018 23:16:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL/BS7P5Qd8LBUddr5Fx8LvSbnVvh314Qtj+JXqClDvw7qg3jrwPV6QBWl0qRHkmnzg3ZIc X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr25315095pla.276.1528179411393; Mon, 04 Jun 2018 23:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528179411; cv=none; d=google.com; s=arc-20160816; b=NQNF4G9bMhclBy/CcOvzGxOypVv4AVwEbWAEUTvhuTagNOunEndzd6TibIpGJmFPsc CwfjGD2F+YZ/GBrRl0BlCHiy7alW7fGaADalgptCIeD9FLSoJPW+F8jlrSJLCPAl1F8O b21TCQoSFwOyYg+1h4Zr/ib8U0KdorrV097NHJkcTrXT8ryvEin0c/o6e6hvaHr8VKcn MBqC+joOrRQ3DcZf6aQXILv/OotZFhcQYaWOE8jTglT6MmloqQVx+6fFWdDvmEDtlqRu 0HStNR6Qpvw4ndncgIha8HhfizIZrMJpA/RCAYitychTIlYd7pHUvufrOzSC9uEfHun6 1jMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=a/ty0DiMEEKCXvjCWXYShDD1tZXsbXLyP4gkvvzQy2Y=; b=UATwvcYEPJLLQEbvfccDP76Y3s9eN9u5E6R7gRlYgAxTZXnm6OmrxA0JFNAybzkcRT JZoFdoWywj+YMliaOCXsK0kGSiuFf0uleZ4eSta1gNVTlozgvn1dBK3yKFrqCTzyApy9 5I2pXrIWTcB8eOhCHFQbfkl+JXHDJPWS2cd6Jr6eV3RQBy0wP7oRhwDKzZSt0mn+Q6k/ iXFDBjZ5gqIqKEONJHVVY/AHpysH41jORxU3ygyPKUxbMEztr8I3Frec43FpKiPXKcPb 27P9q2ocooPzNI5CWxPSYKo+pWb+ThHE4bcH00TZCn5ZhrGiIuxWliyoErQNfwCffbLw kufA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rrMjCsg7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a65-v6si12929005pge.133.2018.06.04.23.16.51; Mon, 04 Jun 2018 23:16:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rrMjCsg7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbeFEGQt (ORCPT + 30 others); Tue, 5 Jun 2018 02:16:49 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:37245 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbeFEGQq (ORCPT ); Tue, 5 Jun 2018 02:16:46 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w556GT1C001007; Tue, 5 Jun 2018 01:16:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528179389; bh=a/ty0DiMEEKCXvjCWXYShDD1tZXsbXLyP4gkvvzQy2Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rrMjCsg7A9Ul9ZvjI6xd8NTtyxhHo039Y7x7tebhDV1BFLgrHwbdDZafsoo/WMADE 8z7AUcKly2628zqxHcoT9YcPFROKlO70jQYuWq3HPS6obYMAe+q0xjId5Trxw3Rfoy rciCRtQRJx1r9vWaoyU3qYf6XXgoLlHmetQHyx+0= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GTPt015138; Tue, 5 Jun 2018 01:16:29 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 5 Jun 2018 01:16:29 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 5 Jun 2018 01:16:29 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GT0r016942; Tue, 5 Jun 2018 01:16:29 -0500 From: Nishanth Menon To: Jassi Brar , Rob Herring CC: , , , Nishanth Menon , Tero Kristo , Suman Anna Subject: [RFC PATCH 1/8] mailbox: ti-msgmgr: Get rid of unused structure members Date: Tue, 5 Jun 2018 01:16:22 -0500 Message-ID: <20180605061629.4759-2-nm@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180605061629.4759-1-nm@ti.com> References: <20180605061629.4759-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Though q_proxies and q_slices do describe the hardware configuration, they are not necessary for operation given that the values are always default. Hence drop the same. Signed-off-by: Nishanth Menon --- drivers/mailbox/ti-msgmgr.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.15.1 diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c index 78753a87ba4d..7cd5f9c9c97f 100644 --- a/drivers/mailbox/ti-msgmgr.c +++ b/drivers/mailbox/ti-msgmgr.c @@ -42,8 +42,6 @@ struct ti_msgmgr_valid_queue_desc { * @queue_count: Number of Queues * @max_message_size: Message size in bytes * @max_messages: Number of messages - * @q_slices: Number of queue engines - * @q_proxies: Number of queue proxies per page * @data_first_reg: First data register for proxy data region * @data_last_reg: Last data register for proxy data region * @tx_polled: Do I need to use polled mechanism for tx @@ -58,8 +56,6 @@ struct ti_msgmgr_desc { u8 queue_count; u8 max_message_size; u8 max_messages; - u8 q_slices; - u8 q_proxies; u8 data_first_reg; u8 data_last_reg; bool tx_polled; @@ -494,8 +490,6 @@ static const struct ti_msgmgr_desc k2g_desc = { .queue_count = 64, .max_message_size = 64, .max_messages = 128, - .q_slices = 1, - .q_proxies = 1, .data_first_reg = 16, .data_last_reg = 31, .tx_polled = false,