Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ebfd8ac authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Remove useless atomic variables"

parents f013de9f 6ab191b4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -390,7 +390,6 @@ struct mhi_flags {
	u32 pending_M0;
	u32 link_up;
	u32 kill_threads;
	atomic_t mhi_link_off;
	atomic_t data_pending;
	atomic_t events_pending;
	atomic_t m0_work_enabled;
@@ -447,7 +446,6 @@ struct mhi_device_ctxt {
	struct mhi_state_work_queue state_change_work_item_list;
	enum MHI_CMD_STATUS mhi_chan_pend_cmd_ack[MHI_MAX_CHANNELS];

	atomic_t start_cmd_pending_ack;
	u32 cmd_ring_order;
	u32 alloced_ev_rings[EVENT_RINGS_ALLOCATED];
	u32 ev_ring_props[EVENT_RINGS_ALLOCATED];
+0 −1
Original line number Diff line number Diff line
@@ -1256,7 +1256,6 @@ enum MHI_STATUS parse_cmd_event(struct mhi_device_ctxt *mhi_dev_ctxt,
								cmd_pkt))
				mhi_log(MHI_MSG_INFO,
					"Failed to process reset cmd\n");
			atomic_dec(&mhi_dev_ctxt->start_cmd_pending_ack);
			wake_up_interruptible(
				mhi_dev_ctxt->chan_start_complete);
			break;
+0 −2
Original line number Diff line number Diff line
@@ -246,8 +246,6 @@ enum MHI_STATUS mhi_turn_on_pcie_link(struct mhi_device_ctxt *mhi_dev_ctxt)
		goto exit;
	}

	atomic_dec(&mhi_dev_ctxt->flags.mhi_link_off);

	r = pci_set_power_state(mhi_dev_ctxt->dev_info->pcie_device,
				PCI_D0);
	if (r) {