Lines Matching full:ssi

27 /* SSI REGISTER BITS */
85 int fifo_sample_size; /* sample capacity of SSI FIFO */
97 int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm);
117 * The SSI supports full-duplex transmission and reception.
174 static inline bool rz_ssi_stream_is_play(struct rz_ssi_priv *ssi, in rz_ssi_stream_is_play() argument
181 rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream) in rz_ssi_stream_get() argument
183 struct rz_ssi_stream *stream = &ssi->playback; in rz_ssi_stream_get()
186 stream = &ssi->capture; in rz_ssi_stream_get()
191 static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi) in rz_ssi_is_dma_enabled() argument
193 return (ssi->playback.dma_ch && (ssi->dma_rt || ssi->capture.dma_ch)); in rz_ssi_is_dma_enabled()
199 struct rz_ssi_priv *ssi = strm->priv; in rz_ssi_set_substream() local
202 spin_lock_irqsave(&ssi->lock, flags); in rz_ssi_set_substream()
204 spin_unlock_irqrestore(&ssi->lock, flags); in rz_ssi_set_substream()
207 static bool rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, in rz_ssi_stream_is_valid() argument
213 spin_lock_irqsave(&ssi->lock, flags); in rz_ssi_stream_is_valid()
215 spin_unlock_irqrestore(&ssi->lock, flags); in rz_ssi_stream_is_valid()
244 static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi, in rz_ssi_stream_quit() argument
258 static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, in rz_ssi_clk_setup() argument
271 rz_ssi_reg_writel(ssi, SSIFCR, 0); in rz_ssi_clk_setup()
274 rz_ssi_reg_writel(ssi, SSIOFR, SSIOFR_LRCONT); in rz_ssi_clk_setup()
275 if (ssi->audio_clk_1 && ssi->audio_clk_2) { in rz_ssi_clk_setup()
276 if (ssi->audio_clk_1 % bclk_rate) in rz_ssi_clk_setup()
277 ssi->audio_mck = ssi->audio_clk_2; in rz_ssi_clk_setup()
279 ssi->audio_mck = ssi->audio_clk_1; in rz_ssi_clk_setup()
284 if (ssi->audio_mck == ssi->audio_clk_1) in rz_ssi_clk_setup()
286 if (ssi->bckp_rise) in rz_ssi_clk_setup()
288 if (ssi->lrckp_fsync_fall) in rz_ssi_clk_setup()
293 div = ssi->audio_mck / bclk_rate; in rz_ssi_clk_setup()
303 dev_err(ssi->dev, "Rate not divisible by audio clock source\n"); in rz_ssi_clk_setup()
313 rz_ssi_reg_writel(ssi, SSICR, ssicr); in rz_ssi_clk_setup()
314 rz_ssi_reg_writel(ssi, SSIFCR, in rz_ssi_clk_setup()
320 static void rz_ssi_set_idle(struct rz_ssi_priv *ssi) in rz_ssi_set_idle() argument
325 rz_ssi_reg_mask_setl(ssi, SSICR, SSICR_TUIEN | SSICR_TOIEN | in rz_ssi_set_idle()
327 rz_ssi_reg_mask_setl(ssi, SSIFCR, SSIFCR_TIE | SSIFCR_RIE, 0); in rz_ssi_set_idle()
330 rz_ssi_reg_mask_setl(ssi, SSISR, in rz_ssi_set_idle()
337 if (rz_ssi_reg_readl(ssi, SSISR) & SSISR_IIRQ) in rz_ssi_set_idle()
343 dev_info(ssi->dev, "timeout waiting for SSI idle\n"); in rz_ssi_set_idle()
346 rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, in rz_ssi_set_idle()
350 static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) in rz_ssi_start() argument
352 bool is_play = rz_ssi_stream_is_play(ssi, strm->substream); in rz_ssi_start()
356 is_full_duplex = rz_ssi_is_stream_running(&ssi->playback) || in rz_ssi_start()
357 rz_ssi_is_stream_running(&ssi->capture); in rz_ssi_start()
358 ssicr = rz_ssi_reg_readl(ssi, SSICR); in rz_ssi_start()
359 ssifcr = rz_ssi_reg_readl(ssi, SSIFCR); in rz_ssi_start()
363 rz_ssi_reg_mask_setl(ssi, SSICR, SSICR_TEN | SSICR_REN, 0); in rz_ssi_start()
364 rz_ssi_set_idle(ssi); in rz_ssi_start()
369 if (rz_ssi_is_dma_enabled(ssi)) in rz_ssi_start()
370 rz_ssi_reg_writel(ssi, SSISCR, 0); in rz_ssi_start()
372 rz_ssi_reg_writel(ssi, SSISCR, in rz_ssi_start()
389 rz_ssi_reg_writel(ssi, SSICR, ssicr); in rz_ssi_start()
390 rz_ssi_reg_writel(ssi, SSIFCR, ssifcr); in rz_ssi_start()
393 rz_ssi_reg_mask_setl(ssi, SSISR, in rz_ssi_start()
403 rz_ssi_reg_writel(ssi, SSICR, ssicr); in rz_ssi_start()
408 static int rz_ssi_stop(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) in rz_ssi_stop() argument
412 if (rz_ssi_is_stream_running(&ssi->playback) || in rz_ssi_stop()
413 rz_ssi_is_stream_running(&ssi->capture)) in rz_ssi_stop()
417 rz_ssi_reg_mask_setl(ssi, SSICR, SSICR_TEN | SSICR_REN, 0); in rz_ssi_stop()
420 if (rz_ssi_is_dma_enabled(ssi)) in rz_ssi_stop()
423 rz_ssi_set_idle(ssi); in rz_ssi_stop()
452 static int rz_ssi_pio_recv(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) in rz_ssi_pio_recv() argument
462 if (!rz_ssi_stream_is_valid(ssi, strm)) in rz_ssi_pio_recv()
475 fifo_samples = (rz_ssi_reg_readl(ssi, SSIFSR) >> in rz_ssi_pio_recv()
496 *buf++ = (u16)(rz_ssi_reg_readl(ssi, SSIFRDR) >> 16); in rz_ssi_pio_recv()
498 rz_ssi_reg_mask_setl(ssi, SSIFSR, SSIFSR_RDF, 0); in rz_ssi_pio_recv()
505 static int rz_ssi_pio_send(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) in rz_ssi_pio_send() argument
516 if (!rz_ssi_stream_is_valid(ssi, strm)) in rz_ssi_pio_send()
526 ssifsr = rz_ssi_reg_readl(ssi, SSIFSR); in rz_ssi_pio_send()
546 rz_ssi_reg_writel(ssi, SSIFTDR, ((u32)(*buf++) << 16)); in rz_ssi_pio_send()
548 rz_ssi_reg_mask_setl(ssi, SSIFSR, SSIFSR_TDE, 0); in rz_ssi_pio_send()
558 struct rz_ssi_priv *ssi = data; in rz_ssi_interrupt() local
559 u32 ssisr = rz_ssi_reg_readl(ssi, SSISR); in rz_ssi_interrupt()
561 if (ssi->playback.substream) in rz_ssi_interrupt()
562 strm_playback = &ssi->playback; in rz_ssi_interrupt()
563 if (ssi->capture.substream) in rz_ssi_interrupt()
564 strm_capture = &ssi->capture; in rz_ssi_interrupt()
569 if (irq == ssi->irq_int) { /* error or idle */ in rz_ssi_interrupt()
573 if (rz_ssi_is_dma_enabled(ssi)) in rz_ssi_interrupt()
581 if (ssi->capture.substream && is_stopped) { in rz_ssi_interrupt()
587 rz_ssi_stop(ssi, strm_capture); in rz_ssi_interrupt()
590 if (ssi->playback.substream && is_stopped) { in rz_ssi_interrupt()
596 rz_ssi_stop(ssi, strm_playback); in rz_ssi_interrupt()
600 rz_ssi_reg_mask_setl(ssi, SSISR, SSISR_TOIRQ | SSISR_TUIRQ | in rz_ssi_interrupt()
604 if (ssi->capture.substream && is_stopped) { in rz_ssi_interrupt()
606 strm_capture->transfer(ssi, strm_capture); in rz_ssi_interrupt()
609 if (ssi->playback.substream && is_stopped) { in rz_ssi_interrupt()
611 strm_playback->transfer(ssi, strm_playback); in rz_ssi_interrupt()
615 if (ssi->playback.substream && is_stopped) in rz_ssi_interrupt()
616 rz_ssi_start(ssi, &ssi->playback); in rz_ssi_interrupt()
617 if (ssi->capture.substream && is_stopped) in rz_ssi_interrupt()
618 rz_ssi_start(ssi, &ssi->capture); in rz_ssi_interrupt()
621 if (!rz_ssi_is_stream_running(&ssi->playback) && in rz_ssi_interrupt()
622 !rz_ssi_is_stream_running(&ssi->capture)) in rz_ssi_interrupt()
626 if (irq == ssi->irq_tx && rz_ssi_is_stream_running(&ssi->playback)) in rz_ssi_interrupt()
627 strm_playback->transfer(ssi, &ssi->playback); in rz_ssi_interrupt()
630 if (irq == ssi->irq_rx && rz_ssi_is_stream_running(&ssi->capture)) { in rz_ssi_interrupt()
631 strm_capture->transfer(ssi, &ssi->capture); in rz_ssi_interrupt()
632 rz_ssi_reg_mask_setl(ssi, SSIFSR, SSIFSR_RDF, 0); in rz_ssi_interrupt()
635 if (irq == ssi->irq_rt) { in rz_ssi_interrupt()
636 if (ssi->playback.substream) { in rz_ssi_interrupt()
637 strm_playback->transfer(ssi, &ssi->playback); in rz_ssi_interrupt()
639 strm_capture->transfer(ssi, &ssi->capture); in rz_ssi_interrupt()
640 rz_ssi_reg_mask_setl(ssi, SSIFSR, SSIFSR_RDF, 0); in rz_ssi_interrupt()
647 static int rz_ssi_dma_slave_config(struct rz_ssi_priv *ssi, in rz_ssi_dma_slave_config() argument
655 cfg.dst_addr = ssi->phys + SSIFTDR; in rz_ssi_dma_slave_config()
656 cfg.src_addr = ssi->phys + SSIFRDR; in rz_ssi_dma_slave_config()
663 static int rz_ssi_dma_transfer(struct rz_ssi_priv *ssi, in rz_ssi_dma_transfer() argument
673 if (!rz_ssi_stream_is_valid(ssi, strm)) in rz_ssi_dma_transfer()
685 dir = rz_ssi_stream_is_play(ssi, substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; in rz_ssi_dma_transfer()
698 dev_err(ssi->dev, "dmaengine_prep_slave_single() fail\n"); in rz_ssi_dma_transfer()
706 dev_err(ssi->dev, "dmaengine_submit() fail\n"); in rz_ssi_dma_transfer()
735 static void rz_ssi_release_dma_channels(struct rz_ssi_priv *ssi) in rz_ssi_release_dma_channels() argument
737 if (ssi->playback.dma_ch) { in rz_ssi_release_dma_channels()
738 dma_release_channel(ssi->playback.dma_ch); in rz_ssi_release_dma_channels()
739 ssi->playback.dma_ch = NULL; in rz_ssi_release_dma_channels()
740 if (ssi->dma_rt) in rz_ssi_release_dma_channels()
741 ssi->dma_rt = false; in rz_ssi_release_dma_channels()
744 if (ssi->capture.dma_ch) { in rz_ssi_release_dma_channels()
745 dma_release_channel(ssi->capture.dma_ch); in rz_ssi_release_dma_channels()
746 ssi->capture.dma_ch = NULL; in rz_ssi_release_dma_channels()
750 static int rz_ssi_dma_request(struct rz_ssi_priv *ssi, struct device *dev) in rz_ssi_dma_request() argument
752 ssi->playback.dma_ch = dma_request_chan(dev, "tx"); in rz_ssi_dma_request()
753 if (IS_ERR(ssi->playback.dma_ch)) in rz_ssi_dma_request()
754 ssi->playback.dma_ch = NULL; in rz_ssi_dma_request()
756 ssi->capture.dma_ch = dma_request_chan(dev, "rx"); in rz_ssi_dma_request()
757 if (IS_ERR(ssi->capture.dma_ch)) in rz_ssi_dma_request()
758 ssi->capture.dma_ch = NULL; in rz_ssi_dma_request()
760 if (!ssi->playback.dma_ch && !ssi->capture.dma_ch) { in rz_ssi_dma_request()
761 ssi->playback.dma_ch = dma_request_chan(dev, "rt"); in rz_ssi_dma_request()
762 if (IS_ERR(ssi->playback.dma_ch)) { in rz_ssi_dma_request()
763 ssi->playback.dma_ch = NULL; in rz_ssi_dma_request()
767 ssi->dma_rt = true; in rz_ssi_dma_request()
770 if (!rz_ssi_is_dma_enabled(ssi)) in rz_ssi_dma_request()
773 if (ssi->playback.dma_ch && in rz_ssi_dma_request()
774 (rz_ssi_dma_slave_config(ssi, ssi->playback.dma_ch, true) < 0)) in rz_ssi_dma_request()
777 if (ssi->capture.dma_ch && in rz_ssi_dma_request()
778 (rz_ssi_dma_slave_config(ssi, ssi->capture.dma_ch, false) < 0)) in rz_ssi_dma_request()
784 rz_ssi_release_dma_channels(ssi); in rz_ssi_dma_request()
792 struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); in rz_ssi_dai_trigger() local
793 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); in rz_ssi_dai_trigger()
799 if (!rz_ssi_is_stream_running(&ssi->playback) && in rz_ssi_dai_trigger()
800 !rz_ssi_is_stream_running(&ssi->capture)) { in rz_ssi_dai_trigger()
801 rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, SSIFCR_SSIRST); in rz_ssi_dai_trigger()
802 rz_ssi_reg_mask_setl(ssi, SSIFCR, SSIFCR_SSIRST, 0); in rz_ssi_dai_trigger()
808 if (ssi->dma_rt) { in rz_ssi_dai_trigger()
811 is_playback = rz_ssi_stream_is_play(ssi, substream); in rz_ssi_dai_trigger()
812 ret = rz_ssi_dma_slave_config(ssi, ssi->playback.dma_ch, in rz_ssi_dai_trigger()
816 ssi->playback.transfer = rz_ssi_pio_send; in rz_ssi_dai_trigger()
817 ssi->capture.transfer = rz_ssi_pio_recv; in rz_ssi_dai_trigger()
818 rz_ssi_release_dma_channels(ssi); in rz_ssi_dai_trigger()
823 if (rz_ssi_is_dma_enabled(ssi)) in rz_ssi_dai_trigger()
827 ret = strm->transfer(ssi, strm); in rz_ssi_dai_trigger()
832 ret = rz_ssi_start(ssi, strm); in rz_ssi_dai_trigger()
835 rz_ssi_stop(ssi, strm); in rz_ssi_dai_trigger()
836 rz_ssi_stream_quit(ssi, strm); in rz_ssi_dai_trigger()
846 struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); in rz_ssi_dai_set_fmt() local
852 dev_err(ssi->dev, "Codec should be clk and frame consumer\n"); in rz_ssi_dai_set_fmt()
864 ssi->bckp_rise = false; in rz_ssi_dai_set_fmt()
865 ssi->lrckp_fsync_fall = false; in rz_ssi_dai_set_fmt()
868 ssi->bckp_rise = false; in rz_ssi_dai_set_fmt()
869 ssi->lrckp_fsync_fall = true; in rz_ssi_dai_set_fmt()
872 ssi->bckp_rise = true; in rz_ssi_dai_set_fmt()
873 ssi->lrckp_fsync_fall = false; in rz_ssi_dai_set_fmt()
876 ssi->bckp_rise = true; in rz_ssi_dai_set_fmt()
877 ssi->lrckp_fsync_fall = true; in rz_ssi_dai_set_fmt()
888 dev_err(ssi->dev, "Only I2S mode is supported.\n"); in rz_ssi_dai_set_fmt()
895 static bool rz_ssi_is_valid_hw_params(struct rz_ssi_priv *ssi, unsigned int rate, in rz_ssi_is_valid_hw_params() argument
900 if (ssi->hw_params_cache.rate != rate || in rz_ssi_is_valid_hw_params()
901 ssi->hw_params_cache.channels != channels || in rz_ssi_is_valid_hw_params()
902 ssi->hw_params_cache.sample_width != sample_width || in rz_ssi_is_valid_hw_params()
903 ssi->hw_params_cache.sample_bits != sample_bits) in rz_ssi_is_valid_hw_params()
909 static void rz_ssi_cache_hw_params(struct rz_ssi_priv *ssi, unsigned int rate, in rz_ssi_cache_hw_params() argument
914 ssi->hw_params_cache.rate = rate; in rz_ssi_cache_hw_params()
915 ssi->hw_params_cache.channels = channels; in rz_ssi_cache_hw_params()
916 ssi->hw_params_cache.sample_width = sample_width; in rz_ssi_cache_hw_params()
917 ssi->hw_params_cache.sample_bits = sample_bits; in rz_ssi_cache_hw_params()
924 struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); in rz_ssi_dai_hw_params() local
925 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); in rz_ssi_dai_hw_params()
932 dev_err(ssi->dev, "Unsupported sample width: %d\n", in rz_ssi_dai_hw_params()
938 dev_err(ssi->dev, "Number of channels not matched: %d\n", in rz_ssi_dai_hw_params()
943 if (rz_ssi_is_stream_running(&ssi->playback) || in rz_ssi_dai_hw_params()
944 rz_ssi_is_stream_running(&ssi->capture)) { in rz_ssi_dai_hw_params()
945 if (rz_ssi_is_valid_hw_params(ssi, rate, channels, in rz_ssi_dai_hw_params()
949 dev_err(ssi->dev, "Full duplex needs same HW params\n"); in rz_ssi_dai_hw_params()
953 rz_ssi_cache_hw_params(ssi, rate, channels, strm->sample_width, in rz_ssi_dai_hw_params()
956 return rz_ssi_clk_setup(ssi, rate, channels); in rz_ssi_dai_hw_params()
992 struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); in rz_ssi_pcm_pointer() local
993 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); in rz_ssi_pcm_pointer()
1009 .name = "rz-ssi-dai",
1027 .name = "rz-ssi",
1036 struct rz_ssi_priv *ssi; in rz_ssi_probe() local
1041 ssi = devm_kzalloc(&pdev->dev, sizeof(*ssi), GFP_KERNEL); in rz_ssi_probe()
1042 if (!ssi) in rz_ssi_probe()
1045 ssi->pdev = pdev; in rz_ssi_probe()
1046 ssi->dev = &pdev->dev; in rz_ssi_probe()
1047 ssi->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in rz_ssi_probe()
1048 if (IS_ERR(ssi->base)) in rz_ssi_probe()
1049 return PTR_ERR(ssi->base); in rz_ssi_probe()
1051 ssi->phys = res->start; in rz_ssi_probe()
1052 ssi->clk = devm_clk_get(&pdev->dev, "ssi"); in rz_ssi_probe()
1053 if (IS_ERR(ssi->clk)) in rz_ssi_probe()
1054 return PTR_ERR(ssi->clk); in rz_ssi_probe()
1056 ssi->sfr_clk = devm_clk_get(&pdev->dev, "ssi_sfr"); in rz_ssi_probe()
1057 if (IS_ERR(ssi->sfr_clk)) in rz_ssi_probe()
1058 return PTR_ERR(ssi->sfr_clk); in rz_ssi_probe()
1065 ssi->audio_clk_1 = clk_get_rate(audio_clk); in rz_ssi_probe()
1071 ssi->audio_clk_2 = clk_get_rate(audio_clk); in rz_ssi_probe()
1072 if (!(ssi->audio_clk_1 || ssi->audio_clk_2)) in rz_ssi_probe()
1076 ssi->audio_mck = ssi->audio_clk_1 ? ssi->audio_clk_1 : ssi->audio_clk_2; in rz_ssi_probe()
1079 ret = rz_ssi_dma_request(ssi, &pdev->dev); in rz_ssi_probe()
1082 ssi->playback.transfer = rz_ssi_pio_send; in rz_ssi_probe()
1083 ssi->capture.transfer = rz_ssi_pio_recv; in rz_ssi_probe()
1086 ssi->playback.transfer = rz_ssi_dma_transfer; in rz_ssi_probe()
1087 ssi->capture.transfer = rz_ssi_dma_transfer; in rz_ssi_probe()
1090 ssi->playback.priv = ssi; in rz_ssi_probe()
1091 ssi->capture.priv = ssi; in rz_ssi_probe()
1093 spin_lock_init(&ssi->lock); in rz_ssi_probe()
1094 dev_set_drvdata(&pdev->dev, ssi); in rz_ssi_probe()
1097 ssi->irq_int = platform_get_irq_byname(pdev, "int_req"); in rz_ssi_probe()
1098 if (ssi->irq_int < 0) { in rz_ssi_probe()
1099 rz_ssi_release_dma_channels(ssi); in rz_ssi_probe()
1100 return ssi->irq_int; in rz_ssi_probe()
1103 ret = devm_request_irq(&pdev->dev, ssi->irq_int, &rz_ssi_interrupt, in rz_ssi_probe()
1104 0, dev_name(&pdev->dev), ssi); in rz_ssi_probe()
1106 rz_ssi_release_dma_channels(ssi); in rz_ssi_probe()
1111 if (!rz_ssi_is_dma_enabled(ssi)) { in rz_ssi_probe()
1113 ssi->irq_tx = platform_get_irq_byname(pdev, "dma_tx"); in rz_ssi_probe()
1114 ssi->irq_rx = platform_get_irq_byname(pdev, "dma_rx"); in rz_ssi_probe()
1115 if (ssi->irq_tx == -ENXIO && ssi->irq_rx == -ENXIO) { in rz_ssi_probe()
1116 ssi->irq_rt = platform_get_irq_byname(pdev, "dma_rt"); in rz_ssi_probe()
1117 if (ssi->irq_rt < 0) in rz_ssi_probe()
1118 return ssi->irq_rt; in rz_ssi_probe()
1120 ret = devm_request_irq(&pdev->dev, ssi->irq_rt, in rz_ssi_probe()
1122 dev_name(&pdev->dev), ssi); in rz_ssi_probe()
1127 if (ssi->irq_tx < 0) in rz_ssi_probe()
1128 return ssi->irq_tx; in rz_ssi_probe()
1130 if (ssi->irq_rx < 0) in rz_ssi_probe()
1131 return ssi->irq_rx; in rz_ssi_probe()
1133 ret = devm_request_irq(&pdev->dev, ssi->irq_tx, in rz_ssi_probe()
1135 dev_name(&pdev->dev), ssi); in rz_ssi_probe()
1140 ret = devm_request_irq(&pdev->dev, ssi->irq_rx, in rz_ssi_probe()
1142 dev_name(&pdev->dev), ssi); in rz_ssi_probe()
1149 ssi->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in rz_ssi_probe()
1150 if (IS_ERR(ssi->rstc)) { in rz_ssi_probe()
1151 ret = PTR_ERR(ssi->rstc); in rz_ssi_probe()
1155 reset_control_deassert(ssi->rstc); in rz_ssi_probe()
1174 pm_runtime_put(ssi->dev); in rz_ssi_probe()
1176 pm_runtime_disable(ssi->dev); in rz_ssi_probe()
1177 reset_control_assert(ssi->rstc); in rz_ssi_probe()
1179 rz_ssi_release_dma_channels(ssi); in rz_ssi_probe()
1186 struct rz_ssi_priv *ssi = dev_get_drvdata(&pdev->dev); in rz_ssi_remove() local
1188 rz_ssi_release_dma_channels(ssi); in rz_ssi_remove()
1190 pm_runtime_put(ssi->dev); in rz_ssi_remove()
1191 pm_runtime_disable(ssi->dev); in rz_ssi_remove()
1192 reset_control_assert(ssi->rstc); in rz_ssi_remove()
1196 { .compatible = "renesas,rz-ssi", },
1203 .name = "rz-ssi-pcm-audio",