From patchwork Fri Feb 8 08:22:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10802479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3379817F0 for ; Fri, 8 Feb 2019 08:23:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25E832E168 for ; Fri, 8 Feb 2019 08:23:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19BBD2E245; Fri, 8 Feb 2019 08:23:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4D2A2E168 for ; Fri, 8 Feb 2019 08:23:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727215AbfBHIXC (ORCPT ); Fri, 8 Feb 2019 03:23:02 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34762 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727166AbfBHIXC (ORCPT ); Fri, 8 Feb 2019 03:23:02 -0500 Received: by mail-pg1-f196.google.com with SMTP id d9so1273946pgl.1 for ; Fri, 08 Feb 2019 00:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/iqPIoEQgUYoDkFLCtLN2gGtVaoJ7TVXmhyKHPsUCdQ=; b=MDihm2ZDqeCQz5PIH+sv2LY7nGAoj9s3vKldLnNSj3WxH+/dv3CSUdTfyQ0nBogYwR zybSk0Xge2RLHWb8z/taG28qryorEY4H3N4z1wQ+hqOS2CDjI1DsM4I5AcNuMEXnqC+z EPDhtRmev+UxuF5MIhqWq+mVcH62NCS1VAkHg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/iqPIoEQgUYoDkFLCtLN2gGtVaoJ7TVXmhyKHPsUCdQ=; b=A0Pqm9QIBZ9pRoSrji8sFA5yagtuzQu4iUgbTgJdFyYAGgWKjDl9nEHUGF9W5Mjk/q 5dfXp6qmMikcBivTpjDcN0Yq7qsCb6yYkOCkVbj3OeBzkhvk7qqE4sK00nnq5QRaFbPh AQ1FL8jeaIg3FxVAkOKOEM6g416TYH54sO32FSZ1sUTMAeSERj+SSv2tPGi+bcWt3LaU IruotaTa7XmXc4SthJOFzmYHQeGMRixNxT8VhtsabPnEnFmUD7MXrH0MupyPpLNC8KAj lfzeJcUwbJ7H4QZBpQhNO8m2hbiV9KxTNtV2e6N9KJ16MYdERMUvtdoO1RU1QitAfOma lzEg== X-Gm-Message-State: AHQUAubnb6jhOXLh6YxttvLPj7Awv30Vja4GMD6rRuKf2YTPEo7fiwMm L7fQ4D/JXpF5cZGKUJwYHEtorcYQVU4HM/rJuEcRWGoSYU3wUsKI9eq0U0ze4S5zRzUMhKnkaV9 j+3z9KURTVWE2lpq24MpotXDem9o20aiHV+dBRm6PYKMEz/7DfHlijvyBJd7bTbYlrh4ADAHExg YQnxpVjT/sQyln77xvcvI2Wyk= X-Google-Smtp-Source: AHgI3IbTQeOugUh2G1FT3mjqlrx0SOCfB1Si0idO7XLIziHVGjn8IjLNo9Vnt7rs41q1xrk1R++ifw== X-Received: by 2002:a63:2bc4:: with SMTP id r187mr19149826pgr.306.1549614181100; Fri, 08 Feb 2019 00:23:01 -0800 (PST) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x12sm1329986pgr.55.2019.02.08.00.22.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 00:23:00 -0800 (PST) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, kiran-kumar.kasturi@broadcom.com, sankar.patra@broadcom.com, sasikumar.pc@broadcom.com, Shivasharan S Subject: [PATCH 1/2] megaraid_sas: Update structures for HOST_DEVICE_LIST DCMD Date: Fri, 8 Feb 2019 00:22:46 -0800 Message-Id: <1549614167-1128-2-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1549614167-1128-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> References: <1549614167-1128-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add padding to make the structure variables in MR_HOST_DEVICE_LIST_ENTRY 64-bit aligned. Also, add reserved fields to MR_HOST_DEVICE_LIST for future firmware usage. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index fe1173f02c54..eb48ca17dca0 100644 --- a/drivers/scsi/megaraid/megaraid_sas.h +++ b/drivers/scsi/megaraid/megaraid_sas.h @@ -807,13 +807,14 @@ struct MR_HOST_DEVICE_LIST_ENTRY { } flags; u8 scsi_type; __le16 target_id; - u8 reserved[2]; + u8 reserved[4]; __le64 sas_addr[2]; } __packed; struct MR_HOST_DEVICE_LIST { __le32 size; __le32 count; + __le32 reserved[2]; struct MR_HOST_DEVICE_LIST_ENTRY host_device_list[1]; } __packed;